Skip to main content

How to allow frontend editing of order custom fields

5 years 9 months ago #329267 by apurvkolte
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : Chrome 88.0.4324.146

I have added few custom fields with table 'order'. How to allow users to edit these custom fields after placing the order ?

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

5 years 9 months ago #329279 by nicolas
Hi,

It's not possible to allow customers to modify order custom fields after the order has been placed.
The custom order fields can only be filled during the checkout process thanks to the "fields" view of the checkout workflow.

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

5 years 9 months ago #329290 by apurvkolte
Hi,

Is it possible to execute a php script on placing an order ?

I want to trigger a flow to accept user input for custom order.

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

5 years 9 months ago #329293 by nicolas
Hi,

Yes.
The best is to code a small plugin implementing the onBeforeOrderCreate(&$order, &$do) event:
www.hikashop.com/support/documentation/6...mentation.html#intro
If you set $do to false you can cancel the order creation and you can use Joomla's $app->enqueueMessage(); to display a message to the user. And in $order you'll have the values of the custom order fields so that you can easily do your check.

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

5 years 9 months ago #329487 by apurvkolte
Hi,

Does the market edition with front end access allow admin to edit these front end ?

Thanks

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

5 years 9 months ago #329525 by Jerome
Hello,

Yes, HikaMarket front-edition allow to edit an order with the same features you have in the HikaShop backend.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum