View Single Post
  #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