bigcommerce

How can I update custom fields using the BigCommerce API?

不问归期 提交于 2019-12-13 06:13:55
问题 I am looking to update the custom fields on a product. I found in the guide on how to do it manually via the admin interface The API docs suggest that you can't directly modify the custom fields on a product, only access them: My next thought was to update the product This is the existing custom_field on the product. { "url"=> "https://storename.mybigcommerce.com/api/v2/products/32/customfields.json", "resource"=>"/products/32/customfields" } When I try to modify the url/resource and send the

Infinite Scroll.js loads same products on scroll, instead of products from next page - BigCommerce issue?

别来无恙 提交于 2019-12-13 04:28:20
问题 I tried the same code as mentioned in the link below, but for some reason on my end it loads (clones) only the items from the current page, not the ones from the next page ???? Any ideas why ? How to add Infinite Scroll to BigCommerce Category page <ul class="productGrid" data-infinite-scroll='{ "path": ".pagination-link", "append": ".product", "history": false }'> {{#each products}} <li class="product"> {{>components/products/card show_compare=../show_compare show_rating=../settings.show

Bigcommerce Cart page and Checkout page ingnoring themes fonts style

╄→尐↘猪︶ㄣ 提交于 2019-12-12 17:46:13
问题 I have big commerce website and here is the website link https://www.taoaccents.com I am using the simple theme for the website. I have upload custom fonts and call it into styles.css with correct paths below is the code of the fonts which I have called into my styles.css @font-face { font-family: 'ProximaNovaReg'; src: url('http://www.taoaccents.com/template/Styles/fonts/ProximaNovaReg.eot'); src: url('http://www.taoaccents.com/template/Styles/fonts/ProximaNovaReg.eot') format('embedded

Retrieve product information as JSON with Stencil Utils

本小妞迷上赌 提交于 2019-12-12 13:22:12
问题 Using stencil-utils , I can retrieve product information for a given product ID. However, I can't find any documentation on how to retrieve the information as a JSON response as opposed to an HTML template. Right now, I'm using the following code: utils.api.product.getById( 847, {}, (err, resp) => { console.log(resp); } ) I'm hoping there's a parameter I can pass in the params object that will return the response as JSON so I can extract just the information I need about the product. 回答1:

Frontend need for Handlebars.compile. but handlebars already in use with bigcommerce serverside

痞子三分冷 提交于 2019-12-12 06:17:32
问题 I am developing a bigcommerce stencil theme. I want to use basic handlebars functionality like markup <div id="mobile"></div> <script id="mobile_category_template" type="text/x-handlebars-template"> <div class="entry"> <h1>{{var}}</h1> <div class="body"> <p>body</p> </div> </div> </script> <script src="{{cdn 'https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.min.js'}}"></script> <script src="{{cdn '/assets/js/category.js'}}"></script> javascript var hitTemplate =

Font Awesome icons disappeared. Strange characters (Big Commerce)

我只是一个虾纸丫 提交于 2019-12-12 05:38:08
问题 After doing a few and simple css edits on a Big Commerce site, the search and cart icons suddenly disappeared. They are now displayed as strange characters. I went into the Big Commerce design backend and did not find anything strange into the code. When inspect the html and css code in the browser the icons are called properly: <i class="fa fa-search"></i> What could be wrong? Url to the site is Url template demo url is enter link description here Any help is much appreciated, new to Big

BigCommerce stencil init error loading

与世无争的帅哥 提交于 2019-12-12 05:02:28
问题 I am trying to customize a marketplace theme (Peak Standard). I have followed all of the steps pointed out here. https://stencil.bigcommerce.com/docs/downloading-and-customizing-marketplace-themes But when I try to run stencil init I get the following errors. Any help would be appreciated. JavaScript Bundling Started... Potentially unhandled rejection [8] Error: Error loading "js/app" at file:C:/Use rs/Dusten/Desktop/BC-DEV/assets/js/app.js Error loading "npm:babel-core@5.6.15/browser.js" at

Display particular category image in stencil bigcommerce

浪子不回头ぞ 提交于 2019-12-12 03:45:14
问题 I am working in Mega menu and i have add some new functionality i have display less than two category image in my mega menu how can i display? I am use stancil framwork. i have use this code: <ul class="col-2"> <li class="menuFeat"> <a href="#">Image: {{category.subcategories.image}} </a> </li> </ul> project link: http://ptg6.mybigcommerce.com 回答1: As I understood you want to show each category image into your mega menu so let's go if I am right. Step 1: Open your admin end and then open your

How/Where to use Custom Handlbars Helpers in Stencil?

扶醉桌前 提交于 2019-12-12 02:49:14
问题 I'm familiar with how to code a custom Handlebars Helper, but where do I put the helper code within the files? I've tried including my own JS file in the head and after the body, but I get the following error in the JS console: Uncaught ReferenceError: Handlebars is not defined Am I doing something wrong or is this a 'feature' of the Stencil implementation of Handlebars? All help greatly appreciated! 回答1: All the helpers are predefined that can be used with Stencil "natively". If you'd like

Bigcommerce Stencil - Display Blog Posts on Homepage

为君一笑 提交于 2019-12-12 02:44:00
问题 We're looking to display blog posts on the homepage using Stencil/Handlebars. So far, I've tried the code below to no avail: <ul> {{#each blog}} <li><a href="{{url}}">{{title}}</a></li> {{/each}} </ul> AND <ul> {{#each blog.post}} <li><a href="{{url}}">{{title}}</a></li> {{/each}} </ul> Is it possible that the Blog object is not available on the homepage? Seems a little silly not to be able to use the Blog object wherever I want...? Thanks in advance! 回答1: In order to ensure best performance,