quantity discounts
Hi
is there any provision for quantity discounts ie one price for 1 item and say 10% discount if you buy ten?
thanks
Ian
Hi
is there any provision for quantity discounts ie one price for 1 item and say 10% discount if you buy ten?
thanks
Ian
No, PowerStore does not offer this functionality. It can be added using eCart, but there will be a lot of code that will need to be modified by hand to make it work, it is not a supported feature.
the basics of quantity discounts is to create a new calculation called truePrice:
([Quantity] > 10)?([Price] - ([Price] * 0.1)):[Price]
You then need to modify the Total Price Calculation from
([Price]-[DiscountShown]) * [Quantity]
to account for the discount:
((([Quantity] > 10)?([Price] - ([Price] * 0.1)):[Price])-[DiscountShown]) * [Quantity]
the AdjustedPrice calculation also needs to be changed:
[Price]-[DiscountShown]
to:
([Quantity] > 10)?([Price] - ([Price] * 0.1)):[Price]-[DiscountShown]
The truePrice calculation will be used to display the item price to the customer, the TotalPrice calculation will be used to calculate the cars sub total.
This is where the code of PowerStore needs to be manually edited
In all of the checkout pages:
cart.php
confirm.php
checkout.php
pp_confirm.php
checkout_success.php
pp_checkout_success.php
You will need to find any place where the price is displayed using:
<?php echo WA_eCart_DisplayMoney($WA_Store_Cart, $WA_Store_Cart->DisplayInfo("Price")); ?>
or:
<?php echo $WA_Store_Cart->DisplayInfo("Price"); ?>
and change it to use the truePrice:
<?php echo WA_eCart_DisplayMoney($WA_Store_Cart, $WA_Store_Cart->DisplayInfo("truePrice")); ?>
or:
<?php echo $WA_Store_Cart->DisplayInfo("truePrice"); ?>
you will also need to edit the Local checkout code that passed the price, and change that to pass the truePrice:
$AuthNet_itemized[0][$nextIndex] = "Price";
$AuthNet_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("Price") ."";
to:
$AuthNet_itemized[0][$nextIndex] = "Price";
$AuthNet_itemized[1][$nextIndex] = "".$WA_Store_Cart->DisplayInfo("truePrice") ."";
there may be other places it needs to be changed as well, the reality is there are simply to many places the price is used for me to be able to account for them all.
Thanks Jason
I suspect that this will wait until I learn a lot more or it's included in a future release
cheers
Ian
Hi Ian,
I'm new to the forum and in the process of choosing which products to buy from Webassist to setup ecommerce store for the UK. Like you I am no programmer/coder so I think the easiest solution I would look into is adding a new item called '10 Widgets Saver Deal' or similar and then price it with your 10% discount. Would that work for you?
Adam
Could you not do this by using the check for presence of specific item in cart and then check for qty etc ?
Or is it something more general you need ?
Hi
The client could use multiple listings but idealy he would like to offer discounts on selected products for bulk purchases.
However thats for the future
cheers
Ian
ok, keep in touch on this as I am working on a site at the moment using eCart (not powerstore) that requires multiple (dynamic) discount rules, CraigR has kindly given me some pointers on what he did a little while which I need to go through plus PowerStore 3 has coupon editing ability to which I am going to pick apart to hopefully come up with a solution for this client
Hi Dave
no problem, at the moment I'm awaiting (hopefully) a response from technical support as to why my sites ordering system is totaly up the creek.
The Boss (the wife) is watching the ice skating so I'm gettign some peace
cheers
Ian
Mine's asleep so I am getting some peace as well :-)
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.