View Single Post
  #1  
Old 12-04-2004, 11:51 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default 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.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote