email sent when cancelled

  • Posts: 140
  • Thank you received: 0
8 years 5 months ago #242058

-- url of the page with the problem -- : ce4rt.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5.35
-- Browser(s) name and version -- : na
-- Error-message(debug-mod must be tuned on) -- : No error

Sorry if this has been asked before, I searched but couldn't find an answer.

If my customer cancels an order, they receive an email that says.
"The status of your order has been changed to cancelled"

This causes confusion if they cancel an order then immediately create and complete an order after that.

This seems to be a function of the "Order status notification" plugin. I see an "order cancel" email plugin also, but not one for order complete.

Ideally, they would be sent an order cancelled or order created email if they cancelled or created an order but only if they did not also make a purchase within a half hour or so.

If that's not possible, I would like to send an email only if they complete an order.

Thanks.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 5 months ago #242081

Hi,

If my customer cancels an order...

How does your customer cancels an order ?
If you're talking about the "cancel" button of the orders listing, then yes there is an email sent.
If you don't want that, you would have to edit the file components/com_hikashop/controllers/order.php add add such line:
$newOrder->history->history_notified = 0;
before the line:
$orderClass->save($newOrder);
You can't add complex conditions like "only if they did not also make a purchase within a half hour or so." unless you add some more complex custom coding.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum