Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.

You are not logged in.

## #1 2011-11-15 13:16

Varsity
Member

### How to make it where products are purchased in multiples of 20?

The way we have our products packaged, they come in multiples of 20, and we do not break them down into smaller groups/numbers.  How can I set it to where products can only be purchased in multiples of 20?   I can set a minimum of 20 units, however, someone can enter 21 and it will go through.  I need it to where they can only order 20, 40, 60, 80, etc..

Thanks for any and all help.

Offline

## #2 2011-11-16 00:27

rat

### Re: How to make it where products are purchased in multiples of 20?

If tracking the stock amounts is important for you, then the source code should be modified to achieve your goal.

Otherwise you may create an extra product option named 'quantity' with a limited number of fixed values: 20, 40, 60, 80, 100, etc. Then set a surcharge amount for each value in each product's settings so that the sum of the surcharge amount and the base price is equal to the base price multiplied by the number of items ordered. The surcharge amount for each option value will be calculated according to the following formula:

S = (items - 1) * price

Suppose the product base price is \$2.00. Then you will get the following surcharge values for each 'quantity' option value for that particular product: \$38, \$78, \$118, \$158, \$198.

Be careful what you wish for — you might get it.

Offline

## #3 2011-11-16 11:29

Varsity
Member

### Re: How to make it where products are purchased in multiples of 20?

Rat,

You are the man!  I've got a couple of more questions that you may be able to help with to finish my cart up.

https://www.varsitybandages.com/shopping/shop/category/products/

So under the quantity choice I just set up (with your amazing advice) , they can still choose the 'Not Defined' option.  How can I remove this all together?  Otherwise, if they choose the 'Not Defined' option they can still purchase a single unit (which is set at \$3.50).

Also, in my checkout, I'd like to do 2 things.  I'd like to change the 3 pictures at the top (Your Info, Shipping, and Confirmation logos).  How do I go about doing this?

And lastly, how can I fix the 'Your Info' part of the checkout process to where the information fields are,  uniformly go down in a straight line?  The perfectionist in me hates how the fields are not uniformly going downwards, and how the shipping/billing information fields are side to side, rather than flowing downwards.

For reference:  https://www.varsitybandages.com/shopping/shop/checkout/

Thank you so much for your help, bud.

Last edited by Varsity (2011-11-16 11:30)

Offline

## #4 2011-11-17 01:15

rat

### Re: How to make it where products are purchased in multiples of 20?

1. Remove line

#### Code:

`<option value='' rel="0">{"str_not_defined"|transcape}</option>`

from files published/SC/html/scripts/templates/frontend/product_brief.html and published/SC/html/scripts/templates/frontend/product_params_selectable.html.

2. Replace the desired image files in directory published/publicdata/VARSITYCS/attachments/SC/images/.

3. Modify HTML code in file published/SC/html/scripts/templates/frontend/checkout.your_info.html to make the page look the way you want.

Be careful what you wish for — you might get it.

Offline

## #5 2011-12-05 13:09

Varsity
Member

### Re: How to make it where products are purchased in multiples of 20?

Rat, thank you so much for the help.  One last question.  When the shopper clicks on the product for more information, the requirement to choose Quantity amount is no longer there.  They could put 1 unit in and purchase it, if they chose.  How do I add the Quantity values to the product description page as well?

Thanks

Offline

## #6 2011-12-06 00:29

rat

### Re: How to make it where products are purchased in multiples of 20?

#### Varsity wrote:

When the shopper clicks on the product for more information, the requirement to choose Quantity amount is no longer there.

Add this block to the product details page using the "product Info" tab in the built-in design editor.

Be careful what you wish for — you might get it.

Offline