aristath
Supreme Deity
WPMU DEV Staff
Lifetime member
Support Hamster Likes (0)
When a user clicks the "buy now" or the "add to cart" button, I wanted them to be redirected to the cart istead of the default ajax-way that Marketpress uses.
It was done simply by removing the "mp_button_buynow" and "mp_button_addcart" classes from the buy buttons.
However, now I need to add a "Continue Shopping" link on the cart page that when clicked will take the user back to the page he was when he clicked the buy button.
Any tips?
Athens, Greece

Responses (5)
Support Kangaroo (joined March 2011) Likes (0)
Greetings aristath,
How are you my neighbor to the South?
I see you are burning the midnight oil again ;-)
I personally do not have a solution for this great idea of a "continue shopping" link/button and though this could clearly be perceived as a feature request, I will see if i can get the lead developer in here to offer his advice/advise on how this feature could possibly be added without hopefully the need for a lot of custom coding.
I will try to get him in here asap.
Cheers, Joe
Support Hamster (joined March 2012) Likes (0)
@aecnu Thank you my neighbor to the North!
It's too hot to work during the day... (more than 40 degrees Celsius) so I prefer working after the sunset. :) the temperatures are a lot friendlier now!
Support Hamster (joined March 2012) Likes (0)
Problem solved.
That turned out to be a lot easier than what I expected...
<a href="javascript:history.go(-1)">Continue Shopping</a>Support Kangaroo (joined March 2011) Likes (0)
Greetings aristath,
Hey there hard worker, thank you for letting us know.
Where did you insert your code for the benefit of other members wanting to incorporate this feature? On the cart page would be correct?
Please advise.
Cheers, Joe
Member (joined July 2011) Likes (0)
Thanks for this. Great advice
Become a member