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

YOU ARE HERE:
Shopping Cart return page

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Shopping Cart return page »
Welcome, Guest. Please Login or Register.
12/16/17 at 09:20:11
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Shopping Cart return page
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Shopping Cart return page  (Read 1054 times)
kwpitt
White Dragon
**

Posts: 13



Go Scots!
   

Shopping Cart return page
« on: 09/26/07 at 19:49:31 »
Reply with quote Modify message

Marty, is there an easier way to configure the return page from the cafepress shopping cart?  Currently it is set to "$scripturl" but I use index.php as my Main Store URL.  

Each upgrade I have to edit the code.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Shopping Cart return page
« Reply #1 on: 09/27/07 at 02:52:27 »
Reply with quote Modify message

Where are you making the change?
Logged

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

Posts: 13



Go Scots!
   

Re: Shopping Cart return page
« Reply #2 on: 09/27/07 at 08:50:41 »
Reply with quote Modify message

In the latest release.  cppage.lib lines 1207 through 1215.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Shopping Cart return page
« Reply #3 on: 09/27/07 at 10:00:21 »
Reply with quote Modify message

Add this to the cpshop.cgi.images file (or equivalent):

*||||<input type=hidden name=returnpage value=||||<input type=hidden name=returnpage value="your new URL" oldvalue=

Logged

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

Posts: 13



Go Scots!
   

Re: Shopping Cart return page
« Reply #4 on: 09/27/07 at 11:29:01 »
Reply with quote Modify message

Is that the complete line?  I tried that and a few variations with no success.
Logged
kwpitt
White Dragon
**

Posts: 13



Go Scots!
   

Re: Shopping Cart return page
« Reply #5 on: 09/27/07 at 11:45:14 »
Reply with quote Modify message

Okay, I figured it out.  Sorry, I thought the cpshop.cgi.images changed the script instead of the actual output.

However, I placed a long string on the cpshop.cgi.images file.  Saved the changes, cleared the cache and when I came back to view the file it was chopped in half.

Is there a limit to how long a 1 line string can be for the file?

Despite it being half gone the instructions still work after clearing the cache.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Shopping Cart return page
« Reply #6 on: 09/27/07 at 11:46:41 »
Reply with quote Modify message

There's no limit -- it's a text file.

If you're seeing lines chopped in half, it's your text editor.
Logged

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

Posts: 13



Go Scots!
   

Re: Shopping Cart return page
« Reply #7 on: 09/27/07 at 11:52:27 »
Reply with quote Modify message

Okay you're right.  My FTP file viewer screwed it up.

Thanks for the help!
Logged
lgbtees
Silver Dragon
***

Posts: 37




   

WWW
Re: Shopping Cart return page
« Reply #8 on: 10/14/07 at 07:26:41 »
Reply with quote Modify message

For some reason this doesn't appear to be working for me.  I pasted this line into my index.cgi.images file:

*||||<input type=hidden name=returnpage value=||||<input type=hidden name=returnpage value="http://LGBTees.com/index.html" oldvalue=

...but it still goes to index.cgi.

In a future version of cpshop, would it be possible to either default the return to shopping value to the control panel value for store homepage options/Option 2: Main Store URL?  Or if there's some reason that some people might want this to remain as-is, maybe a checkbox could be included there to give the option to synch the two.    That'd be very handy.
Logged
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Shopping Cart return page
« Reply #9 on: 10/14/07 at 20:59:46 »
Reply with quote Modify message

The image file doesn't play nice with some chars. If I recall correctly, for example, parenthesese can't be replaced.

Just a guess, probably won't work, but try escaping the quotes. EG:


Code:
*||||<input type=hidden name=returnpage value=||||<input type=hidden name=returnpage value=\"http://LGBTees.com/index.html\" oldvalue=


If that's a no go, try replacing double quotes with single quotes. And if that doesn't work, try without quotes at all.  Actually, I'd try that one first.

p.
Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
kwpitt
White Dragon
**

Posts: 13



Go Scots!
   

Re: Shopping Cart return page
« Reply #10 on: 10/14/07 at 21:38:19 »
Reply with quote Modify message

I took the entire html from the button and replaced it.  Similar to this:


Code:
*||||<input type=hidden name=keepshopping value="http://www.example/cgi-bin/store/cpshop.cgi"><input type=hidden name=returnpage value="http://www.example.com/cgi-bin/store/cpshop.cgi">||||<input type=hidden name=keepshopping value="http://www.example.com"><input type=hidden name=returnpage value="http://www.example.com">
Logged
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Shopping Cart return page
« Reply #11 on: 10/14/07 at 22:37:51 »
Reply with quote Modify message

Nice!

p.
Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
Pages: 1 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.