Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Product Links on Order Histories (For admin and customer)
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 12-04-2004, 11:51 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

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
  #2  
Old 12-08-2004, 09:46 AM
 
junaid junaid is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 96
 

Default

exactly what i was looking for.
would save lot of time.
regards
junaid
__________________
xcart 4.18 on linux
Reply With Quote
  #3  
Old 12-08-2004, 10:30 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

Carrie,

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

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #4  
Old 12-08-2004, 10:42 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

Default

Louise,

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

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
  #5  
Old 06-17-2005, 06:16 AM
 
Maree Maree is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default

Thanks Carrie (again )

Working beautifully in 4.0.13
__________________
Maree
4.0.13
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:14 PM.

   

 
X-Cart forums © 2001-2018