"Price with options" doesn't show on page load
- rhinoboy82
-
Topic Author
- Offline
Less
More
11 years 10 months ago #180357
by rhinoboy82
"Price with options" doesn't show on page load was created by rhinoboy82
-- 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.
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 10 months ago #180366
by Mohamed Thelji
Replied by Mohamed Thelji on topic "Price with options" doesn't show on page load
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.
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.
- rhinoboy82
-
Topic Author
- Offline
11 years 10 months ago #180496
by rhinoboy82
Replied by rhinoboy82 on topic "Price with options" doesn't show on page load
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.
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.
11 years 10 months ago #180645
by nicolas
Replied by nicolas on topic "Price with options" doesn't show on page load
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.
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.
- rhinoboy82
-
Topic Author
- Offline
11 years 10 months ago #180657
by rhinoboy82
Replied by rhinoboy82 on topic "Price with options" doesn't show on page load
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.
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.212 seconds