trilly Posted November 2, 2010 Posted November 2, 2010 I know people don't like popups, but I like how the Estimated Shipping Costs addon works by displaying the costs in a popup. So, to make it as assessible as possible for the customer, I've displayed a link in my Shopping Cart infobox labeled "Estimate Shipping". The idea is that on whatever page the customer is on in my store, they can click that link and get a shipping estimate. The problem is, I only know how to make this work by going into every single page of my store and adding the popup javascript code between the <link> and the </head> tags. Is there an easier way? Can I add this to the Shopping Cart infobox code, or somewhere else, like the header include? I'm a bit of a noob on javascripting. Thanks in advance
trilly Posted November 2, 2010 Author Posted November 2, 2010 Well, to answer my own question, I gave it a try. I inserted the javascript popup code at the beginning of the catalog\includes\boxes\shopping_cart.php file. Since there is no <link> and </head> tags there, it's floating there within the body of every page where the shopping cart info box code is listed. It works. Anyone know if this is a problem?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.