How can I hide the quantity box when the maximum quantity orderable for a particular product is set to 1?
This can be done by adding a condition to existing 'block if' statements.
* go to the 'Design' menu and select 'Library'
* on the 'Layouts' tab, expand the 'Products' group (click on the '+')
Do the following for each product layout used on your site:
* double-click on the product layout to edit it
* search for:
<!-- This code is used when the quantity box is visible to all customers -->
* you should see:
* double-click on the first 'block if' and add the following condition to the end:
AND <actinic:variable name="MaxQuantityOrderable" /> != 1
so it will look like:
* click 'OK'
* then a few lines down, look for:
* double-click on the 'block if' to edit it and add:
OR <actinic:variable name="MaxQuantityOrderable" /> == 1
so it looks like:
* click 'OK'.
Now if a product can only have a quantity of 1 ordered the quantity field will be hidden so that your customer will not try to add more to the basket.
This can be done by adding a condition to existing 'block if' statements.
* go to the 'Design' menu and select 'Library'
* on the 'Layouts' tab, expand the 'Products' group (click on the '+')
Do the following for each product layout used on your site:
* double-click on the product layout to edit it
* search for:
<!-- This code is used when the quantity box is visible to all customers -->
* you should see:
* double-click on the first 'block if' and add the following condition to the end:
AND <actinic:variable name="MaxQuantityOrderable" /> != 1
so it will look like:
* click 'OK'
* then a few lines down, look for:
* double-click on the 'block if' to edit it and add:
OR <actinic:variable name="MaxQuantityOrderable" /> == 1
so it looks like:
* click 'OK'.
Now if a product can only have a quantity of 1 ordered the quantity field will be hidden so that your customer will not try to add more to the basket.