Skip to main content

Incremental Pricing

More
12 years 3 months ago #161022 by hiredgeek
Hi, could you please explain to me how to have incremental pricing based on quantity.

For example:
If the base price for a Product X is $50, then each additional Product X ordered is $1.
Therefore, if quantity 2 of Product X is purchased, the cart total would be $51.
If the quantity 20 of Product X is purchased, the cart total would be $69.

Thank you!

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161050 by nicolas
Replied by nicolas on topic Incremental Pricing
Hi,

You would have to setup several unit prices for your product with a minimum quantity for each. Like that:
min qty unit price
1 50
2 25.5
3 17.33333
4 13.25
...etc...

The system will then pick the correct unit price to apply based on the quantity of the product in the cart.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161160 by hiredgeek
Replied by hiredgeek on topic Incremental Pricing
Thank you, but unfortunately my products have unlimited quantity, so does that mean I would have to set up each price manually all the way up into the hundreds? What if someone orders 200 quantity, etc?

Is there a more automated way to do this in Options , Varients, or Characteristics?
Really what would work is if I could just add $50 per product ordered , regardless of how many they order
Thanks again

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161178 by hiredgeek
Replied by hiredgeek on topic Incremental Pricing
In this particular store, EVERY product is $50 for the base price. So perhaps there's a quick line of code I can insert that would add $50 to each instance of a product in the shopping cart?
Then just set the product price at $1.

I do understand that if I change the code, I'll have to do it again after updates. Thank you

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161212 by nicolas
Replied by nicolas on topic Incremental Pricing
If you need to have custom pricing like that, I think that the best is to develop a small HikaShop plugin implementing the quantity price calculation override (see developer documentation on that) and have your own calculation rules for the product prices. But that requires PHP knowledge). That way, you won't have to change the code after each update.
www.hikashop.com/support/support/documen...r-documentation.html

You can find several example of such price calculation override plugin on our forum. For example:
www.hikashop.com/forum/product-category-...-it-is-possible.html
www.hikashop.com/forum/2-general-talk-ab...w-feature.html#24390

Please Log in or Create an account to join the conversation.

Time to create page: 0.236 seconds
Powered by Kunena Forum