Results 1 to 8 of 8
  1. #1

    Default hidding affilate code using php

    hello all,

    i am trying to create a page where i review some products
    I don't want customer to be able to see my affiliate link so i wanted to create a link that directs to a php file. I want that php file to redirect correspondingly to the affiliate code.

    Which directory would i put this php file in and, and will i be causing any kind of errors doing this?

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: hidding affilate code using php

    The easiest way to do this is probably to set the products up as a document, which they can't add to the cart. You can then use the Product URL field which would then link directly to your affiliate page if you wanted to. Changing the language defines of the document product, you can then get the product URL link to show any text you wish, such as "Click here to find out more". This would be a lot easier than trying to create your own page, and would allow you to place your new products within any category listing, along with these products being searchable etc.

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  3. #3

    Default Re: hidding affilate code using php

    im going to be adding my affiliate tracking links, so i dont think product docs would work. i was just going to use
    PHP Code:
     <?php
    header
    'Location: http://www.yoursite.com/new_page.html' ) ;
    ?>
    would i create this .php file in /includes/languages/english/newfile.php

    also do i need to add files in other directories to make this work correctly?

    and how would i like to this file, im thinking this but im not sure...

    "http://www.bigmoneyparttime.com/index.php?main_page=newfile"
    Last edited by bmpt; 4 May 2009 at 05:42 AM. Reason: not thorough enough

  4. #4

    Default Re: hidding affilate code using php

    I tried creating a file in includes/languages/english/newfile.php however it did not work. Simply, I just want to create a .php file where I can use an a link like this http://www.bigmoneyparttime.com/inde...n_page=newfile however, I do not know where to create this file.

  5. #5

    Default Re: hidding affilate code using php

    I was thinking, I probably should just use an ez page with an outgoing link.

  6. #6
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: hidding affilate code using php

    Like I said, why not set them up as products, and then simply put your URL in the PRODUCT URL field in the admin? This URL remains hidden from the customer, in terms of actually showing the affiliate links. They just see "Find out more" or what ever text you want to put in there.

    If you use the product system, these pages then appear in categories, get indexed by the sitemap, appear throughout your store, and are searchable within your site.

    You can even set them to a "Non add to cart" product type, so that your clients can't buy them, but have to click on the links to find out more details!

    What more could you possibly be looking for?

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  7. #7

    Default Re: hidding affilate code using php

    well, i dont really want them to be indexed...


    I tried setting them up as an ez page external link, however, when i enter the path to the ez page, i am not being directed to the external link

    https://www.bigmoneyparttime.com/page.html?id=21

    to my knowledge that is the link to the ez page

    im out of ideas

  8. #8

    Default Re: hidding affilate code using php

    I solved my issue.

    I created a folder in includes/modules/pages/newfolder
    then created a file within this folder header.php.php

    I added this code to the file
    PHP Code:
    <?php
    header
    'Location: http://www.yoursite.com/new_page.html' ) ;
    ?>

    And finally, I used this url path

    http://www.bigmoneyparttime.com/inde...page=newfolder


    everything seems to work great

 

 

Similar Threads

  1. v151 Using php code in payment module language files?
    By gilby in forum Addon Payment Modules
    Replies: 1
    Last Post: 16 Apr 2013, 05:10 AM
  2. Replies: 6
    Last Post: 11 May 2009, 03:35 AM
  3. Using .php code from another cart for multi-shipping?
    By foodstr2 in forum General Questions
    Replies: 2
    Last Post: 12 Sep 2008, 02:07 PM
  4. Affilate Module
    By cwking in forum General Questions
    Replies: 0
    Last Post: 17 Aug 2006, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg