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

Variant chart in product description.
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #41  
Old 12-08-2006, 12:51 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default Re: Variant chart in product description.

This is a great mod which I have being using for quite some time, thanks sstillwell !!
I wanted to have the table heading to display the class value instead of the options label, so added a small bit

Full code:

Code:
<!-- Variants table --> {foreach from=$variants item=v} {cycle name="classes" values=""} {foreach from=$v.options item=o} {/foreach} {/foreach} {if $variants} <table cellspacing="1" cellpadding="0" border="0" class="chart" width="100%"> <tr class="chart_head"> <td>{$lng.lbl_sku}</td> <td>{$o.class}</td> <td>{$lng.lbl_our_price}</td> </tr> {section name=test loop=$variants} <tr class="{cycle values="chart_dark,chart_light"}"> <td>{$variants[test].productcode}</td> {foreach item=item key=key from=$variants[test].options} <td>{$item.option_name}</td> {/foreach} <td>ё{$variants[test].price}</td> </tr> {/section} </table> <br /> {/if}
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
  #42  
Old 12-14-2006, 08:42 AM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default Re: Variant chart in product description.

Hey all!

Thanks for the mods - this is great.

I do have a simple logical question though - how would I go about ignoring the first option.

This is because for my first option, I always have 'Choose your color...' or whatever the option is.

Thanks!
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #43  
Old 12-21-2006, 04:23 PM
 
jeff819 jeff819 is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 42
 

Default Re: Variant chart in product description.

I'm using the provided code and it is working great. One issue though...how do I sort columns in the table? After I setup the product options and variants, it puts everything in an order which I would like to change, but I can't figure out how. I am unable to sort from Admin, so I'm assuming/hoping it can be done somewhere in the code.

Any suggestions are greatly appreciated...

Jeff
__________________
X-Cart Gold - Version 4.0.19
Reply With Quote
  #44  
Old 03-21-2007, 07:33 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Variant chart in product description.

Thanks to everybody who has contributed to this mod! I've been using it successfully for over a year now, but I just ran into situation where it ended up displaying a mess.

I have tables which come in 6 colors and 3 heights, which result in 18 unique SKU's. So, I happily set it up as a variant for color and one for height. The result...an 18 SKU long table!!!

To get rid of it, I simply used:

Code:
{if $product.categoryid == xxx} {else} <!-- Variants table --> (. . .variants table code . . .) <!-- end Variants table --> {/if}

where xxx is the category id number

The result is the complete removal of the variant tables from the products in a specific category.

This little bit of code is, of course, not specific to this mod, but I thought some might find it useful if they're running into the same issue.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #45  
Old 07-26-2007, 09:51 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Variant chart in product description.

Anyone managed to get some actual add to cart or quantity boxes in here? Would be great to order directly from the chart instead of still having to use the drop-down!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #46  
Old 07-26-2007, 10:03 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: Variant chart in product description.

Quote:
Originally Posted by balinor
Anyone managed to get some actual add to cart or quantity boxes in here? Would be great to order directly from the chart instead of still having to use the drop-down!

That would indeed be a nice feature to have.

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #47  
Old 07-26-2007, 10:55 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Variant chart in product description.

Working on getting it coded up now. Will share with the community once it is working.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #48  
Old 08-10-2007, 11:06 PM
 
kalonji kalonji is offline
 

Member
  
Join Date: Aug 2007
Posts: 15
 

Default Re: Variant chart in product description.

Quote:
Originally Posted by balinor
Anyone managed to get some actual add to cart or quantity boxes in here? Would be great to order directly from the chart instead of still having to use the drop-down!

Yes..this would be a nice feature to have...Would this work on 4.1.8?
__________________
xcart 4.2 Gold
Fashion Mosaic Blue.
Unix Hosted
Reply With Quote
  #49  
Old 09-08-2007, 07:12 PM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Variant chart in product description.

This thread worked great!

http://forum.x-cart.com/showthread.php?t=33019&highlight=radio+buttons
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #50  
Old 02-28-2008, 05:03 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: Variant chart in product description.

Hey everyone, intel352 here, I'm the developer that created the Variant Chart for Padraic's clients, Discussed in this thread

I've now finished up a packaged version of the module, available for purchase. I've got screenshots and info here: http://forum.x-cart.com/showthread.php?p=206012

If you have any questions, please post in the thread that I just linked to

Cheers!
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:58 PM.

   

 
X-Cart forums © 2001-2018