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

YOU ARE HERE:
Force CJ links?

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Force CJ links? »
Welcome, Guest. Please Login or Register.
12/17/17 at 12:02:20
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Force CJ links?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Force CJ links?  (Read 825 times)
kylex
Green Dragon
*

Posts: 9



Go Scots!
   

Force CJ links?
« on: 04/18/07 at 16:07:21 »
Reply with quote Modify message

While we're waiting for the new cpshops to include the CJ PID, is there anyway to tweak the code so I can have all the items linked with a CJ PID?

Logged
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Force CJ links?
« Reply #1 on: 04/18/07 at 16:45:41 »
Reply with quote Modify message

Just curious, why would you want to do that before the end of May? Unless you don't have a CP affiliate ID?

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
kylex
Green Dragon
*

Posts: 9



Go Scots!
   

Re: Force CJ links?
« Reply #2 on: 04/18/07 at 19:22:31 »
Reply with quote Modify message

I don't have an affiliate ID.
Logged
kylex
Green Dragon
*

Posts: 9



Go Scots!
   

Re: Force CJ links?
« Reply #3 on: 04/19/07 at 11:42:58 »
Reply with quote Modify message

I was thinking if I have the "add to cart" link set up with a CJ affiliate link that would work as a temporary fix.

But I don't know what file stores the variable that has that link.

Help a brother out man!  
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Force CJ links?
« Reply #4 on: 04/19/07 at 12:09:23 »
Reply with quote Modify message

Unfortunately, it's actually much more complicated than that.  It requires actual code changes, not just the addition of extra variables.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Force CJ links?
« Reply #5 on: 04/19/07 at 12:29:23 »
Reply with quote Modify message

In that case, the link you really need to worry about is the add-to-cart button on product detail pages.  Look for the add-to-cart form in cppage.lib @ around line 1150.  It's kinda busy in there but you can probably figure it out.

Without going into the code, you could try using the cpshop.cgi.images file to munge the add-to-cart form after cpshop generates it.

The image file may not offer enough oomphf -- it has its restrictions.  In that case you might try this tutorial on advanced string replacement in cpshop.

Cheers,

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.