Quantity Pricing Group feature not working

General ShopSite user discussion

Quantity Pricing Group feature not working

Postby JCGrafted » Wed Sep 21, 2011 3:53 pm

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
JCGrafted
 
Posts: 29
Joined: Wed Sep 21, 2011 2:41 pm
Location: Houston, TX

Re: Quantity Pricing Group feature not working

Postby Jim » Wed Sep 21, 2011 4:56 pm

You can not use the Quantity Pricing feature and the Variable pricing feature on the same product. (I believe Variable price will over ride the Quantity) So make sure you only have the Quantity pricing option checked if you want to use Quantity pricing or Quantity Pricing Groups.

First create your pricing groups by going to Merchandising > Discounts > Quantity Groups. You can create as many as you need.
Next go to a product that will have Quantity Pricing and enable the feature and enter the pricing data for the quantities, and select the group that it goes in from the pulldown.
Next go to another product that will be in a Quantity Pricing group and configure pricing and select the group. Do that for all products that will have quantity pricing.

Publish your store.

Now when a shopper places items in the cart the cart will check if it is a quantity pricing product and if so total all items in that group and give each the appropriate quantity price. Adding or deleting item to/from the cart will cause the totals to be recalculated and the prices adjusted appropriately.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Quantity Pricing Group feature not working

Postby JCGrafted » Thu Sep 22, 2011 12:42 pm

It worked as advertised! Thank you so much.

JCGrafted
JCGrafted
 
Posts: 29
Joined: Wed Sep 21, 2011 2:41 pm
Location: Houston, TX


Return to User Forum

Who is online

Users browsing this forum: No registered users and 71 guests

cron