[Solved] Display the quantity field on the product page

  • Posts: 52
  • Thank you received: 1
9 years 3 months ago #240613

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

Hello

On my products i have variables. on the product page before the add to cart button i would like to have the quantity's so my customer can select more then one.

I set the Display (the quantity field on the product page) to Global on listings and i am getting quantity's on related products and hikashop menu category product displays thats also giving an error

I would like to just have the quantity option set to only the product page.
And if possible only some of the product pages.

Best regards

Best regards

Attachments:
Last edit: 8 years 7 months ago by Seans.

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 3 months ago #240616

Hi,

With the quantity display setting set to "global on listing", you'll need to edit the file "show" of the view "product" via the menu Display>Views and add such code at the beginning to display the quantity field on the product page:

<?php $this->params->set('show_quantity_field',1); ?>

For the warning, you can either turn off the "error reporting" setting of the Joomla configuration, or download the install package of the latest version on our website and install it on yours and that should also remove it.

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

  • Posts: 52
  • Thank you received: 1
9 years 3 months ago #240708

Hello

I added the code directly on the top of the view show/product

im not getting the quantity field on my products

Im getting an add cart at the bottom of related products

i have a module set up with a hikas shop menu that displays products, the select button is gone and a quantity field is added. i would prefer to still have the select, not to have the quantity on any of my related products or product displays.

i did set the global setting to to "global on listing"


its not super important that i pull this off it would just be nice.

Best regards

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 3 months ago #240742

Hi,

Ok, try with this code instead:
<?php $this->config->set('show_quantity_field',1); ?>

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

Time to create page: 0.062 seconds
Powered by Kunena Forum