Unable to select product quantity after selecting a characteristic.

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294470

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.0.x
-- Browser(s) name and version -- : Chrome 67.0.3396.87
-- Error-message(debug-mod must be tuned on) -- : No error message

We are in the process of adding products to a clients store and have run into an issue with selecting a characteristic and then quantity.

If we select a characteristic (product variant) we are unable to select the quantity.

This is a similar issue to the thread I found here, www.hikashop.com/forum/4-how-to/894234-a...ot-select-quant.html

Is there a way to obtain the patch referenced in there? If you need access to the site to investigate please let me know as the store page requires login.

Thanks,

Scott for Colin

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 9 months ago #294500

Hi,

That thread is almost 3 months old. And your HikaShop 3.4.0 build is dated from the 25th of May. So you already have that patch in your HikaShop. Giving you the patch of that other thread won't help. Which means that your issue is different from the one on that other thread.

So I've checked on your link and from what I can see, the issue is with the way the dropdowns have been customized (probably in your template).
Check if you have the "use chosen library" setting activated in the HikaShop configuration.
If you do, try disabling it and see if that helps.
Also, try switching to the default template of Joomla and check if that helps. That would indicate an issue with how the product page layout is customized.

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

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294541

Thank you for the information Nicolas.

Scott

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

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294570

Hi Nicolas;

I've heard back from our developers who have tested your suggestions and have come across the following.

1) Turned off our template and used the default Joomla template
- Use Chosen Turned on: Cannot select quantity after selecting a variant (characteristic: ie Bag Color)
- Use Chosen Turned off: Can select quantity after selecting a variant (characteristic: ie Bag Color), drop down list styling no longer there.

2) Using our template
- Use Chosen Turned on: Cannot select quantity after selecting a variant (characteristic: ie Bag Color)
- Use Chosen Turned off: Can select quantity after selecting a variant (characteristic: ie Bag Color), drop down list styling no longer there.

The use chosen is a feature we would like to use as it does make the select boxes "pretty" and fit the design & look of the rest of our website.

Scott

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 9 months ago #294573

Hi,

Then you can try to add such code:

if(hkjQuery().chosen)
		hkjQuery(\'select\').chosen();
after the line:
if(window.Oby && window.Oby.fireAjax) window.Oby.fireAjax("hkContentChanged", {selection:selection});
in the file administrator/components/com_hikashop/types/characteristic.php
Let us know how it goes. If it works, we an include that patch with the next version of HikaShop.

The following user(s) said Thank You: cgourlay

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

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294624

Thank you Nicolas.

That sort of fixes it. It adds a new quantity select that works, but the non working one is still displayed.

Example: saltscapes.com/store/accessories/other/p...eaver-moose-kit.html

Select package type Canvas Bag and then working Select will appear.

Scott

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

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294628

In case the extra information is needed. With the double quantity selects showing two instances of the product are added to the shopping cart.

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 9 months ago #294629

Hi,

Then I would recommend deactivating chosen. It's not really meant to be used with dynamic HTML like that.

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

  • Posts: 11
  • Thank you received: 0
6 years 9 months ago #294695

Hi Nicolas;

The characteristics and quantity are default features out of the box with HikaShop/Hikamarket. Below is an example of the shop with no customizations, default Joomla template and it has this same issue with Chosen turned on.

saltscapes.com/store-dev/index.php?optio...able-tote&Itemid=318

As mentioned earlier, Use Chosen is a feature we would prefer to use in the store as it allows the drop down lists to look like they are part of the store.

Any help that could be provided in resolving this would be appreciated.

Scott

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

  • Posts: 83603
  • Thank you received: 13533
  • MODERATOR
6 years 9 months ago #294742

Hi,

I know you would have the same problem with the default template.
The problem comes from the way chosen works and the way the characteristics system refreshes the elements on the page.
Unfortunately, we can't change the way chosen works. That's something from Joomla.
So the best way to fix that in the long term will be to change the way the characteristics system works. That's actually something we want to do this year or next year.
In the mean time, the best would be to either not use a dropdown for the quantity or not use chosen.
I can propose an alternative:
Don't show the quantity input (with the quantity input method setting) and instead create a second characteristic for the quantity.
That way, the dropdown won't dynamically refresh on the product page and it won't cause that problem with chosen. The downside is that it more work to manage the products and might be less nice on the checkout.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum