X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Altered Cart On Sale Mod - Dialog (https://forum.x-cart.com/showthread.php?t=45939)

amy2203 03-02-2009 03:11 AM

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

balinor 03-02-2009 03:15 AM

Re: Altered Cart On Sale Mod - Dialog
 
Moving to Third Party Add-Ons


All times are GMT -8. The time now is 07:50 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.