PHP client for connecting to the Bigcommerce V3 REST API.
PHP 5.4.0 and later
PHP client for connecting to the Bigcommerce V3 REST API.
PHP 5.4.0 and later
Create a Proxy class and hook it into the Pimple framework.
Proxy needs to:
For some reason the method \BigCommerce\Api\v3\ObjectSerializer::sanitizeForSerialization()
strips all null
values from the payload which makes it impossible to set a product variant price to null
(i.e inherit from product base price). I can only presume that this also affects a number of other features of the API.
For the moment I've had to fork this repo to implement this necessary change. Might be worth updating it so others can benefit from this too?
edit: I can presume why this was done (to prevent null values being sent to the API that aren't supposed to) however I feel null values could still be supported by tracking those intentionally-set null values and allowing them through.
The file:
https://github.com/moderntribe/bigcommerce-api-php-v3/blob/master/src/Model/CustomerPost.php
Does not have a field for channel_ids
which is supported according to these docs:
https://developer.bigcommerce.com/api-reference/1cea64e1d698e-create-customers
Each returned customer has a channel_ids property with either an array of channels to which the customer has login access or a null value. If this is your first time setting up channel-specific customer access, the channel_ids value will be null, meaning that a customer only has access to channels with "allow_global_logins": true.
The gtin (Global Trade Item Number) and mpn (Manufacturer Part Number) are missing from the Product model, but are present in the json definition provided by BigCommerce.
["attributes"]=> array(2) {
[0]=> object(BigCommerce\Api\v3\Model\CustomerAttributeValue)#24 (1) {
["container":protected]=> array(6) {
["attribute_id"]=> int(2)
["value"]=> 999998
["attributes"]=> array(2) {
[0]=> object(BigCommerce\Api\v3\Model\CustomerAttributeValue)#24 (1) {
["container":protected]=> array(6) {
["attribute_id"]=> int(2)
["value"]=> NULL
var_dump($customer); exit;
###workaround
not sure, but maybe change ["value"] to ["attribute_value"]
??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.