Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Any way to change the URL "Continue Shopping" leads to?

Any way to change the URL "Continue Shopping" leads to?

Locked

Started by pascalt on 21 May 2006, 2:30 PM · Views: 3,636

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
21 May 2006, 2:30 PM
#1
pascalt avatar

pascalt

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Post #1 by pascalt

I built a store site using joomla/zencart. When you go into the cart and it has products in, you see a "Continue Shopping" link, and it leads to one of the store's product page. Is there a way to replace that URL to the main page of the website? I can't find any editing fields for it in the Admin panel.

thanks!

21 May 2006, 4:46 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

includes/templates/YOURTEMPLATE/templates/tpl_shopping_cart_default.php
around line 133:```php

<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div> ``` could be changed to:```php <div class="buttonRow back"><?php echo zen_href_link(FILENAME_DEFAULT) . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div> ``` or you could alter "zen_href_link(FILENAME_DEFAULT)" to be a hard-coded URL if needed, too.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2006, 4:45 AM
#3
pascalt avatar

pascalt

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Post #3 by pascalt

hey, thanks for the reply

how would I go about hard coding the urL in? I tried the 1st way and it just displays the text of the URL next to the button and the link is gone. :(

22 May 2006, 5:05 AM
#4
pascalt avatar

pascalt

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Post #4 by pascalt

problem solved, thanks :)

3 Jun 2006, 10:09 PM
#5
cwoodside avatar

cwoodside

New Zenner

Join Date:
Jul 2005
Posts:
22
Plugin Contributions:
0

Post #5 by cwoodside

Hey all,
So I have tried this solution and I am also getting a straight text output of the link, I'm not really well versed on PHP any suggestion?

Thanks,
Chet

3 Jul 2006, 8:00 AM
#6
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Post #6 by tajul_ashyqin

originally, you can 'add to cart' any items by key-in the qty or just by hitting the 'buy now' button! can we configure the 'continue shopping' button to be able to go back to product listing page when you adding to cart any items from the product listing page?! :laugh:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

4 Jul 2006, 12:15 AM
#7
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Post #7 by tajul_ashyqin

anyone?! :cry: or shall i post a new thread?! :dontgetit

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

4 Jul 2006, 1:48 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

Depending on the progress of moving through the site ... the Continue Shopping from the shopping_cart page already goes back to where it came from IF it can resolve the location ...

When it cannot, it goes back to the main page ...

Example:
Go to the Product Listing of a Category ... hit Next ... Add to Cart ... hit Continue Shopping ...

Go to the Product Listing of a Category ... hit Next ... Hit Add to Cart ... Hit Continue Shopping ...

Sometimes this works flawlessly ... other times ... well ... not quite on the money ... :cry:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jul 2006, 2:31 AM
#9
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Post #9 by tajul_ashyqin

strange... i just testing it out at my local machine and its working flawlessly, even with the column layout grid but when i go to my remote server, its going directly to the main page! any thoughts what might cause this?! :(

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

4 Jul 2006, 2:50 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

Sometimes ... the navigation gets lost ... such is the life of an elf ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jul 2006, 3:09 AM
#11
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Post #11 by tajul_ashyqin

no solution to this, ajeh?! :unsure: which ZC file is handling the session and which database table that store this session?! :blush:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

4 Jul 2006, 3:55 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #12 by ajeh

As we re-write Zen Cart and new releases are made ... this improves ...

It is not 100% accurate at this time ...

Over time ... we hope to get to 100% accuracy ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jul 2006, 4:03 AM
#13
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Post #13 by tajul_ashyqin

Ajeh:

As we re-write Zen Cart and new releases are made ... this improves ...

It is not 100% accurate at this time ...

Over time ... we hope to get to 100% accuracy ...

i hope so...i just fresh installed the latest release of ZC on a remote server and same problem happens! it cannot resolve! :yes:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

16 Oct 2006, 10:21 PM
#14
ungeziefer avatar

ungeziefer

New Zenner

Join Date:
Mar 2006
Posts:
51
Plugin Contributions:
0

Post #14 by ungeziefer

cwoodside:

Hey all,
So I have tried this solution and I am also getting a straight text output of the link, I'm not really well versed on PHP any suggestion?

Thanks,
Chet

In case there's confusion here,

the way I got DrByte's nifty solution to work (and presumably how PascalT did the same) is to change that line to this:

<div class="buttonRow back"><?php echo zen_back_link(FILENAME_DEFAULT) . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>

("zen_back_link" rather than "zen_href_link")

Thank you DrByte!

(Previously the "continue shopping" button would go back to the item info/details page for the item already in the shopping cart -- not terribly helpful.)

22 Oct 2006, 5:02 PM
#15
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Post #15 by s_mack

ungeziefer:

In case there's confusion here,

the way I got DrByte's nifty solution to work (and presumably how PascalT did the same) is to change that line to this:

<div class="buttonRow back"><?php echo zen_back_link(FILENAME_DEFAULT) . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>

("zen_back_link" rather than "zen_href_link")

Thank you DrByte!

(Previously the "continue shopping" button would go back to the item info/details page for the item already in the shopping cart -- not terribly helpful.)

That doesn't really make any sense. You can't pass a parameter to the zen_back_link function, so what is the FILENAME_DEFAULT for? And the zen_back_link function is what seems to be the problem. On my Contact Us page, there's a "back" button that uses that function and it always takes the user back to the main page because it can't seem to resolve the history. You can use a Javascript hack instead of that function, but I'd imagine the function is being used for a reason, right?

Confused

  • Steven
22 Oct 2006, 6:57 PM
#16
ungeziefer avatar

ungeziefer

New Zenner

Join Date:
Mar 2006
Posts:
51
Plugin Contributions:
0

Post #16 by ungeziefer

s_mack,

It appears I was mistaken -- still can't get the "Continue Shopping" button to go to a specific page.

I'm quite ignorant regarding php (and javascript, for that matter), so I'm not sure what to modify. All I know is that when I used DrByte's original link of code (with "zen_href_link"), I had the same problem as "cwoodside" -- some of the code shows up as text on the page, and the link button does nothing at all.

Ajeh,

Why would we want the "Continue Shopping" button to simply be a "back" link to the previous page? (Again, in most cases this would just go back to the info/details page of the item that's already in your cart.) I don't get it.

7 Jun 2008, 7:24 PM
#17
billmad avatar

billmad

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

Post #17 by billmad

This will direct the button to the NEW PRODUCTS page

<div class="buttonRow back"><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW). '">' . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>