I am using the BigCommerce API to create and update products. I am trying to create several products that have several styles, and several colors per style. For example, I may have something like a Christmas ornament. It could have three sizes for the product, and then each size comes I red, green, and blue.
How would I create a product that has the same ID that would allow it? Maybe an option set, with an embedded option set? Any help or suggestions would be appreciated.
Create your product options/sets inside of Bigcommerce. Then apply the desired options when creating your products via the API.
You can see how to do so in Bigcommerce documentation on the products resource. https://developer.bigcommerce.com/api/stores/v2/products
Related
I am a shopify partner, I am trying to get around the the variant limits of shopify by coding an app and also because my client has a complicated formula for calculating the price. I don't have a problem with the part that adds the information for my variants to the order, however when I want to modify the price based on the user selection, it doesn't seem an easy task to do.
I came across couple of apps which does the same thing by adding a new product or variation which is not optimal for my use case, is there any app that does the job without adding extra information to the database, if so, how?
Qualified Yes
Unfortunately, Shopify doesn't give us a lot of options to edit prices of items dynamically. Here are the two options that I know of that will allow you to adjust the price of a product directly - however, both have limitations.
Using Shopify Script Editor
If you're working with a Shopify Plus merchant, you can use the Shopify Script Editor to dynamically adjust the prices of products, provided that the direction you adjust is down. You cannot increase the price of a product using the script editor - so for your use case, the list price would have to be the most expensive possible price that the item sells for, which you would then discount appropriately using the app.
Using draft orders
Using an app, you can use Shopify's Draft Order API to create an order with custom discounts and/or create completely custom items that are independent of the products set up in the product database.
The basic flow for this is that when the customer clicks 'checkout' you halt the normal navigation, send the cart contents to your app, create a draft order with the appropriate pricing, then supply the front-end code with the draft-order checkout/invoice URL so that you can send the customer there instead of the normal checkout. This has several limitations, however, including that prices of existing products can only be discounted, not increased, and the fact that Shopify will not allow a customer to use discount codes on a draft order invoice - once an order is set up this way, Shopify's assumption is that all prices are final.
Disclaimer: Sorry if someone sensible doesn't like a response with a link :) I'm not related to this app I'm just a user.
On a project with complex pricing, we use the app Wholesale Pricing Discount by Wholesale Helper we liked because is easy to import multiple pricing by-product and relate it by customer.
this app does not multiply the products, they use customer tags. maybe that can give you some guidance.
An important rule on Shopify is you can't increase the price by API on an order, you can just reduce i
Hello Shopify Developers.
I'm a newbie on Shopify. How can we add a tab in product pages as Dimensions? Through this tab, we should be able to edit and change the dimensions for each specific product.
Would you give me a suggestion to do that? please teach me.
Best regards, Siva.
Shopify is not designed to allow customers to enter custom dimensions and have that affect the final price of the item.
However, this can be accomplished in principle through some roundabout steps, which involve a hidden priced product and a fair bit of javascript and the use of line-item properties to link everything together.
If you're feeling ambitious and want to make such a system yourself, the basic flow would be:
Create a product that either has a $0.01 value (or whatever the lowest denomination is in your currency) or a value of whatever the cost-per-smallest-unit that you want to sell by
Update your store templates so that any products that are marked as a component product (via tags, metafields, product type, or whatever you choose to go with) do not get displayed on collection pages, search results, etc.
For your product pages that need custom dimensions, you will need to create any relevant input fields and add whatever formulas you need to convert user inputs into units of your component product
When the item is added to cart, you will need custom javascript to add the correct quantity of the component item at the same time that the main/visible item is added to the cart. At this step, I would recommend adding line-item properties to both items that would identify that they belong together.
You will need to update your cart to hide the component product and add its price to the main/visible item for display purposes, and the quantity-update and item-remove features in your cart to make sure that when the main/visible product is updated or removed the component product is updated appropriately as well.
This can be quite the undertaking to try to take on yourself, so if any of the above steps seem daunting I would strongly recommend looking for an app in Shopify's app store that can do these steps for you. There are a lot of product option/customization apps available, and many of them have free trials that you can take advantage of to see if they meet your needs.
Of course, if you have the skills and ambition to take this project on, great! The above flow should hopefully get you started, and if you need further advice on any specific step feel free to ask another question.
I have a product on a Shopify website that is normally $20 but when buying a pack of three it becomes $45 total (ie: $15 each). The three pack has a separate SKU, but I would love it if my customers could simply have buttons on the product page to switch between the variations. The pack of three should have color selection options, but it should be clear to the user that all the products in the pack will be the same color. If you have any advice, I would greatly appreciate it.
There are a few approaches, but since you haven't provided a code example of what have you tried I will only list them.
App
You can use a discount APP
Different product
You can use a different product that will handle the bundle price
Shopify Scripts
If you are on a Shopify Plus store you have the option of writing custom Ruby scripts that can modify the cart items and their price. You can write a script that will modify the item price based on properties that are tied to the bundle product.
It sounds like you just need to add another variant option. Just call it as Pack of 3 and set to this variant a different SKU and a price of $45. Based on your question description this will totally suit your case.
I need help.
I need to know if there is any possibility of deactivating the default attributes of prestashop; And Do not add to the shopping cart. ?
The problem is the following,
I have a number of products created in prestashop, (2770) each product with color combinations. (9 different colors each product) and each product depends on a color and quantity (stock) to buy.
The problem comes when I use another module, to create all other combinations (m2 x m2) etc.
With this new module, I manage everything. Prices, quantities, colors, sales by meters etc.
But with this module, I have to eliminate the combinations (attributes) created in prestashop and create them directly from the new module.
But, I can not eliminate that they are in prestashop, because they are created by a dropshipping provider and they manage the stock every day by color attribute.
I have hidden the attributes created by the prestashop. (They can not be seen on the products page). So far so good.
I create the attributes in the new module.
But the problem comes, when adding a product to buy, to the shopping cart; My client selects the attributes and combinations of color created by the new module, but when adding to the cart two colors are added (the one that comes by default in prestashop) and the one of the new module.
I can not eliminate the combinations created by the dropshipping provider because I can not stop using the stock.
But I need the other module to create another series of combinations (sale by meters boxes) that prestashop does not do.
Question? I can in some way disable the prestashop default combination and not add it to the shopping cart.
Thanks for your help, forgive English (I'm using google translator)
I would advise you to modify the update of your Dropshipping to arrive in your module (at least at the stock level).
Or make a script that once the vendor stocks the products in the shop, make a transfer of quantities in the other declinations, and then remove that from PS.
We are used to this kind of case, being a dropshipping specialist.
Regards,
**forgive English (I'm using google translator)*
I've been working on setting up a Shopify store. One major feature they don't have built in is being able to provide a discount to a specific product, even though it looks like people have been requesting it since 2008!
Does anyone have any idea how this could be accomplished with their API?
Thanks!
Shopify allows you to offer product-specific discounts. On your Shopify Admin / Dashboard go to Discounts. Click on Add a discount:
On the Discount type section make sure to choose the Specific product from the dropdown:
Click on Save and you're all set. On your discounts list you'll see the generated discount with the conditions along with the product name:
Unfortunately, the Shopify API doesn’t offer product-specific discounts yet. It’s definitely in the pipe, but the feature is not available yet.