Price field and difference.

  • Posts: 156
  • Thank you received: 0
6 years 3 weeks ago #290754

-- HikaShop version -- : 3.3.2
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6

price_value is for "our price" (layout)?
product_msrp is for "common price" (layout)?
product_sort_price ?

In the csv exported the product_sort_price and price_value have the same value but I don't understand the difference.

Last edit: 6 years 3 weeks ago by SuX.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 3 weeks ago #290784

Hi,

The price_value is indeed the "our price".
The product_msrp is indeed the "common price".
The product_sort_price is automatically calculated by HikaShop when you save the product data in the backend.
In HikaShop, you can have several prices (for different currencies, different min quantity, different user groups, different variants of the product, etc).
The goal of that product_sort_price field is to select one of these prices of your product and store it there so that it is easy to filter on that field on the products listings on the frontend. Otherwise, it would require complex joins and MySQL conditions to be able to filter/sort the products listings on their price.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum