Checkout after_end order token missing

  • Posts: 1119
  • Thank you received: 114
6 years 3 months ago #297093

-- HikaShop version -- : [1808090926

Hi,

I have been customizing after_end.php file and found that if user is not logged in during checkout the order amount, order token and order number is missing. Basecly $this->order returns NULL if user is not logged in...

To be sure i also tried with default protostar template and received same issue.

Here is the screenshot of default after_end.php message with no order token as you can see so user can't access hes order after checkout....



I also have tried with older hikashop version "HikaShop Business 3.4.0 [1803271422]" and it works fine....

What is the issue?

Kind Regards

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 3 months ago #297095

Hi,

Indeed, thanks for your feedback.
I've added a patch for that. Download again the install package and install it on yours and you should get the patch for it.

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297125

Hi,

Thank you Nicolas. It works fine now.

Regards

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

  • Posts: 1119
  • Thank you received: 114
5 years 2 weeks ago #312839

Hi,

Not sure what happened but it seems that the issue is back. No order token for guest users and $this->order returns NULL if user is not logged in.

You will find build number in image attached.



Thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 2 weeks ago #312869

Hi,

I'm not able to reproduce the problem. Which payment method are you using ?
What is the URL of the thank you page you get ?

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

  • Posts: 1119
  • Thank you received: 114
5 years 2 weeks ago #312872

Hi,

The url looks like this "index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=46"

I am using paysera payment method which you can download from here: support.paysera.com/index.php?/Knowledge...cle/View/90/0/joomla

I also tried with protostar template and same issue.

Hope this helps a bit.

Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 2 weeks ago #312876

Hi,

After the code:

            .'&orderID='
            .$order->order_id
add the code:
            .'&order_token='
            .$order->order_token
in the code of the plugin and that should help.

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

  • Posts: 1119
  • Thank you received: 114
5 years 2 weeks ago #312903

Hi,

At first i thought it was related to Hikashop. My bad.

The fix you provided didn't work so i used the older plugin and it is working fine with it.

So the issue is with the new plugin...

Thanks

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

Time to create page: 0.081 seconds
Powered by Kunena Forum