divoch Posted April 10, 2010 Share Posted April 10, 2010 Zdravím Vás, trošku som si upravoval blockbestseller aby sa mi zobrazovali produkty pod sebou. Niečo som našiel na fore, takže podarilo sa, len mam jeden problém. Potrebujem aby sa mi pri produktoch v tom bloku zobrazovala aj cena. Skúšal som už viacero variácií kódu, ktorý som pridával do blockbestsellers.tpl. Napríklad:{displayWtPrice p=$product.price}toto mi pridalo cenu k produktom, ale tá cena sa zaokrúhľuje na celé čísla. A kedže ja mám ceny aj s desatinnými číslami, tak mi to nevyhovuje.Neviete mi poradiť? Ďakujem Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted April 10, 2010 Share Posted April 10, 2010 {if !$priceDisplay || $priceDisplay == 2}{displayWtPrice p=$new_products.0.price}{if $priceDisplay == 2} {l s='s DPH'}{/if}{/if} {if $priceDisplay == 2} {/if} {if $priceDisplay}{displayWtPrice p=$new_products.0.price_tax_exc}{if $priceDisplay == 2} {l s='bez DPH'}{/if}{/if} Link to comment Share on other sites More sharing options...
divoch Posted April 10, 2010 Author Share Posted April 10, 2010 Dakujem za odpoved,skusil som ten tvoj kod, ale teraz sa mi zobrazuju nulove ceny - 0,00.tak neviem...skusim vam sem pridat aj moj kod blockbestsellers.tpl .. :<!-- MODULE Block best sellers --> {l s='Top sellers' mod='blockbestsellers'} {if $best_sellers|@count > 0} {foreach from=$best_sellers item=product name=myLoop} {$product.name}{if !$priceDisplay || $priceDisplay == 2}{displayWtPrice p=$new_products.0.price}{if $priceDisplay == 2} {l s='s DPH'}{/if}{/if} {if $priceDisplay == 2} {/if} {if $priceDisplay}{displayWtPrice p=$new_products.0.price_tax_exc}{if $priceDisplay == 2} {l s='bez DPH'}{/if}{/if} {/foreach} {l s='All best sellers' mod='blockbestsellers'} {else}{l s='No best sellers at this time' mod='blockbestsellers'} {/if} <!-- /MODULE Block best sellers --> Link to comment Share on other sites More sharing options...
divoch Posted April 10, 2010 Author Share Posted April 10, 2010 <!-- MODULE Block best sellers --> {l s='Top sellers' mod='blockbestsellers'} {if $best_sellers|@count > 0} {foreach from=$best_sellers item=product name=myLoop} {$product.name} {if !$priceDisplay || $priceDisplay == 2}{displayWtPrice p=$new_products.0.price}{if $priceDisplay == 2} {l s='s DPH'}{/if}{/if} {if $priceDisplay == 2} {/if} {if $priceDisplay}{displayWtPrice p=$new_products.0.price_tax_exc}{if $priceDisplay == 2} {l s='bez DPH'}{/if}{/if} {/foreach} {l s='All best sellers' mod='blockbestsellers'} {else} {l s='No best sellers at this time' mod='blockbestsellers'} {/if} <!-- /MODULE Block best sellers --> tak to bude citatelnejsie... Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted April 10, 2010 Share Posted April 10, 2010 Dej radši odkaz na shop... Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted April 10, 2010 Share Posted April 10, 2010 <!-- MODULE Block new products --> {l s='New products' mod='blocknewproducts'} {if $new_products|@count > 0} {$new_products.0.name|strip_tags|escape:htmlall:'UTF-8'} getImageLink($new_products.0.link_rewrite, $new_products.0.id_image, 'medium')}" alt="{$new_products.0.legend|escape:htmlall:'UTF-8'}" title="{$new_products.0.legend|escape:htmlall:'UTF-8'}" /> {if !$priceDisplay || $priceDisplay == 2}{displayWtPrice p=$new_products.0.price}{if $priceDisplay == 2} {l s='s DPH'}{/if}{/if} {if $priceDisplay == 2} {/if} {if $priceDisplay}{displayWtPrice p=$new_products.0.price_tax_exc}{if $priceDisplay == 2} {l s='bez DPH'}{/if}{/if} {l s='All new products' mod='blocknewproducts'} {else} {l s='No new product at this time' mod='blocknewproducts'} {/if} <!-- /MODULE Block new products --> Link to comment Share on other sites More sharing options...
divoch Posted April 10, 2010 Author Share Posted April 10, 2010 ok...ale este sa len robi... http://www.autoloziska.sk Link to comment Share on other sites More sharing options...
divoch Posted April 10, 2010 Author Share Posted April 10, 2010 tak nepodarilo sa mi to spojazdniť...vyskúšal som všelijaké možné kombinácie kódu, ale stále som tam mal cenu zaokrúhlenú na celé desatinné čísla...príklad: 158,00 .....a správna cena mala byť 158,07 ....takže neviem ...ak by mi s tym vedel niekto poradiť budem veľmi rád...zatiaľ mám najpredávanejšie produkty bez ceny...dakujem.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now