Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default [Done 2.0.0] Tell a friend send URL only for regular products, not other product type

    module/pages/tellafriend/header only supports product_info
    because music product links to product_music_info, the tell a friend function does not work with these product.

    solution,
    add in the filename.php a definition for the product_music_info page
    then change this to test if it is a music product

    $html_msg['EMAIL_PRODUCT_LINK'] = sprintf(str_replace('\n\n','<br />',EMAIL_TEXT_LINK), '<a href="'.zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']).'">'.$product_info->fields['products_name'].'</a>' , '', false);

    should be

  2. #2
    Join Date
    Jan 2004
    Posts
    65,195
    Blog Entries
    7
    Plugin Contributions
    76

    Default Re: Tell a friend send an URL only for regular products, music products are not suppo

    Not quite correct.

    The better solution, which will support *any* product-type would be to change this:
    Code:
        $html_msg['EMAIL_PRODUCT_LINK'] = sprintf(str_replace('\n\n','<br />',EMAIL_TEXT_LINK), '<a href="'.zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']).'">'.$product_info->fields['products_name'].'</a>' , '', false);
    to this:
    Code:
        $html_msg['EMAIL_PRODUCT_LINK'] = sprintf(str_replace('\n\n','<br />',EMAIL_TEXT_LINK), '<a href="'.zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']).'">'.$product_info->fields['products_name'].'</a>' , '', false);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Tell-a-Friend Not Showing Value in new Product Type
    By RicM in forum General Questions
    Replies: 1
    Last Post: 13 May 2011, 01:35 PM
  2. Refer a friend page or Tell a friend about website, not product
    By dealbyethan.com in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2008, 11:58 AM
  3. Tell a friend about this product sending email only to admin
    By audradh in forum General Questions
    Replies: 2
    Last Post: 30 May 2006, 09:01 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