Item Still in Cart after Checkout Process is Done?

  • Posts: 35
  • Thank you received: 1
10 years 5 months ago #161787

url of the page with the problem -- : goldsmiths.accountsupport.com
-- HikaShop version -- : HikaShop Business: 2.3.0
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none


Hello,

I have a Hikashop Cart Module set up as a mini cart so it will display the total of items in the cart. And it functions well and as expected.

Only I noticed one small issue and I am not sure why it is occurring? I am performing test transactions at the moment and as I add items to the cart, the items do show up in the mini cart module as expected, letting you know how many items are in the cart along with the cart total. However, when you go through the checkout process and complete an order I noticed that the cart module still shows that the item is in the cart?

I did just recently add code to the checkout "end" view to redirect the customer to the order page so they can view all the information about their order and print it out if they wish. Below is that code, could this redirect I have in place be causing the cart module to not reset?

/* CT - Find current order id and show receipt */
$order_id = $app->getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$this->order = $orderClass->loadFullOrder($order_id);

$app->redirect('/my-account/order/show/cid-'.($order_id));

Thank you for your time!

P.S. Sorry I just realized I posted this in the wrong category and I am not sure how to move it to the proper one?


Thank you for your time!

Sincerely,
Brandon Cardone, Card One Concepts
Last edit: 10 years 5 months ago by CardOneConcepts.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #161796

Hi,

To be sure you can try to checkout without this code in place.
Do you have cache enabled or any cache extension/module published ?

Why not simply setting up a return url in the payment method settings ?

Updating the version of HikaShop could help too.

The following user(s) said Thank You: CardOneConcepts

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

  • Posts: 35
  • Thank you received: 1
10 years 5 months ago #161998

It was becuase I had cache on.

But in a way that is kind of lame becuase now I can not take advantage of speeding up my site?

I was reading that most modules SHOULD have a setting under the advanced tab to adjust cache settings per module but apparently the cart module lacks this?

Any thoughts becuase I'm kind of bummed I can not use cache settings now? :dry:


Thank you for your time!

Sincerely,
Brandon Cardone, Card One Concepts

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #162039

You must understand that a cart needs to be dynamic. It's not possible to have cache with it unless it is a fine grained enough cache and the Joomla cache doesn't allow for that.
You would need a more fine grained caching system where you can exclude HikaShop from the caching like jotcache:
extensions.joomla.org/extensions/core-en...formance/cache/13155

The following user(s) said Thank You: CardOneConcepts

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

  • Posts: 35
  • Thank you received: 1
10 years 5 months ago #162127

Thank you Nicolas.

That all makes perfect sense and thank you for pointing me in a good direction for an alternative cache tool I did not know existed!


Thank you for your time!

Sincerely,
Brandon Cardone, Card One Concepts

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

Time to create page: 0.070 seconds
Powered by Kunena Forum