X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Add "Preview product" on product modify in admin. (https://forum.x-cart.com/showthread.php?t=22537)

B00MER 06-15-2006 12:28 PM

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. :wink:

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. 8)

bigmaggot 10-28-2006 05:53 AM

Re: Add "Preview product" on product modify in admin.
 
Great Mod every little helps.

Thanks Boomer


All times are GMT -8. The time now is 03:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.