How to set custom price for products on the basis of quantity in shopify? - shopify

Greetings.
I am working on a eCommerce website based on shopify. And for product I want to set a custom price. For example, The standard price of product is $500 but price will vary if user increased the quantity i.e. On 5 - 10 it will cost $450, On 11 - 15 it will cost $400 and on 20+ quantity it will cost $300.
I have searched module for this and also found a module i.e. https://apps.shopify.com/quantity-breaks. But its working on the basis of "Percent" that I don't need. Because I want to place price manually on the basis of quantity.
So please help me out from this and provide your valuable thoughts on the same.
Thanks in advance.

The way this is generally done in Shopify is to create variants where the option values are the price breaks. You have to modify your theme so that when a Qty > price break is entered the product page selects the variant that corresponds to that price level.
Other than the coding portion of this the main issue becomes inventory management since Shopify treats each variant as a separate inventory item but if you use variants to manage price breaks they are not actually separate items.

I think the easiest way to do this would be with a Shopify App. There are many that have price breaks etc. and they are usually easier to set up than using variants as the price break amounts.

Related

Shopify - auto-tagging by 'compare at price' difference

The shopify store I edit has a 'sale' collection. This consists of products which have been auto-tagged on the condition that the 'compare at price' is higher than the actual price.
I want to create a new 'clearance' section, which would consist of products where the actual price is cheaper than the compare at price by 50% or greater. I can't find a simple way to do this (i.e. by using the inbuilt collection creator).
Can anyone help me out?
Discounts are applied at the checkout, not when browsing a product. That is why the Smart Collection logic has no conditions based on discounts. If I were you I would try and work out how to build a collection "clearance" with conditions that make sense, and then you could create a price rule/discount that would apply to that collection (50% off). It seems like that is the way to go.

Variant options on Shopify

I've been trying to create variant options which also have prices on a Shopify theme, and represent them by checkboxes. So end user can select multiple options with additional prices. But shopify has limitations on this as far as I noticed.
Let's say the product is 'personal computer' with fixed price £500, and it has options like 'graphic card - £30', 'processor - £40', 'sound card - £15', 'sound card - £30'. As you've noticed there can be multiple options with different prices in addition to the main product price. And as I would like to use checkboxes, users can select min 1 max all of them.
I don't want to use the Shopify app for this but it seems there is no other choice, unfortunately.
I think you would prefer to organize it like this.
make a personal computer product. it costs 500
make a graphics card product. it costs 30
make a processor product. it costs 40
make a sound card product. it costs 15, 30 or whatever.
Now present all four products on a page so the customer can check off one or more of those products. The ones they check off go into the cart.
You get inventory control that way. You can also price each product up to 100 different ways.
You do not need an App to go this route. It works.

How do I change the purchase quantity on my bigcartel shop to be a text box

I sell fabric by the 10cm increment. How do I change the purchase quantity on my bigcartel shop to be a text box to allow customer to type in the quantity they'd like to buy (for example 1.2 metres) instead of using bigcartel's dropdown purchase quantities?
At the moment, I end up having a long list of drop down options ie. 10cm, 20cm, 30cm, 40cm, 50cm, 60cm, 70cm, 80cm, 90cm, 1m. And then I have to rely on the customer adding the quantities they want together to get the total they need (ie. 20cm and 1m to get 1.2 metres). People sometimes make a mistake with their math and order the wrong amount. I would prefer to be able to just have a text box in the purchase quantity area where my customer could simply type in "1.2" and the quantity and price would be calculated for the cart.
Is this possible on bigcartel? I know it is possible on a lot of other e-commerce sites. Any help would be greatly appreciated!
Unfortunately there's not a way to add an input box to your product or cart pages to allow for customer input like that, sorry! Your customers can only select their option from a list that you create in the admin.

OpenCart - how to set up one-off option price, as product quantity increases?

So, here's the problem:
A product costs $10. You then have the option to customize it (with a photo upload to be printed on it) for an additional one-off price of $5, no matter how many products are ordered (e.g. you can order 1 or 5 or 10000 items and the customization price will always be a flat $5).
Currently, when you buy, for example, twenty items and choose the customization option, OpenCart will calculate it: (Product Price + Option Price)*Quantity = (10+5)*20 = $300 . Instead, what I aim to achieve is something like (Product Price*Quantity) + Option Price = 10*20 + 5 = $205
Ideally, I would like certain options to ignore the quantity (so that it will be an additional $5 no matter how many products are ordered), while other option prices should go up with quantity (so that one product customization costs $5, two product customizations cost $10, etc.).
Surely, OpenCart must offer some way to deliver such a fundamental customer experience?
This isn't a standard feature that you will be able to do out of the box. The way I would solve this would be to create a custom Order Total extension and add $5 to the subtotal/total at checkout if any product has that particular option set. This does require some PHP knowledge to do
Instead of rolling your own, you could probably use the Handling Fee extension. You may need to create a new Tax Class for that. But as Jay said, creating your own would be ideal, and yu could certainly use the Handling Fee as a starting point.
Check this out
ADD ONCE OPTION PRICE REGARDLESS QUANTITY
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=13390
My commercial OpenCart extension Setup Fees for Product Options should do what you need. You can see an example here by selecting the rush production option.

shopify api: calculate total shipping price

There is a nice helper - shipping_price - available in liquid templates (for order). Returns total order shipping price (hopefully). How do I get the same via API?
Should I go through order order.shipping_lines and sum their price? Is that the right way to do it?
EDIT
Or, perhaps, order.subtotal_price + order.total_tax?
If you just want the shipping price then summing the shipping line prices is the correct approach.
At this time, there's only ever one shipping line per order but it's built as an array to accomodate potential changes to this situation.