Jump to content

How to access cart.php?a=complete without having to place a new order?


sonuyos

Recommended Posts

I wanted to know how i can access the complete page without having to place a new order?

Even after placing a new order, that page is accessible for like couple of hours, what flag/cookie do I have to set in order to access the page without needing to place a new order every time.?

Link to comment
Share on other sites

10 hours ago, sonuyos said:

I wanted to know how i can access the complete page without having to place a new order?

Even after placing a new order, that page is accessible for like couple of hours, what flag/cookie do I have to set in order to access the page without needing to place a new order every time.?

If you need a different checkout page or need to manipulate any aspect of checkout (like access the complete page without place and order) I recommend that you look for a third-party integration with WHMCS API or something like that.

Link to comment
Share on other sites

8 hours ago, leemahoney3 said:

I don't really understand. 

After you place an order, that page should continue to be accessible showing the most recent order number.  What variables exactly are you trying to fetch?

See, honestly it shouldnt matter why i need to access the page, the functionality should be there to access any page that one like.

 

There are certain variables that i would like to fetch.

Link to comment
Share on other sites

3 hours ago, sonuyos said:

See, honestly it shouldnt matter why i need to access the page, the functionality should be there to access any page that one like.

 

There are certain variables that i would like to fetch.

I don't think a hook will help so, the completed cart page looks to be only visible when a certain session/cookie is present. Once that is gone, the page is no longer accessible until the next order is placed.

One thing you could do is create your own page, and then use the ShoppingCartCheckoutCompletePage hook to redirect to it if you wish.

Link to comment
Share on other sites

4 minutes ago, leemahoney3 said:

I don't think a hook will help so, the completed cart page looks to be only visible when a certain session/cookie is present. Once that is gone, the page is no longer accessible until the next order is placed.

One thing you could do is create your own page, and then use the ShoppingCartCheckoutCompletePage hook to redirect to it if you wish.

Can we manipulate thr session cookie?

I will check the method you posted shortly.

 

Thanks.

Link to comment
Share on other sites

2 hours ago, sonuyos said:

Can we manipulate thr session cookie?

I will check the method you posted shortly.

 

Thanks.

Possibly, you can view the session data by running the following hook (not on a public environment):

 

 

add_hook('ShoppingCartCheckoutCompletePage', 1, function ($vars) {
    die(var_dump($_SESSION));
});
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated