Combinations availability table on product page

I am very much interested in a way that would show the combination of products' attributes in a table, you know something? What i want to do achieve is a table with two columns:
- size (or size + color)
- availability as an icons (YES / NO)

How to display combinations table: size + availability

Hello
to make it work as you want you need module to display combinations in a table, then please follow these steps:
1) open module configuration page
2) set "Attributes display method" to: 'All atributes in one column'
3) enable option "Display combination name"
4) enable option "Display quantity"
5) disable all other options
6) open module file: productfooter.tpl
7) search there for code:
{if $ctp_quantity==1}
 <td data-label="{l s='Quantity' mod='combinationstab'}" class="ctd_quantity">{if ($ctp_hquantity==1)}{if ($ct['combination']['quantity'] > $ctp_hvquantity)} {$ctp_hvquantity}+ {else}{$ct['combination']['quantity']}{/if}{else}{$ct['combination']['quantity']}{/if}</td>{/if}
8) replace code with:
{if $ctp_quantity==1}
 <td data-label="{l s='Quantity' mod='combinationstab'}" class="ctd_quantity">
 {if $ct['combination']['quantity']>0}
 <img src="http://icons.iconarchive.com/icons/paomedia/small-n-flat/48/sign-check-icon.png"/>
 {else}
 <img src="http://icons.iconarchive.com/icons/paomedia/small-n-flat/48/sign-delete-icon.png"/>
 {/if}
 </td>
{/if}

effect:


you can translate "quantity" to other, for example "availability"
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment