bigcommerce

How do I use the BigCommerce API to update a customer's customer_group_id using core PHP?

南笙酒味 提交于 2019-12-11 03:07:13
问题 I'm trying to write a PHP script for my BigCommerce site that runs nightly and places customers into specific Customer Groups based on certain criteria. I can do everything else I need other than actually update the the customer_group_id. BigCommerce documentation only shows GET methods available for customers. Please help. Thanks! 回答1: The customer group ID on a customer can be updated. This has been around for maybe a year or more now. You can PUT to the customer resource and the customer

Bigcommerce Python API, how do I create a product with an image?

帅比萌擦擦* 提交于 2019-12-11 01:35:53
问题 how do I upload an image (from the web) using Bigcommerce's Python API? I've got this so far: custom = api.Products.create(name='Test', type='physical', price=8.33, categories=[85], availability='available', weight=0) Thank you! I've tried almost everything! 回答1: This will create the product on the BigCommerce website. You create the image after creating the product, by entering the following line. The image_file tag should be a fully qualified URL pointing to an image that is accessible to

How can I get an order “shipping method” from bigcommerce API (Ground, Express)?

故事扮演 提交于 2019-12-10 22:06:47
问题 How can I get an order "shipping method" from bigcommerce API (Ground, Express)? The shipping method that customer selects when placing an order. Thanks 回答1: Refer this page, to get shipping related data for particular order. 来源: https://stackoverflow.com/questions/25813782/how-can-i-get-an-order-shipping-method-from-bigcommerce-api-ground-express

Fetch Product Images with BigCommerce API

徘徊边缘 提交于 2019-12-10 21:13:55
问题 Long story short a couple months ago i made a plugin for WordPress with the Bigcommerce API to fetch products in the Widget Area. Now I have updated the Single File "Bigcommerce.php" and now the Function getProductImages () is none existent. And I cant seem to find the new function to get the Product Images. Maybe its just to late and Im tired or just plain Blind. Please let me know how to fetch now the image for a specific product. See below for the old code used i reverted back to the Old

assign a variable in handlebars

情到浓时终转凉″ 提交于 2019-12-10 19:32:54
问题 I am working on the stencil platform on big commerce. this platform uses the handlebars syntax. I need to be able to set a value based on one of the parameters in my URL, more that like the 'window.location.pathname', and i need to be able to access this new variable across the site. I am able to make something work two different ways using regular JavaScript, but i do not want to recreate my script in every place throughout the site. So basically, I could use some help getting one of my 2

es6-module default export importing as undefined

那年仲夏 提交于 2019-12-10 13:26:43
问题 I'm not sure what I'm missing here. I'm working on a project using jspm and es6-module-loader. I've got an module defined as follows: import hooks from './hooks'; import api from './api'; import tools from './tools'; const StencilUtils = { hooks: hooks, api: api, tools: tools, }; export {hooks, api, tools}; export default StencilUtils; /* global define */ (function(root) { if (typeof define === 'function' && define.amd) { define(function() { return (root.stencilUtils = StencilUtils); }); }

What is hash field in the BigCommerce webhook?

二次信任 提交于 2019-12-10 10:14:57
问题 How it generate? How I can validate it? https://developer.bigcommerce.com/api/webhooks-getting-started { "store_id": 11111, "producer": "stores/abcde", "scope": "store/order/statusUpdated", "data": { "type": "order", "id": 173331 }, "hash": "3f9ea420af83450d7ef9f78b08c8af25b2213637" } 回答1: I'd recommend using a custom header to validate the payload was from BigCommerce as noted in the getting started guide: A headers object containing one or more name-value pairs, both string values (optional

Can BigCommerce Private Apps use OAuth

ぃ、小莉子 提交于 2019-12-09 01:39:36
问题 I am very confused by the BC documentation on their API, because they let you create "Draft Apps" (private apps) and now I see that in their documentation they say "We do not currently provide a means of keeping OAuth apps private.". My concern here is that they made some changes recently that might have affected a few of my Private Apps that I had running just fine a month ago. If anyone can provide some insight, I would appreciate it greatly! https://developer.bigcommerce.com/api/guides

How to add Infinite Scroll to BigCommerce Category page

空扰寡人 提交于 2019-12-08 12:07:15
问题 I am trying to add infinite scroll to the category page on BigCommerce. Infinite Scroll I have uploaded the JS script to the content file on webdav and inserted the HTML code on the category.html page but it won't work. I think because it's a partial page that gets injected into the base.html . I have added the script into that page to no avail. I am not sure how to call the script with jQuery or JavaScript as shown in the instructions. Can anyone shed some light? 回答1: Try initializing

BigCommerce Stencil — load component parts based on custom javascript logic

岁酱吖の 提交于 2019-12-08 11:35:07
问题 I am using BigCommerce Stencil to make a theme. Currently {{> components/category/category}} will load the markup from components/category/category.html but now i want to do something like the following {{#if !isMobile}} {{> components/category/category}} {{else}} {{> components/category/category_mobile}} {{/if}} to do that; I would need to make my own isMobile() function and return a {{isMobile}} out of it. First attempt: https://stackoverflow.com/questions/44634630/frontend-need-for