I'm trying to build a popup window link on products in Zencart without having adding a bunch new code to handle it. What I really like to do is duplicate the behavior of admin/popup_image.php page, but from a link on main product page.
Here is how I planning to make this work.
Use a "read only" Attribute assigned to product. (DONE)
The value will determine which popup page to display. (DONE)
Customize the tpl_modules_attributes.php page to have different behavior if detects special read only attribute. (DONE)
How to utilize the existing javascript popup window code added to a product page for custom popup window. This is the part I don't understand how it works. Today if you have large images on a product Zencart automatically adds links for popup window of the Larger image. In the admin section on the banner tools page there is a popup icon to preview the banners. I've looked at the code for both popup larger images and popup banners. I'm fairly certain the admin/popup_image.php is what I'm wanting to duplicate.
After I duplicate/create my own popup_image.php page under includes I'm lost as to how to make Zencart existing javascript on the product pages to tell it to link to custom URL page of my own.
I know this isn't a great post but please forgive.
Here is the test page I'm trying this on. The link if for the "View Gloves Size Chart".
http://www.weekend-racer.com/index.p...products_id=83
Thanks,
Steven
Bookmarks