marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Keep Shopping button broken

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Keep Shopping button broken »
Welcome, Guest. Please Login or Register.
12/18/17 at 18:41:16
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Keep Shopping button broken
(Moderator: Marty)
Pages: 1 2 3 » Reply Notify of replies Send the topic Print 
   Author  Topic: Keep Shopping button broken  (Read 3718 times)
Sally
Gold Dragon
****

Gender: female
Posts: 171




   

WWW
Keep Shopping button broken
« on: 09/27/10 at 21:13:01 »
Reply with quote Modify message

I just discovered that my Keep Shopping buttons don't work on my cart. Some lead to a 404 and some don't do anything.

Can anyone help me with the new coding for that? I guess CP changed something and I missed it!

I need code for the "View Cart" button on the homepage and one for the Keep Shopping button from the cart.

Clarification: When I get to the shopping cart from the View Cart button, the keep shopping button leads me to a 404. When I get to the shopping cart from an Add To Cart button, the Keep Shopping does nothing.

Thank you!

Site: tshirtcrusade.com
Logged

www.Babies-Rule.com
www.TShirtcrusade.com
www.LibertyBuys.com
www.12StepTees.com
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Keep Shopping button broken
« Reply #1 on: 09/29/10 at 03:12:08 »
Reply with quote Modify message

Wow, just noticed this myself.  I've been seeing product pages also get redirected to a CP page but all the links are broken on it and it is a MP page.  It's bee pretty random and sometimes on the second click of the product it will display it correctly.    Hopefully it has to do with this and it's an easy fix.   I'm having no luck trying to fix it with the .images file so hopefully someone else can give it a go.   This certainly isn't helping anyone to keep shopping  which is more than welcomed these days.
Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Sally
Gold Dragon
****

Gender: female
Posts: 171




   

WWW
Re: Keep Shopping button broken
« Reply #2 on: 09/29/10 at 22:29:19 »
Reply with quote Modify message

It also makes it impossible to find your shopping cart again unless you can hit the back button and figure out how to get where you are going... Some people who were ready to buy will give up!
Logged

www.Babies-Rule.com
www.TShirtcrusade.com
www.LibertyBuys.com
www.12StepTees.com
Cindy
Green Dragon
*

Gender: female
Posts: 6



yipee!
   

WWW E-Mail
Re: Keep Shopping button broken
« Reply #3 on: 10/01/10 at 12:56:00 »
Reply with quote Modify message

Here is a thread with a fix, but I don't know how to do it in CPShop.

http://forums.cafepress.com/eve/forums/a/tpc/f/793104/m/852108673
Logged
evets
Silver Dragon
***

Posts: 29



Go Scots!
   

Re: Keep Shopping button broken
« Reply #4 on: 10/02/10 at 18:07:49 »
Reply with quote Modify message


on 10/01/10 at 12:56:00, Cindy wrote:
Here is a thread with a fix, but I don't know how to do it in CPShop.

http://forums.cafepress.com/eve/forums/a/tpc/f/793104/m/852108673


Nor do I. Help would be appreciated!  
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Keep Shopping button broken
« Reply #5 on: 10/02/10 at 20:12:47 »
Reply with quote Modify message

Try putting this in your premium shop HEAD.


Code:
<script type="text/javascript">
$(document).ready(function() {
   var qsKeepShoppingParam = getURLParam('keepshopping').replace('http://','');
   if ((qsKeepShoppingParam != '/' + window.cafepress.storeID) && (qsKeepShoppingParam != '')) {
       var KeepShoppingInsertURL = 'http://' + qsKeepShoppingParam;
       $('.keepShoppingBtn').click(function() {
           document.location.href= KeepShoppingInsertURL;
           return false;
       });
   }
});
</script>
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Cindy
Green Dragon
*

Gender: female
Posts: 6



yipee!
   

WWW E-Mail
Re: Keep Shopping button broken
« Reply #6 on: 10/02/10 at 23:48:02 »
Reply with quote Modify message

Thanks Marty,

Do we have to put our URL's in that code?  Or just paste as it is?
Logged
evets
Silver Dragon
***

Posts: 29



Go Scots!
   

Re: Keep Shopping button broken
« Reply #7 on: 10/04/10 at 08:38:32 »
Reply with quote Modify message

Thanks Marty,

Sorry to say that I can't seem to get this to work.  

Can you be more specific as to the

"This will allow keepshopping to work, but you should leave the http:// part out of it (because IE8's new security settings will freak out -- the reason why all this is happening in the first place)."

instructions you left on CP's forum?
Thanks again!
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Keep Shopping button broken
« Reply #8 on: 10/04/10 at 15:38:01 »
Reply with quote Modify message

1. Login to CafePress, and go to the Custom HTML page for your premium shop.

2. Enter the code into the HEAD field, and save your changes.

