View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Member Discount In Power Store

Thread began 7/03/2009 8:21 pm by sales320648 | Last modified 2/11/2010 2:11 pm by sales320648 | 3813 views | 16 replies


Member Discount In PowerStore

Hi Ray,

It seems like there is no need to add additional columns or calculations to the cart when using PowerStore (thus the name solution pack yes?, LOL). In this case it seems like I will only need to modify the discounts rules for the cart. Since I only need the UserID session variable and its already setup when a user logs in PowerStore, how do I check for it's presence in the discount rule?

To give you a heads up, this is what I've tried to do so far to solve the problem:

step 1: clicked on the eCart panel object
step 2: clicked on the discount tab
step 3: in the setting fields I entered: Member Discount
step 4: under trigger, I set the "separator :condition" to: If session variable exist

Where I'm stuck:

After the above steps, in the separator : condition field, it requires me to give the "session variable name". In order to find the "session variable name" in PowerStore, I did the following using Dreamweaver file panel and going to code view:

In Powerstore, instead of the cart.php page, I opened "WA_Store_Cart_PHP.php" ( WA_eCart -> WA_Store_Cart_PHP.php) I found the following:

if (isset($_POST[$this->CartName."_ID_".$n])) {
$itemID = floatval($_POST[$this->CartName."_ID_".$n]);
if (isset($_POST[$this->CartName."_ID_check_".$n])) {
$itemID = floatval($_POST[$this->CartName."_ID_check_".$n]);

If I am on the right track, where is the "session variable name" above that I need? Even better, do I need to copy and paste the whole code into the "separator:condition" field?

I now know that after accomplishing the above the rest will be a breeze by just setting the calculation tab in the eCart object by selecting "based on subtotal of the cart, and times 0.10. This would yield 10% off of the purchase for the logged in user.

Thanks again in advance.

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





Ease of use


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...