whitecrow Posted February 21, 2010 Share Posted February 21, 2010 Muze mi nekdo poradit jak zmenit typ a polohu pisma DPH jenom v module homefeatured? Link to comment Share on other sites More sharing options...
Aramon Posted February 22, 2010 Share Posted February 22, 2010 Teda, v prestě se hrabu 4 dny (chápej: před čtřmi dny jsem ji stáhl a nainstaloval poprvé v životě), a už si dovolím radit :-)otevři si soubor modules/homesfeatured/homefeatured.tpl a vše nahraď tímto: (upraven je jen řádek 18+19, ale ěnkdo ocení, že nemusí nic hledat) <!-- MODULE Home Featured Products --> {l s='featured products' mod='homefeatured'} {if isset($products) AND $products} {assign var='liHeight' value=360} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags|truncate:130:'...'} getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx' mod='homefeatured'}{/if}{/if} {if $priceDisplay} {convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx' mod='homefeatured'}{/if}{/if} {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> Na řádku 18 (cena s DPH) jsem přidal značky smallNa řádku 19 (cena bez DPH) jsem odstranil tagy span, čímž jsem dosáhl minimální velikosti ceny bez DPH, která není pro mne až tak důležitá. Pokud přesto chceš, aby jsi měl i cenu bez DPH stejně velkou jako tu s DPH, stačí řádek 19 nahradit tímto: {if $priceDisplay} {convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx' mod='homefeatured'}{/if}{/if} Přikládám screen, aby bylo vidět, jak výsledek vypadá. Link to comment Share on other sites More sharing options...
whitecrow Posted February 23, 2010 Author Share Posted February 23, 2010 Supr, diky moc. Ja s prestou delam taky tak kratce a navic o progarmovani vim uplne NIC :-) 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