"Price with options" doesn't show on page load

  • Posts: 45
  • Thank you received: 7
10 years 9 months ago #180357

-- url of the page with the problem -- : disctraininghub.com/shop/item/757-platinum-epic-package
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Firefox 33.1

I have a product with three product options. The base price of the product is $2100 and the first option is always $2,995 regardless of the selection. So the minimum price is $5095, but when the page loads, it appears that the product costs just $2100. If you make a different selection for the first option, then the total is displayed. Also, if you click "Add to cart" then the cart total updates.

It seems like the page should load with the "Price with options" displayed for the initial selections.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #180366

Hello,
If you add an option on you product, the default value will always be set to NO, a solution can be to use a characteristic instead.

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

  • Posts: 45
  • Thank you received: 7
10 years 9 months ago #180496

The option in this case is a product with two characteristics. I might be able to re-do this with characteristics, but that might be a lot of work--and it changes all the time since it's a class with dates. As I have it now, once I update the class dates on the main product, the product we are discussing now updates automatically.

There must be some "on_" code that is called when the value in the option drop-down box changes. Can't that just be called as part of the page load to make sure the value shows correctly?

Since it is entirely possible to have options that don't include "No" or a zero cost, it would seem like a code fix is better than having to re-figure how to present the product to the user.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #180645

Hi,

No need to change your options.
The system already supports the display of the price with options at the loading of the page.
The issue on your page is that you have javascript errors caused by the extension com_jbetolo which tries to combine all the javascript files on the page. Because of these errors, the browser cannot load everything needed by the options system to initialize the display of the price with options.
Deactivate the compression of the javascript files in that extension and that should solve the problem.

The following user(s) said Thank You: rhinoboy82

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

  • Posts: 45
  • Thank you received: 7
10 years 9 months ago #180657

Wow, Nicolas, you ROCK!

I've been trying various things to try and speed up our site's page load times and the jbtolo plugin does a lot--but it also messes with too many other components. Like Hikashop, apparently.

Thanks for digging into this and I apologize that the problem was on my end.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum