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.