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

Altered Cart On Sale Mod - Dialog

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #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
  #2  
Old 03-02-2009, 03:15 AM
 
balinor balinor is offline
 

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

Default Re: Altered Cart On Sale Mod - Dialog

Moving to Third Party Add-Ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 05:57 AM.

   

 
X-Cart forums © 2001-2020