Can we stop quantity from changing product price?

  • Posts: 256
  • Thank you received: 2
10 years 1 month ago #209732

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

Hi Guys,

We were wondering if it was possible to stop the quantity field changing the price of the product?

Basically, we need the quantity field to still update the stock we have left, but we want the customer to only ever be charged for 1, no matter how many they order. Is this possible?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #209737

Hello,
A simple solution can be to, instead of using the "Quantity" field, to use a custom item field that you'll be able to create via "Hikashop->Display->Custom fields".

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

  • Posts: 256
  • Thank you received: 2
10 years 1 month ago #209814

Will this be able to update the product stock left?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #209837

Hello,
My bad, I didn't totally understood your first question, there is no option to do that if you also want the stock to be update.
The only solution will be to directly create a plugin based on the trigger :
- hikashop_product_price_for_quantity_in_cart
- hikashop_product_price_for_quantity_in_order
which will override the product quantity trough your customer cart during the checkout workflow.
Checking the developer documentation can be usefull : www.hikashop.com/support/documentation/6...r-documentation.html

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

Time to create page: 0.066 seconds
Powered by Kunena Forum