Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Color Icon Mod.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-22-2004, 03:06 PM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default 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?
Reply With Quote
  #2  
Old 03-22-2004, 11:24 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #3  
Old 03-25-2004, 06:31 AM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default

how much did that mod cost?
Reply With Quote
  #4  
Old 03-25-2004, 06:38 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #5  
Old 03-25-2004, 07:20 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

It is possible to use the data that populates the drop down menu and have that displayed in different ways too
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 03-25-2004, 11:10 AM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default

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.
Reply With Quote
  #7  
Old 03-25-2004, 01:38 PM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default

-_-' 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}
Reply With Quote
  #8  
Old 06-23-2006, 04:57 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

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??
__________________
X-Cart Version 4.0.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020