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