Quantity Input field missing on product page.

  • Posts: 80
  • Thank you received: 10
  • Hikaserial Standard Hikashop Business
2 days 22 hours ago #366703

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.3.0

Dear Hika team,

There is no quantity Input field on my product page.

At first I thought it was an override, but I set the css file to default, checked my custom css file, and removed all customizations in the views, but the quantity input field remains gone.

I have also switched to cassiopeia using the template, but also without success.

I have also tried different input methods in the configuration, but nothing helps.

I've been searching for hours now, also in this forum. What am I missing?

Thank you in advance!

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
2 days 18 hours ago #366704

Hi,

Changing the "quantity input method" setting is indeed what I would recommend, as per:
www.hikashop.com/support/documentation/5...html#display_product
If nothing helps, then it means that your Joomla template has some view override which discard the quantity input field regardless of what you select in the option which is supposed to control this.

If I check the HTML of your add to cart area, I can see that it is the HTML of the "simplified" choice, but with the "type" attribute set to "hidden":
i.imgur.com/4d7GuKL.png
However, if you look at the product / show_quantity view file, which is used there to display the quantity input, the code is:
i.imgur.com/83cTIi6.png
As you can see there, the type="text" is hard coded for the "simplified" mode. So it should not be possible to get the type "hidden" there with a default HikaShop on Cassiopeia.
If you do, then, either you've directly modified the core file of the view, or you're not looking at the same website or you have a caching issue of some sort or something.

So, supposing you have the problem with Cassiopeia, and thus without view overrides, rename the file components/com_hikashop/views/product/tmpl/show_quantity.php via FTP.
If you get an error / blank page, it means that this file is being used. If not, then there you're not looking at the correct website, or you have caching, or something.
Supposing you get the error, check the code I point in my screenshot for the "show_simplified", to make sure the "type" is still hard coded to "text".
If that's the case, then, it's not a template issue, nor a view modification, nor a setting issue, so it must be some javascript from another extension (plugin ?) changing the type of the input for some reason.

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

  • Posts: 80
  • Thank you received: 10
  • Hikaserial Standard Hikashop Business
2 days 6 hours ago #366728

Hi Nicolas,

I'm not sure what you mean by everything, so here goes:

Changing the "quantity input method" setting is indeed what I would recommend, as per:
www.hikashop.com/support/documentation/5...html#display_product


I did this with no results.

However, if you look at the product / show_quantity view file, which is used there to display the quantity input, the code is:
i.imgur.com/83cTIi6.png
As you can see there, the type="text" is hard coded for the "simplified" mode. So it should not be possible to get the type "hidden" there with a default HikaShop on Cassiopeia.


I do not have the type="text" here. Instead it is type="number".
Changing it to text makes no difference.

If you do, then, either you've directly modified the core file of the view

I'm sorry I don't know what you mean by that. If so, is there a way to revert this back to the original?

So, supposing you have the problem with Cassiopeia, and thus without view overrides, rename the file components/com_hikashop/views/product/tmpl/show_quantity.php via FTP.
If you get an error / blank page, it means that this file is being used. If not, then there you're not looking at the correct website, or you have caching, or something.


I did that and I did get a blanc page with a 500 error.

Supposing you get the error, check the code I point in my screenshot for the "show_simplified", to make sure the "type" is still hard coded to "text".


This is type="number" for me but even when I change it to type="text" nothing changes and still not visible in the quantity input field.

I unpacked the complete Hikashop business package and checked the view file show_quantity.php, but it also says type="number".
I put the file from the package in its place on the website but nothing happens.

Attachments:

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
2 days 3 hours ago #366730

Hi,

On you screenshot, I can see a piece of code of 'show_html5'. You're looking at the code for "show_html5", another choice than the show_simplified choice you've selected in your HikaShop configuration.
Search for 'show_simplified' in the file in order to check / modify the correct type attribute.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum