Total Weight in Mini Cart

  • Posts: 109
  • Thank you received: 5
10 years 10 months ago #174582

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

Please could you let me know how to display the total weight of products shopped in the mini cart? I would like this total weight to be updated in real time; i.e. as the customer adds/deletes products, this total weight figure should be re-calculated.

Thanks.

Take care!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #174606

Hi,

You will have to edit the view "product / cart" in order to add custom php code to get the weight of each product, multiply it by the quantity and increment it's value.

It require some PHP knowledges. These values are stored in the variable "$this->rows" (you have do to a foreach on that).
hikashop.com/support/support/documentati...ize-the-display.html

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

  • Posts: 109
  • Thank you received: 5
10 years 10 months ago #174793

Thanks, Xavier.

What's the difference between product_weight and product_weight_orig?

Take care!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #174800

Hi,

The weight orig is the weight set in the product page, then product weight is the weight in the selected weight unit.
Example, if you set a weight of 2kg, it is the weight orig, and 2000g is the weight but in grammes. Or this can be converted into another unit.

The following user(s) said Thank You: Ed_Hika

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

Time to create page: 0.058 seconds
Powered by Kunena Forum