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)
-   -   Color Icon Mod. (https://forum.x-cart.com/showthread.php?t=6813)

MiguelS 03-22-2004 03:06 PM

Color Icon Mod.
 
I'm curious if anybody can help me with this. I want to create a simple loop that displays color icons for product options.

For example. If I fill in an product option and assign the class Color to it, and all the values are colors, I want to be able to loop just the Color Class and the colors available to it, and put them inside of an img tag link, so that way it displays actual color icons. Can anybody tell me what variables are assigned to this?

cotc2001 03-22-2004 11:24 PM

Do you mean like we have done here http://www.hom.gb.com/shop/

If so we got the x-cart team to do that modifcation.

in the admin there is an extra field where we put in something like (colour name then the hex code)

black=ffffff
red=cccccc

MiguelS 03-25-2004 06:31 AM

how much did that mod cost?

cotc2001 03-25-2004 06:38 AM

I couldnt give you an exact cost as it was part of a much larger mod and it was last year so I dont know if prices have gone up or not.

But if this is the thing you want you can refer the x-cart team to my site to say that is the sort of thing i want.

Alltogehter it cost me $300 for the following mods

Quote:

- Design integration - 8 hours;
- Colour/Fabric samples - 2 hours;
- Colours images - 2 hours.

Total, hours: 12
Total, USD: 300

It's the colour images mod that you would be referring to and a quick calculation later 300 (dollars) / 12 (hours)= 25(dollars) * 2 (hours) = 50 (dollars)

Is that any help to you???

As a side note FunkyDunk did a great mod for me for anyone who sells clothing using x-cart, he tied in the colour mod in with the sizes so that I can be out of stock of any size and colour combination.

So for example i have a load of stock in one range of various colour and size combinations , i can input that size 32 in black is out of stock and then an bit of text appears below the product saying so and if the customer tries to order the out of stock combination it lets them know that they cant. It's Funkytastic.

God I love how configurable x-cart is :D

shan 03-25-2004 07:20 AM

It is possible to use the data that populates the drop down menu and have that displayed in different ways too

MiguelS 03-25-2004 11:10 AM

Quote:

Originally Posted by shan
It is possible to use the data that populates the drop down menu and have that displayed in different ways too


well that's what i'm trying to do on my own, but i'm not having very much luck. I'm trying to figure out how to isolate and loop just the Color class group of options so that I can loop it.

MiguelS 03-25-2004 01:38 PM

-_-' got it working but it's not exactly how I want it, with this method, the Color class has to be the first choice, I still wish i could somehow point out just the color class, no matter in what order it gets added into the product options.

here is the code:

Code:

{* $Id: customer_options.tpl,v 1.6 2002/10/22 10:27:05 olga Exp $ *}
                                                {section name=product_option }
                                                { $product_options[product_option].opttext }
                                                {if $product_options[product_option].options ne ""}
                                                {assign var="options" value=$product_options[product_option].options}
                                                {section name=option loop=$options}
                                                [img]{$ImagesDir}/colors/{$options[option].option}.jpg[/img]
                                                {/section}
                                                {/if}
                                                {/section}


dazybabes 06-23-2006 04:57 AM

coming back onto this one does anyone know how to only have this work on a specific variant, ie variant name=colour then show img??


All times are GMT -8. The time now is 09:42 AM.

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