Skip to main content

Option when price is empty item can't be stored

More
8 years 8 months ago #286227 by renem
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

I client forget sometimes to fill the price field, so the product is for free :-)

Is there an option (or hack) to that when the price field is empty a warning appears?

Regards René

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

More
8 years 8 months ago #286229 by nicolas
Hi,

There is no option.
The best would be to develop a small plugin and implement in it the onBeforeProductCreate(&$product, &$do) trigger. In it, just check the prices in $product->prices and if empty, set $do to false and add a message with Joomla's enqueueMessage:
docs.joomla.org/Display_error_messages_and_notices

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

Time to create page: 0.188 seconds
Powered by Kunena Forum