Hide quantity box on individual product pages

  • Posts: 56
  • Thank you received: 4
  • Hikashop Business
11 years 11 months ago #124942

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

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
11 years 11 months ago #124961

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.

The following user(s) said Thank You: mrooke

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

  • Posts: 56
  • Thank you received: 4
  • Hikashop Business
11 years 11 months ago #125061

Worked perfectly, thank you for the phenomenal support!

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

  • Posts: 13
  • Thank you received: 0
10 years 5 days ago #213824

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

Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 4 days ago #213842

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum