Kryptronic Software Support Forum

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.

#1 07-28-2010 16:24:46

virusys
Member
Registered: 06-09-2010
Posts: 31

Remote Add - Continue Shopping Return Page

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

 

#2 07-28-2010 17:25:03

Graham
Member
Registered: 09-30-2004
Posts: 990
Website

Re: Remote Add - Continue Shopping Return Page

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

 

#3 07-28-2010 20:33:02

virusys
Member
Registered: 06-09-2010
Posts: 31

Re: Remote Add - Continue Shopping Return Page

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

 

#4 07-29-2010 03:19:20

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1716

Re: Remote Add - Continue Shopping Return Page

Hi
You could use

Code:

<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.


Rob

Offline

 

#5 07-29-2010 08:22:07

virusys
Member
Registered: 06-09-2010
Posts: 31

Re: Remote Add - Continue Shopping Return Page

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

 

#6 08-03-2010 15:23:12

virusys
Member
Registered: 06-09-2010
Posts: 31

Re: Remote Add - Continue Shopping Return Page

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.

Code:

<div class="back_button"><a href="javascript:history.go(-1)">Go Back</a>  or  <a href="ccart/index.php?app=ecom&amp;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:

Code:

<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

 

Board footer