I tried to develop a Shopify application and I needed to bundle some products and sell those together with the special discount values.
There are some apps like product-bundle but I need bundling product in my app.
I tried to create one product similar to them and after the purchase completed I delete it but I think it's not a good solution because this product will be shown to shop and other customers can purchase that while I want to offer this product to a certain customer only.
In another way, I tried to use Shopify discount but can't satisfy my need or maybe I can't find true ways.
How can I do that?
There are multiple ways in which you can handle this.
1) Create a product itself:
Create a single product indicating a combination of your desired multiple products and combination of your price.
When the customer adds all the related products, detect it from cart webhook and update the cart of the customer by removing such products and adding the single product(i.e combination of all products).
2) Create a discount code: Create a discount code with your desired discount amount for each combo. Detect the products in the cart by cart webhook, if combo products found automatically apply the coupon to the cart.
Related
I am facing a issue in shopify. The issue is I am listing products on a page with price. But i want whatever first 3 products customer click should be free for them. The fourth one they click should be of price set on backend.
So basically all products will have price. But first 3 client select should be free for them. Is this customization possible in shopify?
You have two choices. One, you use Shopify Plus, and with that you are free to script the checkout and change prices to free on items in the checkout. Or two, without Plus, you are free to use Discount Codes to bring the price of a checkout down to zero for items that meet criteria you setup. Those are your only sane choices at this time.
I'm working on prestashop shop where are used coupon with % discounts. We don't want to use coupons on products on sale but still want to buy products on sale and normal products in the same cart. I want to recalculate discounts in cart and order to apply only on non-sale products. I need help which file I should edit or where add functions to do it.
You should create a module that adds dedicated cart rules or customer-related specific prices on the products you are interested in when customer changes his cart or validate the order.
There are plenty of native Prestashop hooks you can use for that so you don't need tweaking with the core.
Keep in mind that there are a lot of "advanced cart rules" modules out there, so consider having a look before reinventing the wheel.
I need to implement shopping cart for my website. I decided to store carts in database rather that in session. My website serves as a platform for selling items between users. That said, users can edit their own products any time.
I understand that I can't just use product ID in the cart, because user need to get whatever he put to the cart. If the product is being changed after he put it to the cart, it shouldn't affect what he ordered, correct?
How is it usually solved? Should I copy entire product to the cart? Or maybe rather save versions of particular product and link to them? Another idea would be to inform customer on checkout that the product changed.
How is it solved in popular e-commerce platforms?
I understand that I can't just use product ID in the cart, because
user need to get whatever he put to the cart. If the product is being
changed after he put it to the cart, it shouldn't affect what he
ordered, correct?
the product price is going to change. the inventory is going to change. if a product goes out of inventory you want the customer to know so they can make another choice. if the product price has gone up or down, the cart should reflect the current price. so that means the cart will check the product table for the product pricing and inventory at different steps before the final transaction.
as part of the cart to product lookup -- if the pricing has changed you can alert the user. just as important - if the customer has ordered quantity 4 of a product, but the inventory has gone down to just 3 of them -- you have to change the cart and make it very obvious to the customer what just happened.
there are only two things the cart is responsible for - the product id, and the quantity to be sold. anything else stored in the cart is just to make it easier to display the product on the cart page or information needed for the merchant.
I am trying to figure out the best way to solve my problem below. The issue involves services (non-taxable) and products that are taxable.
My website offers CPR courses which is a service (non-taxable), along with the option to purchase the book which is taxable. So I set up the products as the CPR courses and the variants as, "yes" or "no" on purchasing the book.
If the user selects yes, how would I add an additional product to the cart when they check out?
The user can also buy the book by itself, so I set those up as products as well.
Is there another way I should be doing this?
You could do that. taxable is a variant level field so one variant can be taxable and the other not.
Your course products can have their own template and it would expand the list of variants so they are both shown. Your template would have to offer the option of adding both products to the cart. That could then be accomplished by using the cart api
In Shopify, I want add the discount to product based on js variable. This discount should be considered in checkout? Can I achieve that??
It's not possible to alter the price of a line item in a cart. You can only update the product variant's price.
See this similar question: Shopify API CARTS - Changing line_item line_price for price Override
Is it possible to use Shopify's built in Discounts in your situation?