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

Add "Preview product" on product modify in admin.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 06-15-2006, 12:28 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default Add "Preview product" on product modify in admin.

Simple mod, but quite useful I think, tested with version 4.0.18 of X-Cart. Adds a "Preview product" under the dialog tools on top of the modify product area in the admin. So its easy to preview any changes to a product on the customer side of things after editing/adding a product.

edit include/product_modify.php and locate:
Code:
$dialog_tools_data["right"][] = array("link" => "orders.php", "title" => func_get_langvar_by_name("lbl_orders"));

AFTER this line add:
Code:
$dialog_tools_data["right"][] = array("link" => "../product.php?productid=$productid", "title" => "Preview Product");

You may need to change the link, ../product.php to your customer side location if your running off the webserver root, etc.

Happy X-Carting.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #2  
Old 10-28-2006, 05:53 AM
 
bigmaggot bigmaggot is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 74
 

Talking Re: Add "Preview product" on product modify in admin.

Great Mod every little helps.

Thanks Boomer
__________________
X-Cart Gold v4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 03:24 AM.

   

 
X-Cart forums © 2001-2020