Mam problem z wyciągnięciem konkretnych danych ze zmiennej w smaty i wysłania go mailem.
Posiadam szablon shoper
Otóż w poniższym kodzie chciałbym wybrać jedna zmienną "{$product.product->product_name}" i wysłać zawartość mailem przez php
lub zapisać do bazy mysql niech ktoś mi podpowie jak do tego się zabrać

z góry dziękuje za podpowiedzi
<h3>{$smarty.const.YOUR_ORDER}</h3> <table class="table" cellpadding="0" cellspacing="0"> <thead> <tr> <th>{$smarty.const.PICTURE}</th> <th>{$smarty.const.BASKET_PROD_NAME}</th> <th>{$smarty.const.BASKET_PROD_PRICE}</th> <th>{$smarty.const.BASKET_VALUE}</th> <th>{$smarty.const.BASKET_PROD_QUANTITY}</th> <th>{$smarty.const.BASKET_DELL}</th> </tr> </thead> <tbody> {foreach item='product' name=prod from=$basket_products} <tr {if $smarty.foreach.prod.index is odd}class="odd"{/if}> <td> {if $product.product->unic_name} <img alt="{$product.product->product_name}" src="image_func.php?img=gfx/{$product.product->unic_name}.jpg&maxwidth={$smarty.const.CONF_FOTO_WIDTH_PODD}" /> {else} {/if} </td> <td> <a href="{$link->getProductLink($product.product->product_name, $product.product->product_id)}" title="{$product.product->product_name}"> <strong>{$product.product->product_name}</strong> </a><br /> {$product.options} </td> <td>{$product.price|convertPrice}</td> <td>{$product.converted_price*$product.quantity|string_format:"%.2f"}</td> <td> <input name="quantity[{$smarty.foreach.prod.index}][quantity]" type="text" value="{$product.quantity}" size="3" onkeyup="if(event.keyCode==13) this.form.submit();" onblur="this.form.submit();"/> <input name="quantity[{$smarty.foreach.prod.index}][hash]" type="hidden" value="{$product.hash}" /> <input name="quantity[{$smarty.foreach.prod.index}][product_id]" type="hidden" value="{$product.product->product_id}" /> </td> <td class="to-center"> <a href="#" onclick="deleteProduct('{$product.product->product_id}','{$product.hash}');return false;" title="{$smarty.const.DELETE_FROM_BASKET}"><img src="{$skinyDir}/{$smarty.const.CONF_SKIN_DEFAULT}/gfx/trash.png" alt="{$smarty.const.DELETE_FROM_BASKET}" /></a> </td> </tr> {foreachelse} <tr> <td class="kosz" colspan="5"> {$smarty.const.YOUR_BASKET_IS_EMPTY} </td> </tr> {/foreach} </tbody> </table> </form>
W takim razie jak nikt nie odpisuje to postaram sie inaczej opisac moj problem ze smartem
Otóż chciałbym wyświetlić zmienną ta co jest w smarty w pliku innym, nowo stworzonym *.php
aby poźniej wykorzystać go do wysyłania maila lub wpisać do bazy mysql.
czy wie ktos jak to zrobic??
dzieki z góry za podpowiedzi