Pricing rounding + mass actions

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #186588

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.2.4
-- PHP version -- : 5.4.32
-- Browser(s) name and version -- : Opera 26.0

I have a range of meal products (with cusotmisable ingredients via characteristics) with different pack qauntities, weights and prices: 10 pack 300g $95, 15 pack 300g $140 ====> 30 pack 700g $382. I allow people to create a maximum of number of meals per pack (e.g 10) with customized ingredients by controlling the allowable qauntity using the 'Maximum quantity per order' parameter for each meal. I set the pricing on a per meal basis and it varies per pack. E.g, 10 pack = $9.5 per meal for a total of $95 for the pack, 30 pack = $12.73 per meal for a total of $382 for the pack. Basically, the meal prices decreases slightly as pack quantity increases.

I notice that in order to get Hikashop to produce the right price for customers I need to enter prices up to 5 decimal places because the final price presented to customer gets rounded up. So, a 15 pack has meals at $9.33333 each for a total of $139.99995 which Hikashop rounds up to the required price of $140. Also, some meal ingredient charactertistics have specific pricing attached to them).

I create a base meal with it's inredient characteristics then duplicate it to create the other meals. I use mass actions to adjust the pricings on the meals and their ingredient characteristics. If I need to update a price to (for example) 10.50000 via a mess action it works fine. However, many prices look similar to 10.33333 and Hikashop won't change/update the decimal points (that are not 0) correctly. All this probably sounds complicated but I hope it makes sense ;).Any suggestions would be appreciated.

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

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

Hi,

I just tried to edit a product price from 10.33333 in the mass actions and don't had any issues.
Please provide a screenshot of your mass action settings.

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

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #186778

I believe I have solved it. In the mass action under:
Actions => Update the values => price_value I was using INT as the type. I changed that to FLOAT and I can now create the decimals. I will update If I have further issues. Thanks for replying.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum