Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Posts
    85
    Plugin Contributions
    0

    Default How Do I Make Model # a link on the Invoice so it searches the site

    I need to make the model number into a link that will search the site
    example:

    HTML Code:
    site.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=(Model Goes Here)
    I see this line in the admin/invoice.php

    PHP Code:
    <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; 

    but I'm unsure as to how to edit it, has anyone ever done this modification before?

    thank you,
    Steve

  2. #2
    Join Date
    Jun 2008
    Posts
    85
    Plugin Contributions
    0

    Default Re: How Do I Make Model # a link on the Invoice so it searches the site

    Does anyone know how I code edit or add to the file so that I can have the model number use the advanced search on the site as I posted? I'm sure someone has done this before

    thank you,
    Steve

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How Do I Make Model # a link on the Invoice so it searches the site

    Are you wanting a link in the admin or a search in the admin for the products_model ...

    Are you just trying to get from the product listed on the invoice.php to the actual product in the Categories/Products?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2008
    Posts
    85
    Plugin Contributions
    0

    Default Re: How Do I Make Model # a link on the Invoice so it searches the site

    Hello Linda, thanks for the response.

    #2 trying to get from the product listed on the invoice.php to the actual product in the Categories/Products

    thank you,
    Steve

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How Do I Make Model # a link on the Invoice so it searches the site

    While changing the model to include the link to the product on the invoice.php can work, you will have an issue with the fact that the invoice.php is created in a new window ... and this could run into problems ...

    You can change the code for the model to add the link to the product:
    Code:
               '        <td class="dataTableContent" valign="top">' . '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . zen_get_products_category_id($order->products[$i]['id']) . '&pID=' . $order->products[$i]['id']) . '">' . $order->products[$i]['model'] . '</a>' . '</td>' . "\n";
    NOTE: there is a better function for the cPath but I am old and tired so you can use this one or hunt a bit for the full cPath function ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 5
    Last Post: 27 Jul 2015, 08:13 AM
  2. v153 How do you make the model numbers unique?
    By jokkah in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 1 Oct 2014, 10:54 PM
  3. Replies: 12
    Last Post: 20 Jun 2008, 04:20 PM
  4. How to make the link relationship of the products
    By explorer1979 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Nov 2007, 10:30 PM
  5. Replies: 1
    Last Post: 30 May 2006, 06:51 PM

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