3.  When you link to the cart, use the keepshopping variable:

http://www.cafepress.com/cp/viewcart.aspx?s=yourstoreid&keepshopping=http://www.yoursite.com/whateverpage.html
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
evets
Silver Dragon
***

Posts: 29



Go Scots!
   

Re: Keep Shopping button broken
« Reply #9 on: 10/04/10 at 16:35:34 »
Reply with quote Modify message

Ok, that part I understood and it works (Thanks!) but that only solves the issue when it's caused by clicking on the cart link.

When someone adds an item to their cart they automatically end up on the cart page and then the keep shopping button still sends them to an error page because of the double http.. or am I completely missing something?  
Logged
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Keep Shopping button broken
« Reply #10 on: 10/04/10 at 19:37:14 »
Reply with quote Modify message

I also am not able to get it to work for any product added to the cart from cpshop.  The keepshopping button won't go to anything for me after putting that code on CP.  

On another note since you're here Marty, I am seeing this happen more and more frequently and have noticed it on other peoples cpshop installs.  

Click on the ash grey shirt towards the top and hopefully you can see what is going on.  It's pulling the MP page in somehow with all dead links.  CP must have changed something.  I haven't narrowed it down as to what products are affected or if it is just completely random.  

http://www.flippinsweetgear.com/shirt/political_tshirts.flippin_sweet.908958+meet-the-fukers

I have played around with cache size, etc and it doesn't seem to do anything.  When I clear the cache it will fix it but will pop up again or somewhere else.

Maybe that has something to do with the keepshopping or something CP has changed?
Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Keep Shopping button broken
« Reply #11 on: 10/04/10 at 19:50:27 »
Reply with quote Modify message

Ah, now it's not doing it!  Should I save the page or take a screenshot next time?
Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Sally
Gold Dragon
****

Gender: female
Posts: 171




   

WWW
Re: Keep Shopping button broken
« Reply #12 on: 10/04/10 at 21:23:34 »
Reply with quote Modify message

Sorry to be so dense, but I have a question, please:

Not sure how I use the "yourpage.html" in the View Cart links. My old View Cart links just had the home page url (www.tshirtcrusade.com) there. Is there coding I can use to direct them back to the page they were on?

At this point, I just don't want to lose my Christmas buyers. October is the first of my three biggest months. Oy vey!

Thank you!
Sally
« Last Edit: 10/04/10 at 22:01:05 by Sally » Logged

www.Babies-Rule.com
www.TShirtcrusade.com
www.LibertyBuys.com
www.12StepTees.com
Sally
Gold Dragon
****

Gender: female
Posts: 171




   

WWW
Re: Keep Shopping button broken
« Reply #13 on: 10/04/10 at 21:34:51 »
Reply with quote Modify message

The Keep Shopping button now works when the cart is empty and I'm viewing the cart from the home page.

But if I add an item, it no longer works, goes to a error page.

The only place I know to change the url for View Cart is on cptemplate.html. Is there another place I should be looking? I have other sites with other pages, but on this site, this is the only place I can think of that has View Cart code.

This is my old View Cart button link:

http://www.cafepress.com/cp/viewcart.aspx?pid=7532081&cjpid=2851250&xid=3272840&tid=TSCcpshop&s=tshirtcrusades&keepshopping=http://www.tshirtcrusade.com/

This is my new one as of today:
http://www.cafepress.com/cp/viewcart.aspx?s=tshirtcrusadeS&keepshopping=http://www.tshirtcrusade.com/

So I don't need all those other numbers in my link? I have no clue what they do, I just copied and pasted and fiddled until it worked.

Thank you.
Logged

www.Babies-Rule.com
www.TShirtcrusade.com
www.LibertyBuys.com
www.12StepTees.com
Sally
Gold Dragon
****

Gender: female
Posts: 171




   

WWW
Re: Keep Shopping button broken
« Reply #14 on: 10/04/10 at 22:03:22 »
Reply with quote Modify message

When adding an item to the cart, this is the URL of the cart page:

www.tshirtcrusade.com%2findex.cgi&fromsearch=yes" target="_blank">http://www.cafepress.com/cp/viewcart.aspx?s=tshirtcrusades&keepshopping=http%3a%2f%2fwww.tshirtcrusade.com%2findex.cgi&fromsearch=yes

After I hit Keep Shopping, this is the error page I get to:
www.tshirtcrusade.com%2findex.cgi/" target="_blank">http://http%3a%2f%2fwww.tshirtcrusade.com%2findex.cgi/

I can view cart and keep shopping from the home page, even if there are items in the cart. But when I add an item, that's when the trouble starts.

Thanks.
Logged

www.Babies-Rule.com
www.TShirtcrusade.com
www.LibertyBuys.com
www.12StepTees.com
Pages: 1 2 3 » Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.