View Single Post
  #25  
Old 01-11-2006, 02:26 AM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Any idea to change so All options can be variants & work

Hi Mike,

I got this module working and looks good (thanks)...

1) Change so mod works for multiple languages
Maybe this is helpful to some so have put this here - my question is actually below as point 2 however.
I just did one change which is use the "order_by" varible instead of the "option_name" varible - the advantage of this is that it will work when one uses multiple languages (as obviously for example pink (english) changes to rose (french) for example meaning linking on "option_name" would result in a crash for the 2nd and so on languages.
I have looked at the SQL table and this works as long as one names their swatch references (CSV reference or photo name) using these order_by numbers.
For example photos as X.jpg - where X is the "order_by" number (e.g. 1.jpg) For others (know you know mike) the order_by numbers for an option can be seen in the product options of Admin and if like changed by using replace in a CSV file and then imported - if some wants to).

Quote:
Originally Posted by mffowler
Yes, the swatches don't really have anything to do with the current functions of a product, other than product options. I used ianwebster's solution to then apply an image swap with the click of the auto-generated swatches and also change in the dropdown.

Keep in mind- this is currently for "variant" options and not modifier. If using size and color variants, I have kept the color as a variant and the size as a modifier. It doesn't enable a SKU per size/color combo as if both were variants, but it wasn't needed and most will be satisfied with usage.

Still a work in progress.

- Mike

2) Question I have - how to change code to allow for 2 options which are both variants?
Question I have is... have you managed to make this mod work with two options both being variants and not with one being a modifier and one a variant?
Reason I ask this, is as stock levels can not be attached to modifiers - so obviously it is useful to have two or several options all being variants (and having just the one lot of colour swatches showing).

As you know - at the moment making two options both as variants results in a multi-count of the swatches (namely results in double or triple copies of a color swatch being created / appearing).

Any ideas on this Mike - anything at all is very much appreciated.

Thanks and best regards - Andrew
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote