X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Newest Products Template modification (https://forum.x-cart.com/showthread.php?t=17931)

Edda 11-12-2005 06:11 PM

Newest Products Template modification
 
I have bought newest_products modification, so
I want add to this template: fts_newest_products_display.tpl
also the product price... but I don't know how... somebody can help me ??
Thanks in advance

Code:

{if $new_products|@count gt 0}
       


        {capture name=newest_products}
                <table width="100%" border="0" cellpadding="0" cellspacing="10">
                {section name=i loop=$new_products}
                        {if %i.first% or %i.index% is div by 3}
                                <tr>
                        {/if}
                        <td width="33%" align="center" valign="top">
                                <a href="product.php?productid={$new_products[i].productid}" target="{$targetwin}">{include file="product_thumbnail.tpl" productid=$new_products[i].productid image_y=100 product=$new_products[i].product tmbn_url=$new_products[i].tmbn_url}

                          {$new_products[i].product}</a>
                        </td>
                        {if (%i.index% + 1) is div by 3 or %i.last%}
                                </tr>
                        {/if}
                {/section}
</table>
        {/capture}
        {include file="dialog.tpl" title="Ultimi arrivi...." content=$smarty.capture.newest_products}
{/if}


cbarnes 11-14-2005 06:59 AM

Hi Edda,

You need to find out what is available in the "$new_products" array.

I would suggest contacting FTS for this information.

Alternatively, you could try and print the array inside the PHP code.

For example,

Code:

print_r($new_products);

If you see a value that appears to look like a price, you could then use it in your template.

Maybe something similar to:

Code:

{$new_products[i].product_price}

I hope this helps.

Edda 12-09-2005 07:27 AM

nobody can help me ???

balinor 12-09-2005 07:37 AM

Why not contact the vendor you bought this mod from?

Edda 12-15-2005 03:45 PM

firetanksoftware.com so bad support !!!!
 
I've contacted the vendor (firetanksoftware.com) but the vendor support have a so bad support....
I've opened one ticket from 3 days and I haven't any reply !!! so bad so bad support !!!!


All times are GMT -8. The time now is 07:22 PM.

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