X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Thumbnails for Product Options (https://forum.x-cart.com/showthread.php?t=40766)

John Livesey 06-27-2008 12:51 AM

Thumbnails for Product Options
 
Hi all,

Is there any way of adding a small descriptive image for placement next to the product options?

For example I'd like a small paint tin next to the Preserver product option on my page? It doesn't have to change if the option is selected but just thought it'd look more descriptive to the customer.

Thanks in advance and apologies if there is already an answer to this elsewhere on the forum.

John

pauldodman 06-27-2008 01:21 AM

Re: Thumbnails for Product Options
 
Have you tried using Variants for your Options - you can add images that way for each option/variant?

John Livesey 06-27-2008 01:58 AM

Re: Thumbnails for Product Options
 
The variant route just changes the main image, which is not what I require.

I just want a thumbnail next to each drop-down option e.g.

IMG Dark Oak preserver - +ё65.00
goes Pine Preserver - +ё65.00
here Clear Preserver - +ё65.00

I don't need the image to change at all.

Thanks
John

pauldodman 06-27-2008 02:02 AM

Re: Thumbnails for Product Options
 
Right - not sure this is the answer either - but might be worth a look -
http://www.phpsitesolutions.com/x-cart_variant_chart.htm

boxerbay 08-20-2008 11:38 AM

Re: Thumbnails for Product Options
 
Has anyone figured this one out. I need it.

JWait 08-24-2008 07:19 AM

Re: Thumbnails for Product Options
 
Quote:

Originally Posted by John Livesey
I just want a thumbnail next to each drop-down option e.g.

IMG Dark Oak preserver - +ё65.00
goes Pine Preserver - +ё65.00
here Clear Preserver - +ё65.00



Just out of curiosity, what is a "preserver"? From your description here, it appears to be some kind of paint finish that protects wood. Is that correct? If so, I don't think a "small paint tin" image would work as well as a more descriptive term than "preserver.

Also (assuming I am correct in what a preserver is) what would be wrong with having the main image change with each type of preserver (variant) chosen? It would give the customer a better idea what each option would look like applied to the product without having to actually visualize it. Yes, it would be a PITA to create all of those images, but would probably increase sales, and after all, isn't that what you are trying to do?

If all you want is a generic "paint can" image, probably the place to add that is in the skin1/modules/Product_Options/customer_options.tpl somewhere around...
Code:

{include file="modules/Product_Options/check_options.tpl"}
</td></tr>
{/if}
---- ADD YOUR IMAGE HERE? ----
{foreach from=$product_options item=v}
{if $v.options ne '' || $v.is_modifier eq 'T'}
<tr>
        <td valign="middle" height="25">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class}{/if}</td>
        <td valign="middle">
{if $cname ne ""}


The problem is, without some sort of if-/if statement the image will show for every product that has an option. I would still go the "variant photos" route

boxerbay 09-10-2008 09:13 AM

Re: Thumbnails for Product Options
 
variants will be a chore if all you want to do is show a fabric option and a color finish option.

Imagine 200 fabric options and 4 wood color finishes that means you would have to create 800 images for each product. The client has over 400 products so we're looking at 320,000 images!!!!

The product option which is the same for almost all products - FABRIC COLOR should be able to pull a swatch from the fabric swatch images and show it next to the option box.

Same thing for the color finish option.

Check out www.patio.com and see how there product options work with swatches to build the product.

I need this mod badly!@!

JWait 09-11-2008 06:34 AM

Re: Thumbnails for Product Options
 
Quote:

Originally Posted by boxerbay
variants will be a chore if all you want to do is show a fabric option and a color finish option.

Imagine 200 fabric options and 4 wood color finishes that means you would have to create 800 images for each product. The client has over 400 products so we're looking at 320,000 images!!!!

The product option which is the same for almost all products - FABRIC COLOR should be able to pull a swatch from the fabric swatch images and show it next to the option box.

Same thing for the color finish option.

Check out www.patio.com and see how there product options work with swatches to build the product.

I need this mod badly!@!


Well, I agree that 320,000 images would be a chore :)
Your example web site was confusing to me (I was actually thinking about buying some patio chair cushions) and I could not determine if what I was ordering would work for me (so I did not order).

It sounds like you need something like
if "option" ne ""
if "option" eq "perserver"
display paint can image
/if
/if

good luck

boxerbay 10-24-2008 07:37 AM

Re: Thumbnails for Product Options
 
bump still looking for this.

another example...

We offer widget in green, blue, red

In product option drop down have green swatch, red swatch, blue swatch that way the client can see how light or dark each of those is.

aarb 09-08-2010 08:36 PM

Re: Thumbnails for Product Options
 
Did you find a solution for this?


All times are GMT -8. The time now is 06:03 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.