Want total price in default view when quantity is increased

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
1 year 4 days ago #356854

-- 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.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
1 year 4 days ago #356855

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.

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
1 year 3 days ago #356878

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

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

Time to create page: 0.064 seconds
Powered by Kunena Forum