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.
