modified characteristics and quantity

  • Posts: 25
  • Thank you received: 0
11 years 7 months ago #131738


how to hide "quantity box" ( just "buy" option and no "+ -") if the "weight" is below 1 kg . thanks

Attachments:
Last edit: 11 years 7 months ago by tuhinboss.

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
11 years 7 months ago #131775

Hi,

You can add the 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.066 seconds
Powered by Kunena Forum