Skip to main content

modified characteristics and quantity

13 years 1 week ago - 13 years 1 week ago #131738 by tuhinboss

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

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

13 years 1 week 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.046 seconds
Powered by Kunena Forum