View Single Post
  #1  
Old 03-02-2009, 03:11 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Altered Cart On Sale Mod - Dialog

I'm trying to get the onsale_dailog.tpl from ALtered Carts Onsale mod to display like the other 'boxes' on the page, the ones that use dialog.tpl.

The original code is:
Code:
{if $product_message} <div style="background:url(skin1/images/onsale_fade_background.gif); background-repeat:repeat-x; padding: 30px 0px 10px 10px; width:99%;"><ul style="padding-right:75px;">{$product_message}</ul> </div> <br /> {/if} {if $dialog_sales} <div style="background:url(skin1/images/onsale_fade_background.gif); background-repeat:repeat-x; padding: 20px 0px 0px 10px; width:99%;"> <p class="ProductDetailsTitle">{$lng.lbl_os_current_specials}</p> {if $onsale_settings.display_in_rows eq 'Y'} <table width="90%" cellpadding="5"> {section name=ds loop=$dialog_sales} <tr> <td width="100" valign="top">{if $dialog_sales[ds].image.location}<a href="onsale.php?onsaleid={$dialog_sales[ds].onsaleid}"><img src="{$dialog_sales[ds].image.location}" alt="" /></a> {/if}</td> <td align="left" valign="top"> <span class="ProductTitle"><a href="onsale.php?onsaleid={$dialog_sales[ds].onsaleid}">{$dialog_sales[ds].title}</a></span> <br /><br /> {$dialog_sales[ds].descr|truncate:300:"...":true} </td> {/section} </tr> </table> {else} <table> <tr> {assign var="col" value="0"} {section name=ds loop=$dialog_sales} {if $col == $columns.number} </tr><tr>{assign var="col" value="0"}{/if} <td width="{$columns.percent}" align="center"><span class="ProductTitle"><a href="onsale.php?onsaleid={$dialog_sales[ds].onsaleid}">{$dialog_sales[ds].title}</a></span> {if $dialog_sales[ds].image.location ne ''} <br /> <br /><a href="onsale.php?onsaleid={$dialog_sales[ds].onsaleid}"><img src="{$dialog_sales[ds].image.location}" alt="" /></a> {/if} {assign var="col" value="`$col+1`"} {/section} {assign var="remainder" value="`$columns.number-$col`"} {section name=emptyElement loop=$remainder} <td> </td> {/section} </tr> </table> {/if} </div> <br /> {/if}

but I'm struggling to get it to follow the standard {capture} format, I ended up with a title but nothing else!

Can anyone point me in the right direction?

TIA
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote