You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I am adding to the cart from a remote page using the form example provided elsewhere - works well but I need the Continue Shopping button to return to the remote page where the product was added. It currently returns to the cart splash page.
Is it possible to change the button to something like <INPUT type="button" value="Continue Shopping" onClick="history.back()"> ??
Offline
Have a look in System Dashboard > Store > Component > Settings > General Store Settings there's a setting there "Continue Shopping: Target" which on my page gives the options of Splash Page, Last Product Viewed or Last Category Viewed and there's also a note "When history data is available this location will be targeted."
Offline
I wish it was that easy!
Regardless of the option chosen with those settings, the Continue Shopping button always take me back to the splash page.
Using the browser back button works fine, so the history must be there. Is there a reason that the history.back approach can't be used with this button?
Last edited by virusys (07-28-2010 20:33:41)
Offline
Hi
You could use
<p class="hidden"><input type="hidden" name="urlredirgood" id="urlredirgood" value="http://www.yourdomainname.com/good.html" /></p>
which basically bypasses the shopping cart completely and directs to whatever page you like - the item is still added to the shopping cart.
Offline
OK - that might work. I could target a confirmation page that has my own "Continue Shopping" button.
Do you know where I can either get rid of, or hard-code the Cart "Continue Shopping" button?
Offline
That scenario worked well - I made a "Cart Addition Confirmation" page and used the history.back() for Continue Shopping and another link for View Cart.
<div class="back_button"><a href="javascript:history.go(-1)">Go Back</a> or <a href="ccart/index.php?app=ecom&ns=viewcart" target="_blank">View Cart</a></div>
At line 997 of cart-private/apps/ecom/ECOM/includes/cartdisplay.php
comment out the writing of the Continue Shopping button like so:
<form action="' . $link_shop . '" id="CONTSHOP" method="post">'; // print '<p class="quickform"><input class="quickbutton" type="submit" name="CONTSHOP" '; // print 'id="CONTSHOP--SUBMIT" value="Continue Shopping" /></p> // </form> print '</td>' . $eol;
Now I just have the issue of the remaining Checkout button going to the splash page (like the Continue Shopping button used to do) instead of continuing to the next checkout step.
Any ideas about how to fix that?
Offline