- Posts: 56
- Thank you received: 4
Hide quantity box on individual product pages
13 years 1 week ago #124942
by mrooke
Hide quantity box on individual product pages was created by mrooke
Joomla! 2.5.14
HikaShop Essential: 2.2.1
Hello, I need to hide the quantity selection box on several product pages but keep it on other product pages. I also need the add to cart button showing on all product pages. I found the global option "Display the quantity field on the product page" however as it is global it does not solve my problem. Appreciate any help you can give me!
Matt
HikaShop Essential: 2.2.1
Hello, I need to hide the quantity selection box on several product pages but keep it on other product pages. I also need the add to cart button showing on all product pages. I found the global option "Display the quantity field on the product page" however as it is global it does not solve my problem. Appreciate any help you can give me!
Matt
Please Log in or Create an account to join the conversation.
13 years 1 week ago #124961
by nicolas
Replied by nicolas on topic Hide quantity box on individual product pages
You need to create a custom field of the table product with the column name "product_qty_field" via the menu Display>Custom fields so that you can select whether you want the quantity field to show (value 1) or not (value 0) for each product.
Then, add the line:
<?php $this->params->set('show_quantity_field',$this->row->product_qty_field); ?>
at the beginning of the file "quantity" via the menu Display>Views and it should work.
Then, add the line:
<?php $this->params->set('show_quantity_field',$this->row->product_qty_field); ?>
at the beginning of the file "quantity" via the menu Display>Views and it should work.
The following user(s) said Thank You: mrooke
Please Log in or Create an account to join the conversation.
13 years 1 week ago #125061
by mrooke
Replied by mrooke on topic Hide quantity box on individual product pages
Worked perfectly, thank you for the phenomenal support!
Please Log in or Create an account to join the conversation.
11 years 3 weeks ago #213824
by paci8188
Replied by paci8188 on topic Hide quantity box on individual product pages
Hello,
i need to do the same thing, hidding the Q. box and just keep the add to cart button, but i tried what Nicolas said below without success. Can you send me some screen shut of the operations to do so i can check what i did wrong?
Here are the screen shut of the things i did
Thanks
Martin
i need to do the same thing, hidding the Q. box and just keep the add to cart button, but i tried what Nicolas said below without success. Can you send me some screen shut of the operations to do so i can check what i did wrong?
Here are the screen shut of the things i did
Thanks
Martin
Please Log in or Create an account to join the conversation.
11 years 3 weeks ago #213842
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Hide quantity box on individual product pages
Hi,
Since 1 year and 11 months, HikaShop has evolved and we are not proposing a "quantity layout" setting in HikaShop.
Setting that you can configure : globally / per category / per product.
Regards,
Since 1 year and 11 months, HikaShop has evolved and we are not proposing a "quantity layout" setting in HikaShop.
Setting that you can configure : globally / per category / per product.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds