Abilnet wrote:Good call, I'm

Posts: 887
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Abilnet wrote:
Good call, I'm also more than willing to find a "preview" solution to product(s). One nice example done with Drupal / Ubercart I like a lot is HERE...just wondering how it is done?!

The frames site does a POST back to the server when the Preview button is pressed. It sends the attributes back and presumably the server builds a composite picture based on the attributes. (This can be done with the PHP image functions, http://us2.php.net/manual/en/ref.image.php, or you can use some other toolkit.) Simple enough to do in the case of the frames, since each attribute affects a different region of the picture.

That's one way to go about it. You could also use AJAX. Either would work for the case of handbags. I think it would be better to do this on the server rather than sending the client all the images for all possible combinations. Plus you'd avoid the problem of dealing with browsers that don't handle images properly. I don't know how you would design a feature like this for general use, but for your specific needs this should work fine.

--

<tr>.

Product Preview Brainstorming By: gash (10 replies) Sun, 04/20/2008 - 20:52