close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

quantity discounts

Thread began 2/24/2010 1:02 pm by i.edwards384429 | Last modified 2/26/2010 6:34 pm by Dave Buchholz | 776 views | 8 replies |

i.edwards384429

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

i.edwards384429

update

Thanks Jason

I suspect that this will wait until I learn a lot more or it's included in a future release

cheers

Ian

Sign in to reply to this post

adam.zahler381508

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

Sign in to reply to this post

Dave BuchholzBeta Tester

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 ?

Sign in to reply to this post

i.edwards384429

discounts

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

Sign in to reply to this post

Dave BuchholzBeta Tester

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

Sign in to reply to this post

i.edwards384429

update

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

Sign in to reply to this post

Dave BuchholzBeta Tester

Mine's asleep so I am getting some peace as well :-)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...