Forums / Managing Customers and Orders / How Do I Make Model # a link on the Invoice so it searches the site

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

Locked

Started by stevenlee on 14 May 2009, 1:50 AM · Views: 1,335

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 May 2009, 1:50 AM
#1
stevenlee avatar

stevenlee

New Zenner

Join Date:
Jun 2008
Posts:
85
Plugin Contributions:
0

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:

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

<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

17 May 2009, 8:23 AM
#2
stevenlee avatar

stevenlee

New Zenner

Join Date:
Jun 2008
Posts:
85
Plugin Contributions:
0

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

17 May 2009, 1:59 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :unsure:

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!]
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!

18 May 2009, 6:55 PM
#4
stevenlee avatar

stevenlee

New Zenner

Join Date:
Jun 2008
Posts:
85
Plugin Contributions:
0

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

19 May 2009, 4:00 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

           '        <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 ... :cool:

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!]
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!