Skip to main content

The cart is empty after redirect to the cancel_url

More
10 years 4 months ago #240775 by IGrock
-- url of the page with the problem -- : http://localhost/joomla/index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=105&Itemid=515
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.14

Hi,
My payment gateway doesn't send a notification request, but passes the information to the return URL. So I use notification URL as return URL and redirect the user to the HikaShop return URL at the end of the onPaymentNotification function. Same with the cancel URL. But in my case if the buyer cancels the payment on the payment gateway, the order status changes to "cancelled" but the user is not returned on the checkout, instead, the page opens with the list of products (http://xxx/index.php/product/listing) and message "The cart is empty".
Please help to understand what's wrong.

$cancel_url = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=' . $order_id . '&lang='.$this->locale. $this->url_itemid;

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

More
10 years 4 months ago #240801 by nicolas
Hi,

It's probably because the option "Clean cart when order is" of the HikaShop configuration is set to "created" and you want it set to "confirmed".
The following user(s) said Thank You: IGrock

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

More
10 years 4 months ago #240810 by IGrock
Yes, you are right.
Thank you very much

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

Time to create page: 0.161 seconds
Powered by Kunena Forum