X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Product Links on Order Histories (For admin and customer) (https://forum.x-cart.com/showthread.php?t=10733)

BCSE 12-04-2004 11:51 AM

Product Links on Order Histories (For admin and customer)
 
This is a simple mod, but one I find really useful. It links the product title when viewing orders in the store to either a link to modify the product (for admin or providers) or a link to view the product (for customers). This should help repeat customers buy their favorite items again.

in main/order_info.tpl find this code:
Code:

<tr>
  <td colspan="2" valign="top" class="ProductTitle">{$products[prod_num].product} #{$products[prod_num].productid}</td>
</tr>


And replace it with this code (or modify the above to look like this):
Code:

<tr>
  <td colspan="2" valign="top" class="ProductTitle">{if $usertype eq "P" or $usertype eq "A"}{else}<a href="product.php?productid={$products[prod_num].productid}">{/if}{$products[prod_num].product} #{$products[prod_num].productid}</td>
</tr>


This example was done in 3.5.5 (also tested on 4.0.8)

Carrie

junaid 12-08-2004 09:46 AM

exactly what i was looking for.
would save lot of time.
regards
junaid

dalmuti 12-08-2004 10:30 AM

Carrie,

Would this work for other versions, specifically 4.0.5 or 4.0.8?

Thanks,

Louise

BCSE 12-08-2004 10:42 AM

Louise,

Yep. I just tried it for 4.0.8 Same exact instructions worked for that too.

Carrie

Maree 06-17-2005 06:16 AM

Thanks Carrie (again :D )

Working beautifully in 4.0.13


All times are GMT -8. The time now is 04:23 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.