Skip to main content

modified characteristics and quantity

More
12 years 10 months ago - 12 years 10 months ago #131738 by tuhinboss

how to hide "quantity box" ( just "buy" option and no "+ -") if the "weight" is below 1 kg . thanks
Last edit: 12 years 10 months ago by tuhinboss.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #131775 by nicolas
Hi,

You can add the code:
Code:
if($this->row->product_weight<1){ $this->params->set('show_quantity_field',0); }else{ $this->params->set('show_quantity_field',1); }
at the beginning of the file "quantity" via the menu Display>Views.
The following user(s) said Thank You: tuhinboss

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum