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 10-30-2003 16:41:57

carolsim
Member
Registered: 08-02-2003
Posts: 37

Return To Previous Catagory Page?

Hello: We are getting ready to launch an online labor bookstore and the client has a request. Is it possible for a person to hit the "Continue Shopping" button at the bottom of the cart and be returned to the category page they were just in?

Right now I have it set to go to the first category page in the menu. Going to the first category page in the menu is his second choice. He would prefer that the site visitor be returned to the category they were just in.

Thanks,

Bob S.

Offline

 

#2 10-31-2003 08:16:07

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

By default the program goes back to the page the user was on when they clicked the add to cart button.  If your add to cart buttons are on the category page, it will point back there.  Did you make a mod to have it do something else?


Nick Hendler

Offline

 

#3 10-31-2003 10:10:11

carolsim
Member
Registered: 08-02-2003
Posts: 37

Re: Return To Previous Catagory Page?

That's a good question Nick. The client wanted to experiment with different ways to "Continue Shopping" and somewhere along the way the default  dropped out. I'll check my backup copy and reinstall the original to see if he's happy with that.

Thanks a million,

Bob S.

Offline

 

#4 10-31-2003 12:19:09

csherwood123
Member
Registered: 10-22-2002
Posts: 235

Re: Return To Previous Catagory Page?

Something simpler, I hope.

Where do I modify the Continue Shopping button to return the user to the home page?

Offline

 

#5 11-03-2003 08:48:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

Under HTML Pages & Elements | Manage Site Elements, update the element named 'Shopping Cart - Footer - Update'.  Change:

Code:


<A HREF="(CGIVAR)link_contshop(/CGIVAR)"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_contshop.gif" WIDTH="(CGIVAR)site_buttonlg_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_buttonlg_image_height(/CGIVAR)" BORDER="0"></A>

To:

Code:


<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_store"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_contshop.gif" WIDTH="(CGIVAR)site_buttonlg_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_buttonlg_image_height(/CGIVAR)" BORDER="0"></A>


Nick Hendler

Offline

 

#6 12-14-2003 17:04:12

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

webmaster,10/31/2003 08:16:07 AM wrote:

By default the program goes back to the page the user was on when they clicked the add to cart button.  If your add to cart buttons are on the category page, it will point back there.  Did you make a mod to have it do something else?

Is there a way to have it always go back to the catagory they were in even if they added the product from the product description page?

Offline

 

#7 12-14-2003 18:19:03

scoutch
Member
Registered: 07-03-2003
Posts: 3167

Re: Return To Previous Catagory Page?

Well, you could always add a " Go back " link in the appropriate data/elements files by using the following command :

(CGIVAR)common_url(/CGIVAR)&pg=store

Hope this helps.

Keep me inform.


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#8 12-14-2003 18:31:40

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

scoutch,12/14/2003 06:19:03 PM wrote:

Well, you could always add a " Go back " link in the appropriate data/elements files by using the following command :

(CGIVAR)common_url(/CGIVAR)&pg=store

Hope this helps.

Keep me inform.

My client has asked that the continue shopping button always return to the catagory they were in before and not an extra link.  Thanks for trying to help.   wink 

Offline

 

#9 12-15-2003 13:43:33

scoutch
Member
Registered: 07-03-2003
Posts: 3167

Re: Return To Previous Catagory Page?

In this case, e-mail Nick at : ec@kryptronic.com to correct this problem.


______________________________________________

THIS USER HAS BEEN BANNED FROM THIS FORUM.

If this post contains any language related to
code samples, advice, etc., please read this
entire thread before making a decision to use
this post as a basis for any change to your
software installation.
______________________________________________

Offline

 

#10 12-19-2003 13:19:10

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

In the file ./cgi-bin/library/modules/ste_cart.pl in the routine 'ste_cart_disp_proc', look for:

Code:


} elsif ($orig_pg eq "ste_prod") {

$link_contshop = "$common_url&pg=ste_prod&ref=$cart_prodid&cat=$cart_cat&catstr=$cart_catstr";

And change to:

Code:


} elsif ($orig_pg eq "ste_prod") {

$link_contshop = "$common_url&pg=ste_cat&ref=$cart_cat&catstr=$cart_catstr";

That should work.


Nick Hendler

Offline

 

#11 12-19-2003 14:29:30

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

webmaster,12/19/2003 01:19:10 PM wrote:

In the file ./cgi-bin/library/modules/ste_cart.pl in the routine 'ste_cart_disp_proc', look for:

Code:


} elsif ($orig_pg eq "ste_prod") {

$link_contshop = "$common_url&pg=ste_prod&ref=$cart_prodid&cat=$cart_cat&catstr=$cart_catstr";

And change to:

Code:


} elsif ($orig_pg eq "ste_prod") {

$link_contshop = "$common_url&pg=ste_cat&ref=$cart_cat&catstr=$cart_catstr";

That should work.

That works for when you have added a product from a catagory, but when you add a prodcut from the splash page you recieve this error:

Script Execution Error
The following error was just encountered:

DBD::mysql::st execute failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2 at /var/www/vhosts/grocerycompa@grocerycompany.com/store/cgi-bin/library/common/database.pl line 623.


Any ideas?

Offline

 

#12 12-19-2003 14:45:55

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

When do you see that error?  Is that when you click the link?


Nick Hendler

Offline

 

#13 12-19-2003 15:13:07

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

If you added a product from the splash page to your cart and then click on the continue shopping button that is when the error is produced.  If you add a product from a catagory section and then click continue shopping it works just fine.     

Offline

 

#14 12-19-2003 15:26:14

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

Ok.  Change that to:

Code:


} elsif ($orig_pg eq "ste_prod") {

if ($cart_cat eq "") {

$link_contshop = "$common_url&pg=ste_prod&ref=$cart_prodid&cat=$cart_cat&catstr=$cart_catstr";

} else {

$link_contshop = "$common_url&pg=ste_cat&ref=$cart_cat&catstr=$cart_catstr";

} ######### End of if statement.


Nick Hendler

Offline

 

#15 12-19-2003 15:39:21

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

Now I can't add a product either way.  It dies when I try to add a product to the cart now. 


The script you were trying to call had an error in it. Here are a few things to check for if you are the owner of the script.

1) Make sure that the script you are running is set at chmod 700.
2) Make sure that all the directories below the script are set at chmod 755.

Offline

 

#16 12-19-2003 15:39:55

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

The scrip is set to 755

Offline

 

#17 12-22-2003 16:07:39

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19964
Website

Re: Return To Previous Catagory Page?

You've got a syntax error.  Back the changes out and try again.


Nick Hendler

Offline

 

#18 12-22-2003 16:17:13

yellowfuji
Member
Registered: 12-14-2003
Posts: 11

Re: Return To Previous Catagory Page?

Thanks, I caught my syntax error a few minutes after making that post.  wink

Offline

 

Board footer