How to allow frontend editing of order custom fields

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
2 weeks 5 days ago #329267

-- 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.

  • Posts: 72051
  • Thank you received: 10915
  • MODERATOR
2 weeks 4 days ago #329279

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.

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
2 weeks 4 days ago #329290

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.

  • Posts: 72051
  • Thank you received: 10915
  • MODERATOR
2 weeks 4 days ago #329293

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.

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
2 weeks 1 day ago #329487

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.

  • Posts: 24716
  • Thank you received: 3805
  • MODERATOR
2 weeks 1 day ago #329525

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum