View Single Post
  #2  
Old 05-14-2012, 05:46 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Product options in product list

I haven't tested this yet, but it should work fine to display the options. Written for 4.4.5, you may need to modify it for your version. I also assumed you would be placing it within a table, you may need to adjust or remove the row and column tags.

PHP Code:
{if $active_modules.Product_Options ne "" and $product.is_product_options eq 'Y'}
      <
tr>
        <
td>
          <
h2>Product Options</h2>
          {foreach 
from=$product_options item=options}
            <
b>{$options.classtext}</b> - 
            {foreach 
from=$options.options item=option name=option_loop}
              {
$option.option_name}{if not $smarty.foreach.option_loop.last},{/if}
            {/foreach}<
br />
          {/foreach}
        </
td>
      </
tr>
    {/if} 
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote