Zen Cart Logo
Forums / General Questions / How to specify quantities for individual items before add to cart?

How to specify quantities for individual items before add to cart?

Locked

Views: 990

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
9 Sep 2010, 4:58 AM
#1
tpascubarat avatar

tpascubarat

New Zenner

Join Date:
Dec 2007
Posts:
64
Plugin Contributions:
0

How to specify quantities for individual items before add to cart?

Ver:1.3.9f
New install
no addons

I am building a site that sells craft type items. One item in particular has several color options (which will remain the same for all letters ordered). But if the customer wants to spell a name that has more than one letter, I am stuck on how to make that happen.

Ex. The name Debbie has 2 e's and 2 b's. The customer will specify the color from a radio button, but when it comes to the actual letter, I have no way to calculate the total. Preferably, I would like a box next to each letter than has a 0 for a default, but they can change it to:

D - 1
E - 2
B - 2
I - 1

and the car will calculate 6 letters x the cost per letter.

Is there a way to accomplish this?

9 Sep 2010, 5:16 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to specify quantities for individual items before add to cart?

I would try a different approach. The Text type of option name can be priced by the letter, so the customer can type the word(s) they want and have it calculated automatically, without them having to figure out how many of which letters they need. You can specify spaces to be free. If upper and lower case are available, this will automatically allow that to be chosen as well.

9 Sep 2010, 5:30 AM
#3
tpascubarat avatar

tpascubarat

New Zenner

Join Date:
Dec 2007
Posts:
64
Plugin Contributions:
0

Re: How to specify quantities for individual items before add to cart?

That worked perfectly. Thank you.

9 Sep 2010, 5:41 AM
#4
tpascubarat avatar

tpascubarat

New Zenner

Join Date:
Dec 2007
Posts:
64
Plugin Contributions:
0

Re: How to specify quantities for individual items before add to cart?

I spoke too soon. It calculates, but incorrectly. The price per letter is 17.95, but when I order 1 letter it charges me for 2. When I order several letters, it still adds an additional 17.95 to the price.

Any reason why this is happening.

9 Sep 2010, 8:40 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to specify quantities for individual items before add to cart?

I haven't actually used pricing per letter, but I recall that there are several possible ways to adjust the pricing. You may have a "tare" of sorts applying. It will take some investigation, or someone who is more familiar with their use.

9 Sep 2010, 8:48 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to specify quantities for individual items before add to cart?

One thing occurs to me: how have you set up the pricing? This probably requires "priced by attributes" with a base price of 0. If you have the product's price set to equal one letter, the total will be one letter more than the number specified.

9 Sep 2010, 8:54 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to specify quantities for individual items before add to cart?

Or can use factor & offset
Offset = minus one

9 Sep 2010, 8:50 PM
#8
tpascubarat avatar

tpascubarat

New Zenner

Join Date:
Dec 2007
Posts:
64
Plugin Contributions:
0

Re: How to specify quantities for individual items before add to cart?

I had to offer one letter as free. Once I did that, it calculated as 1 when I ordered 1.

9 Sep 2010, 9:10 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to specify quantities for individual items before add to cart?

You shouldn't have to do that, if your product pricing is set up correctly for attributes.
Still, if it works for you, it works.