- Posts: 424
- Thank you received: 11
Want total price in default view when quantity is increased
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
2 years 10 months ago #356854
by BluepointWebdesign
-- url of the page with the problem -- :
07.bluepoint-concept.nl/feestdagen/kerst
-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.x
-- PHP version -- : 8.1.x
Hi,
How can i display in the default the total price when someone orders 2 pieces instead of 1
no it displays only the unit price
so we need a extra price field only for total amount.
Please see screenshot for more explaination.
-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.x
-- PHP version -- : 8.1.x
Hi,
How can i display in the default the total price when someone orders 2 pieces instead of 1
no it displays only the unit price
so we need a extra price field only for total amount.
Please see screenshot for more explaination.
Please Log in or Create an account to join the conversation.
2 years 10 months ago #356855
by nicolas
Replied by nicolas on topic Want total price in default view when quantity is increased
Hi,
There is no mechanism for this.
You'll have to implement some javascript code to dynamically calculate and display the total price.
For that, you'll want to implement the event quantity.checked :
www.hikashop.com/support/documentation/6...html#QuantityChecked
And you can add your JS in the product / show_default.php view file.
You might also want to implement the hkContentChanged event so that when a new variant is selected via the characteristic selectors, or an option is changed, your JS will be able to recalculate and redisplay the new total price.
This will probably require dozens of javascript lines of code, so you need to be quite proficient in javascript to be able to do that.
There is no mechanism for this.
You'll have to implement some javascript code to dynamically calculate and display the total price.
For that, you'll want to implement the event quantity.checked :
www.hikashop.com/support/documentation/6...html#QuantityChecked
And you can add your JS in the product / show_default.php view file.
You might also want to implement the hkContentChanged event so that when a new variant is selected via the characteristic selectors, or an option is changed, your JS will be able to recalculate and redisplay the new total price.
This will probably require dozens of javascript lines of code, so you need to be quite proficient in javascript to be able to do that.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
2 years 10 months ago #356878
by BluepointWebdesign
Replied by BluepointWebdesign on topic Want total price in default view when quantity is increased
Hi Nicolas,
Thanks for this explaination... i will take a look at it, if i have enough time to write all the codes..

Regards,
Mark
Thanks for this explaination... i will take a look at it, if i have enough time to write all the codes..
Regards,
Mark
Please Log in or Create an account to join the conversation.
Time to create page: 0.209 seconds