Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    Make a product go to affiliate link not product page (sold out)

    I want to be able to make products be links, or be able to make a link at the top of the description which actually appears AS A LINK when viewing items and they preview the first two lines of the description. The preview just does the text and the user can’t click it - I want a link to appear in the description preview.

    Some items I am out of stock but people keep requesting them so I want the the category and products in my catalog but I want them to link to my affiliate urls.
    I have added the products normally and have tried just putting them as out of stock, and putting the link in the description, but when a customer clicks on the category if they see out of stock they are unlikely to go further so I would like to have clickable affiliate links at the category view level? (I could put in category description)
    Can I make the “Product Image”, “Product Name” and “more info” hyperlinks go to the link on another site rather than linking to more detail about the product? (In a new window)

    thanks in advance!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Make a product go to affiliate link not product page (sold out)

    You want an HTML link from the description in the product listing page...

    The /includes/modules/<your_template>/product_listing.php file "cleans" html from the description. You can put it back by commenting out this bit (two places on adjacent lines) like this:

    ...zen_trunc_string(/*zen_clean_html*/(stripslashes(zen_get_products_description(...

  3. #3
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    Default Re: Make a product go to affiliate link not product page (sold out)

    Hi Glenn,

    Thanks very much for your reply
    Yeah I know how Zen-Cart "cleans" HTML ... usually that is really good
    For most of my products that is fine, it was just for a few that I don't have I thought there might be some code I could insert for the particular product to disable the HTML cleaning so the link shows in the description preview

    anyway I will try what you said and post how it goes

    cheers,
    Dave

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Make a product go to affiliate link not product page (sold out)

    The variable $listing->fields['products_quantity'] accesses quantity in stock, so perhaps you could insert a test for it <= 0 in the

    case 'PRODUCT_LIST_NAME':

    section after the

    if (isset($_GET['manufacturers_id'])) {

    section so that the "uncleaned" description can be used if it is out of stock.

    Then a link put in the description text would be active in the listing page.

  5. #5
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    Default Re: Make a product go to affiliate link not product page (sold out)

    wow that is really smart

    thanks!

 

 

Similar Threads

  1. Make a product that is sold out not appear in listings, sideboxes
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 7 Mar 2013, 02:54 PM
  2. Hide Sold out product from Product Listing page
    By needsome in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 May 2011, 06:49 PM
  3. Replies: 4
    Last Post: 11 Jun 2009, 09:46 PM
  4. Make Sold Out Button a link?
    By wakenine in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Jun 2009, 03:04 PM
  5. Sold Out Button - Make Link
    By CyberWoolf in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Jun 2006, 08:03 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR