dinan Posted January 25, 2011 Share Posted January 25, 2011 Ahoj, mám tokový problém. Neustále řeším dotazy na parametry výrobku a to je uvádím na stránce. Bohužel jsou v další záložce než popis produktu a 90% zákazníků není schopno překliknout na parametry viz například zde:http://www.raj-sexu.cz/afrodisiaka-a-feromony/4[spam-filter]power-caps-woman-60kapsli-7500044061.htmlNevíte prosím jak ty parametry zobrazit například pod popis produktu?Moc díky, usnadníte mi život:) Link to comment Share on other sites More sharing options...
pmpal Posted January 25, 2011 Share Posted January 25, 2011 V sablonach je soubor "product.tpl", kde muzes upravit blok "<!-- description and features --> dle Tvych predstav a nebo si to nastylovat v CSS. Link to comment Share on other sites More sharing options...
dinan Posted January 25, 2011 Author Share Posted January 25, 2011 V sablonach je soubor "product.tpl", kde muzes upravit blok "<!-- description and features --> dle Tvych predstav a nebo si to nastylovat v CSS. To je, to máš pravdu, ale pro mě velká neznámá. No asi to zas bude pokus omyl:) Link to comment Share on other sites More sharing options...
pmpal Posted January 25, 2011 Share Posted January 25, 2011 Tak asi nejjednodusi bude kdyz tento kod {if $product->description} <!-- full description --> {$product->description} {/if} nahradis timto: {if $product->description} <!-- full description --> {$product->description} {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} {/if} Link to comment Share on other sites More sharing options...
dinan Posted January 25, 2011 Author Share Posted January 25, 2011 Díky ale nejde:(Celý kód je následující: <!-- description and features --> {if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments} {if $product->description}{l s='More info'}{/if} {if $features}{l s='Data sheet'}{/if} {if $attachments}{l s='Download'}{/if} {if isset($accessories) AND $accessories}{l s='Accessories'}{/if} {$HOOK_PRODUCT_TAB} {include file=$tpl_dir./binding_top2.tpl} {if $product->description} <!-- full description --> {$product->description} {/if} {if $features} <!-- product's features --> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'} {$attachment.description|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if isset($accessories) AND $accessories} <!-- accessories --> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|truncate:22:'...'|escape:'htmlall':'UTF-8'} getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /> {$accessory.description_short|strip_tags|truncate:100:'...'} {displayWtPrice p=$accessory.price} {l s='View'} {l s='Add to cart'} {/foreach} {/if} {$HOOK_PRODUCT_TAB_CONTENT} {include file=$tpl_dir./binding_bottom.tpl} {/if} Link to comment Share on other sites More sharing options...
pmpal Posted January 25, 2011 Share Posted January 25, 2011 V tom pripade takto, ale pokud jsem se dobre dival, tak je to stejny co jsem posilal <!-- description and features --> {if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments} {if $product->description}{l s='More info'}{/if} {if $features}{l s='Data sheet'}{/if} {if $attachments}{l s='Download'}{/if} {if isset($accessories) AND $accessories}{l s='Accessories'}{/if} {$HOOK_PRODUCT_TAB} {include file=$tpl_dir./binding_top2.tpl} {if $product->description} <!-- full description --> {$product->description} {if $features} <!-- product's features --> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} {/if} {/if} {if $features} <!-- product's features --> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'} {$attachment.description|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if isset($accessories) AND $accessories} <!-- accessories --> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|truncate:22:'...'|escape:'htmlall':'UTF-8'} getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /> {$accessory.description_short|strip_tags|truncate:100:'...'} {displayWtPrice p=$accessory.price} {l s='View'} {l s='Add to cart} {/foreach} {/if} {$HOOK_PRODUCT_TAB_CONTENT} {include file=$tpl_dir./binding_bottom.tpl} {/if} Link to comment Share on other sites More sharing options...
dinan Posted January 25, 2011 Author Share Posted January 25, 2011 Vyprdni se na to hele, pokud tam dám to co píšeš tak se vůbec produkt nezobrazí... ale díky za snahu. Link to comment Share on other sites More sharing options...
pmpal Posted January 25, 2011 Share Posted January 25, 2011 Tak jsem to vyzkousel, me uz nefunguje ten kod od tebe, product se nezobrazi, tak jak pises. Zrejme toto forum neco orezava, nebo nejaky znaky zameni. Ale ten muj kod, ktery sem posilal jako prvni tak funguje, to jsem overil. Link to comment Share on other sites More sharing options...
Sem Tam Posted January 25, 2011 Share Posted January 25, 2011 Vyprdni se na to hele, pokud tam dám to co píšeš tak se vůbec produkt nezobrazí... ale díky za snahu. melo by stacit umistit toto:{if $product->description} {$product->description} {/if}kamkoliv je potreba, napr. nad nebo misto tohoto zapisu :{if $product->description}< p class = "buttons_bottom_block "> {l s='More details'} {/if}(mel by se zobrazit obsah detailniho popisu zbozi nad tlacitkem "vice detailů", resp. misto tlacitka) Link to comment Share on other sites More sharing options...
Sem Tam Posted January 25, 2011 Share Posted January 25, 2011 spatne formatovano, tak znovu-viz priloha prod.txt Link to comment Share on other sites More sharing options...
dinan Posted January 25, 2011 Author Share Posted January 25, 2011 Pánové díky, ale Vaše pomoc mě donutila k práci:) Vaše rady opravdu nefungují, ale řešení jsem vymyslel sám a to velmi jednoduše. Do řádku s parametrem jsem přidal i tab1 pro zobrazení: {if $features}{l s='Data sheet'}{/if} původně: {if $features}{l s='Data sheet'}{/if} Díky za Váš čas! Link to comment Share on other sites More sharing options...
Sem Tam Posted January 25, 2011 Share Posted January 25, 2011 sorry, spatne jsem precetl zadani, predpokladal jsem, ze je potreba premistit dlouhy popis pod kratky :red: 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