Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/253112-dynamic-buttons-for-clients-websites/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.