Mam mały problem z wyświetlaniem produktów na sklepie.
Domyślnie jest ustawiona lista, którą ręcznie można przełączyć na "grid" ale chcę zmienić aby domyślnie przy otwieraniu strony było "grid" .
W internecie znalazłem kilka instrukcji ale u mnie w ogóle nie ma w pliku product_list.tpl żadnej z wymienionych linijek odnośnie wyświetlania produktów (albo jest w innej formie ale tego nie potrafię odnaleźć ).
Question
endriuuxd
Witam serdecznie
Mam mały problem z wyświetlaniem produktów na sklepie.
Domyślnie jest ustawiona lista, którą ręcznie można przełączyć na "grid" ale chcę zmienić aby domyślnie przy otwieraniu strony było "grid" .
W internecie znalazłem kilka instrukcji ale u mnie w ogóle nie ma w pliku product_list.tpl żadnej z wymienionych linijek odnośnie wyświetlania produktów (albo jest w innej formie ale tego nie potrafię odnaleźć ).
Z góry dziękuję za pomoc :-)
Wstawiam zawartość mojego product_list.tpl :
{if isset($products)} {foreach from=$products item=product name=bosky} {$product.name|escape:html:'UTF-8'} {if isset($product.on_sale) && $product.on_sale} {l s='On sale!'} {elseif isset($product.reduction) && $product.reduction} {l s='Special'} {elseif isset($product.new) && $product.new == 1} {l s='New'} {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)) && !isset($restricted_country_mode))} {*{if isset($product.reduction) && $product.reduction} {if !$priceDisplay}{displayWtPrice p=$product.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if} {/if}*} {l s='od' mod='ppfeatured'} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} {if isset($product.new) && $product.new == 1} {l s='New'} {/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if} {/if} {if isset($product.online_only) && $product.online_only} {l s='Online only'} {/if} {$product.name|truncate:40:'...'|escape:'htmlall':'UTF-8'} {$product.name|truncate:100:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags|truncate:77:'...'} {$product.description_short|strip_tags|truncate:222:'...'} {if isset($comparator_max_item) && $comparator_max_item} {l s='Select to compare'} {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {l s='On sale!'} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {l s='Reduced price!'} {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)) && !isset($restricted_country_mode))} {if isset($product.reduction) && $product.reduction} {*{if !$priceDisplay}{displayWtPrice p=$product.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if} {if $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction*100|floatval}% {else} -{$product.specific_prices.reduction|floatval}{$currency->suffix} {/if}*} {/if} {l s='od' mod='ppfeatured'} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} {*{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {else} {l s='View'} {/if} {/if}*} {l s='Zobacz szczegĂłĹy i wybierz parametry'} {if isset($comparator_max_item) && $comparator_max_item} {l s='Select to compare'} {/if} {/foreach} {/if}Link to comment
Share on other sites
7 answers to this question
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