I am using ShopSite Pro. My pages are set up using the order anywhere code and put on my own pages, complete with a mini cart on the left hand side. (I borrowed the code for the mini cart from a ShopSite page template.)
A while back I solved an issue with our store. In addition to other products of varying price, we have 13 pamphlets each priced at 50 cents. When the customer orders 100 or more of these pamphlets in any combination, the price drops to 30 cents. I found that I could build a coupon to that effect but the customer would have to click to add the coupon before the discount would take affect. We wanted it to take affect automatically. My solution:
Using JavaScript, read the document cookie sent to the user for the mini cart. Loop through the cookie and count the amount for each of the 13 pamphlets. If it equals 100 or more I look to see if I have already placed a cookie indicating this process has already been done. If not, I place a cookie that says Coupon=100+. Then I use window.location.href= to submit the coupon. I check to see there are less than 100 of the specified pamphlets but the coupon exists anyway. This indicated that the customer has removed some items from the cart and no longer qualifies for the discount. I do another redirect the remove the coupon and force a recalculate.
It is all a bit clunky, but it works.
Now for my present problem:
We now are selling mp3s with a discounted price if you order 15 or more of any of our 300+ titles. Duplicating the process used for the pamphlets adds a level of complication to both. I found the Quantity Pricing Group feature. I assume this is a new feature or else I just missed it before. It seems like an easy solution to my mp3 problem and maybe even an opportunity to clean up my code for my pamphlets.
I have built a test page and have added several test items to the store. With the Quantity Pricing Group feature, Variable Price, and Quantity Pricing turned off, the product orders just fine. (As would be expected.) When I turn these features on, the item does not submit to the cart. I have no idea if the pricing is working because I have not gotten that far. I can not even get the product to load. I assume I am doing something wrong in the way I am setting this up. I have looked through the forum and have not found a simple tutorial on step by step to set up a Quantity Pricing Group. The help feature in ShopSite did not prove to be useful.
Any help would be greatly appreciated.
JCGrafted