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.
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
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?
Offline
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
Something simpler, I hope.
Where do I modify the Continue Shopping button to return the user to the home page?
Offline
Under HTML Pages & Elements | Manage Site Elements, update the element named 'Shopping Cart - Footer - Update'. Change:
<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:
<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>
Offline
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
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.
Offline
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.
Offline
In this case, e-mail Nick at : ec@kryptronic.com to correct this problem.
Offline
In the file ./cgi-bin/library/modules/ste_cart.pl in the routine 'ste_cart_disp_proc', look for:
} 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:
} elsif ($orig_pg eq "ste_prod") {
$link_contshop = "$common_url&pg=ste_cat&ref=$cart_cat&catstr=$cart_catstr";
That should work.
Offline
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
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
Ok. Change that to:
} 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.
Offline
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
The scrip is set to 755
Offline
Thanks, I caught my syntax error a few minutes after making that post.
Offline