More Info View Cart + Continue Shopping = infinite loop

General ShopSite user discussion

More Info View Cart + Continue Shopping = infinite loop

Postby realwoodamishfurniture » Wed Dec 23, 2009 12:38 pm

On a More info pages, click on the View Cart button. In the shopping cart that comes up, click on the Continue Shopping button. It takes you back to the More info page that you came from. On that page, the only link is 'Back'. When you click the Back link, it takes you back to the cart. Voila! Infinite loop. Each page takes you back to the other, with no option to go anywhere else.

How can I get the More Info page to return to the product thumbnails page that it came from rather than returning to the Cart page when clicking the Back button?

Is it possible to put a Home link on the More Info page so that there is a way out?
realwoodamishfurniture
 
Posts: 10
Joined: Wed Dec 23, 2009 12:27 pm
Location: Charlottesville, VA

Postby Jim » Wed Dec 23, 2009 1:42 pm

What version and product level of ShopSite are you using?
What template are you using?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby realwoodamishfurniture » Wed Dec 23, 2009 1:47 pm

Jim wrote:What version and product level of ShopSite are you using?
What template are you using?


Version: 10.0
Level: Manager
Template: Sidebar
realwoodamishfurniture
 
Posts: 10
Joined: Wed Dec 23, 2009 12:27 pm
Location: Charlottesville, VA

Postby Jim » Wed Dec 23, 2009 3:17 pm

Edit the Sidebar--MoreInfoPage include file You can do this by going to Merchandising > Custom Templates > Includes, finding that file in the list and selecting it and then giving it the same name but add a 1 to the end of the name. Then copy the file. Then Copy the new file with the 1 at the end and remove the 1. Then edit the file and change the href in this section to what you need it to be
Code: Select all
          <td align="left" class="pagelink" valign="middle">
            <a class="pagelink" href="javascript:history.back(-1)">[-- STORE.Back --]</a>
          </td>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby realwoodamishfurniture » Thu Dec 24, 2009 2:06 pm

Jim wrote:Edit the Sidebar--MoreInfoPage include file You can do this by going to Merchandising > Custom Templates > Includes, finding that file in the list and selecting it and then giving it the same name but add a 1 to the end of the name. Then copy the file. Then Copy the new file with the 1 at the end and remove the 1. Then edit the file and change the href in this section to what you need it to be
Code: Select all
          <td align="left" class="pagelink" valign="middle">
            <a class="pagelink" href="javascript:history.back(-1)">[-- STORE.Back --]</a>
          </td>


Thanks Jim. I followed your instructions and found the right include file, and the section of code that you referenced. What do I change within this code so that the Back link will go back to the store instead of back to the cart?
realwoodamishfurniture
 
Posts: 10
Joined: Wed Dec 23, 2009 12:27 pm
Location: Charlottesville, VA

Postby Jim » Thu Dec 24, 2009 10:02 pm

Try
Code: Select all
<td align="left" class="pagelink" valign="middle">
     <a class="pagelink" href="[-- MyStoreURL --]">[-- STORE.Back --]</a>
</td>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby realwoodamishfurniture » Fri Dec 25, 2009 7:00 am

Jim wrote:Try
Code: Select all
<td align="left" class="pagelink" valign="middle">
     <a class="pagelink" href="[-- MyStoreURL --]">[-- STORE.Back --]</a>
</td>


Partial success. I hard-coded the index file for my store in the MyStoreURL part of the href above. Now the Back button takes you back to the home page rather than back to the shopping cart. But the goal was to go back to whichever page called the MoreInfo page (which is not a constant URL). Is there a way to make the Back link on the MoreInfo page go back to the page that spawned it rather than back to the shopping cart?
realwoodamishfurniture
 
Posts: 10
Joined: Wed Dec 23, 2009 12:27 pm
Location: Charlottesville, VA

Postby robm » Sat Dec 26, 2009 7:33 am

You could try setting a variable in your page template and then reference it in the moreinfo section of the product template:

page template:
Code: Select all
[-- VAR.pagelink "PAGE.Filename" --]


moreinfo section:
Code: Select all
<td align="left" class="pagelink" valign="middle">
     <a class="pagelink" href="[-- VAR.pagelink --]">Back to Catalog</a>
</td>


Just realize that if a product is assigned to multiple pages, it could be any of these page links that are used on the moreinfo page.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: No registered users and 133 guests