dadamssg87 Posted December 13, 2011 Share Posted December 13, 2011 I'm developing a an ecommerce solution for a narrow market. My clients will all have their own existing websites. Their store will be built and hosted on my website. To connect their existing website with their storefront i'd like them to copy/paste an html snippet on their website. Very similar to how you can post some snippet to have a facebook "like" button on your webpage. The tricky part is that i want to create a lot of "Purchase" buttons with different shapes and sizes so they can test what works best for them. I want them to be able to change how their "Purchase Now" button looks from my website and the changes would get reflected to their website. I only want them to have to copy/paste the code snippet once though. So i was thinking i could write a script that based on their chosen button style would output a .png image so they would copy/paste something like this once: <a href='www.joeblowsstore.com'><img src='http://www.mysite.com/buttons.php?username=1234' /></a> The script would look up username 1234's button preference and then spit out a .png image. Doing it this way, rather than an iframe, wouldn't limit me to a certain height and width. Thoughts? It seems like everybody else uses iframes but my button only contains an image and isn't a widget. Think doing it this was is best? Quote Link to comment https://forums.phpfreaks.com/topic/253112-dynamic-buttons-for-clients-websites/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.