Problem with calculation of product price by "decimal" length

  • Posts: 65
  • Thank you received: 1
  • Hikashop Business
15 hours 39 minutes ago #369772

-- url of the page with the problem -- : www.ravopleko.gr
-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.3

Hello,

I'm using your solution for calculating product price by length.

See topics:
-https://www.hikashop.com/forum/product-category-display/898379-calculate-product-price-by-length.html
-https://www.hikashop.com/forum/product-category-display/898421-decimal-calculate-product-price-by-length.html

But at the cart the price is calculated wrong.

Please see the attached screenshot were I'm testing various possibilities (I removed any restrictions for testing purposes).

Attachments:

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

  • Posts: 84816
  • Thank you received: 13812
  • MODERATOR
12 hours 30 minutes ago #369773

Hi,

I suppose you're using the plugin www.hikashop.com/marketplace/product/221...quantity-plugin.html
So, the probably is probably with your custom item field. The column name of the custom field must be exactly "ordered_length". Otherwise, it will be ignored by the plugin.
Alternatively, you can use the price calculations plugin:
www.hikashop.com/marketplace/product/148...ce-calculations.html
It has many advantages over the plugin you're using:
- you can have different fields for different products
- you can enter complex calculation formulas, not just price * value, and you can combine the value from different fields if necessary
- the plugin directly displays a "calculated price" on the product page when a field value is changed.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum