prestashop_user Posted January 30, 2014 Share Posted January 30, 2014 Witam, mam założony nowy sklep na Prescie i po zaistalowaniu nowego templaka pojawił się problem. Po dodaniu produktu do dowolnej kategrorii tracę do niej dostęp z poziomu użytkownika sklepu z drzewa w lewj kolumnie. Do produktu można wejść bezpośrednio ze strony głownej ale po uruchomieniu bocznego drzewa kategori nie da się załadować produktu. Proszę o odpowiedź czy może to byc wynikiem złych ustawień w BO czy raczej wina leży po stronie nowej nakładki na Preste. P.S. Wersja mobilna działa prawidłowo. Link na sklep: http://tablety.krakow.pl/ Produkt to np: XX1 Link to comment Share on other sites More sharing options...
0 vekia Posted January 30, 2014 Share Posted January 30, 2014 chodzi o to, że strona jest "biała" czy o to, że nie wyświetlają się produktY na stronach kategorii pytam bo znalazłem dwa problemy (chyba dwa) przykład: dzwonki - biała strona http://tablety.krakow.pl/9-dzwonki przykład: szafy teleinfo - brak produktów http://tablety.krakow.pl/26-szafy-teleinformatyczne-19 o co chodzi? Link to comment Share on other sites More sharing options...
0 prestashop_user Posted January 30, 2014 Author Share Posted January 30, 2014 Wiatm, chodzi o problem " biała strona" http://tablety.krakow.pl/9-dzwonki Do kategorii - http://tablety.krako...nformatyczne-19 nie mam dodanych żadnych produktów, więc ona wyświetla się OKbez produktów P.S. ale jeżeli do ww kategorii http://tablety.krako...nformatyczne-19 dodał bym jakikolwiek produkt w BO to też otrzymam "białą stronę" na tej kategorii Link to comment Share on other sites More sharing options...
0 vekia Posted January 30, 2014 Share Posted January 30, 2014 ok dzięki za wyjaśnienie od tego trzeba zacząć: http://www.prestashop.com/forums/topic/263589-500-error-b%C5%82%C4%99dy-bia%C5%82a-strona-instrukcja-dotycz%C4%85ca-trybu-debugowania/ Link to comment Share on other sites More sharing options...
0 prestashop_user Posted January 30, 2014 Author Share Posted January 30, 2014 Zamieniłem , wysypał błędy. Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/megasat/ftp/elektro_new/themes/leomobi/product-list.tpl" on line 95 "{/if}" unclosed {if} tag' in /home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_compilebase.php(166): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {if} t...') #1 /home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_compile_foreach.php(224): Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(485): Smarty_Internal_Compile_Foreachclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(259): Smar in/home/megasat/ftp/elektro_new/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 Link to comment Share on other sites More sharing options...
0 vekia Posted January 30, 2014 Share Posted January 30, 2014 z powyższego błędu wynika, że jakiś warunek {if} nie został zamknięty (chodzi o plik product-list.tpl lina 95) trzeba go zamknąć przy pomocy {/if} Link to comment Share on other sites More sharing options...
0 prestashop_user Posted January 30, 2014 Author Share Posted January 30, 2014 z tego co widzę to na końcu w lini 95 jest zamknięcie {/if} {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($products)} <!-- Products list --> <div id="product_list" class="products_block {$PRODUCT_VIEW} "> <div class="rows-fluid"> {foreach from=$products item=product name=products} {if $product@iteration%Configuration::get('productlistcols')==1 || Configuration::get('productlistcols')==1} <div class="row-fluid"> {/if} <div class="p-item span{(12/Configuration::get('productlistcols'))} product_block ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix"> <div class="product-container clearfix"> <div class="center_block"> <div class="leo-more-info" rel="{$product.id_product}"></div> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} /> {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} </a> <a class="quick-view btn-tooltip" title="{l s='Quick View'}" href="{if $product.link|strpos:"?"}{$product.link|cat:"&content_only=1"|escape:'htmlall':'UTF-8'}{else}{$product.link|cat:"?content_only=1"|escape:'htmlall':'UTF-8'}{/if}">{l s='Quick View'}</a> </div> <div class="right_block"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span>{elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span> {/if} <h3 class="s_title_block">{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h3> <div class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></div> {if isset($comparator_max_item) && $comparator_max_item} <p class="compare"> <input type="checkbox" class="comparator" id="comparator_item_{$product.id_product}" value="comparator_item_{$product.id_product}" {if isset($compareProducts) && in_array($product.id_product, $compareProducts)}checked="checked"{/if} autocomplete="off"/> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label> </p> {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price price_container"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{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}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} </div> {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only'}</span>{/if} {/if} <a class="rating_box leo-rating-{$product.id_product}" href="#" rel="{$product.id_product}" style="display:none"> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> </a> {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)} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to cart'}"><span>{l s='Add to cart'}</span></a> {else} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to cart'} ">{l s='Add to cart'}</a> {/if} {else} <span class="exclusive">{l s='Add to cart'}</span> {/if} {/if} </div> </div> </div> {if $product@iteration%Configuration::get('productlistcols')==0||$smarty.foreach.products.last} </div> {/if} {/foreach} </div></div> <!-- /Products list --> {/if} Link to comment Share on other sites More sharing options...
0 vekia Posted January 30, 2014 Share Posted January 30, 2014 zgadza się, jest, ale chodzi o oto, że gdzieś wyżej jakiś otwarty {if} nie jest zamknięty, no i trzeba go zamknąć dodając {/if}. błąd wyświetla tylko informacje że if nie został zamknięty i że trzeba go zamknąć na końcu, zawsze tak jest. To gdzie on jest otwarty oraz gdzie powinien zostać zamknięty zalezy od kodu. Link to comment Share on other sites More sharing options...
0 prestashop_user Posted January 30, 2014 Author Share Posted January 30, 2014 Witam, udało się rozwiązać problem. Skopiowałem plik "product-list.tpl" z innej wersji presty i wygląda no to że pomogło. Bardzo dziękuję za pomoc w tym temacie. A tak przy okazji mam pytania odnośnie cyferek przed produktem w url. Czy ma to duży wpływ na pozycjonowanie i czy warto zastosować programy (odpłatne) rozwiazujące ten problem, czy lepiej dać sobie spokój a dla np. googla nie ma to większego wpływu Link to comment Share on other sites More sharing options...
0 vekia Posted January 30, 2014 Share Posted January 30, 2014 moim zdaniem nie warto. te cyfry pomagają i to bardzo. prosty przykład. prowadzisz sklep już kilka miesięcy, google zaindeksował adresy do produktów, ludzie wyszukują produkty, znajdują Twój sklep i Twój produkt w wyszukiwarce i klikają w link sytuacja bez modułu masz produkt o nazwie "klapki kubota" link do produktu wygląda www.sklep.com/5-klapki-kubota.html sytuacja z modułem ten sam link do produktu wygląda www.sklep.com/klapki-kubota.html przyszedł dzień, w którym chcesz rozszerzyć nazwę produktu z "klapki kubota" na "nowe klapki kubota" sytuacja bez modułu ludzie szukający klapek, odnajdują link do Twojego sklepu i starego produktu w google (www.sklep.com/5-klapki-kubota.html), zmieniono nazwę produktu więc link teraz wygląda tak: www.sklep.com/5-nowe-klapki-kubota.html ludzie wchodząc przez stary adres tj. www.sklep.com/5-klapki-kubota.html zostają automatycznie przekierowani na nową stronę właśnie przez ten numer produktu. Klient zostaje przekierowany na poprawny adres tj. www.sklep.com/5-nowe-klapki-kubota.html sytuacja z modułem stary link tj.www.sklep.com/klapki-kubota.html w związku z ze zmianą nazwy produktu zmienia się na www.sklep.com/nowe-klapki-kubota.html, i to jest ok, ale stary link przestaje działać! ludzie widzą błąd 404 lub stronę prestashop "nie znaleziono strony", nie ma automatycznego przekierowania, w związku z tym, linki tracą pozycję w google, nowe muszą się zaindeksować od nowa. Link to comment Share on other sites More sharing options...
Question
prestashop_user
Witam,
mam założony nowy sklep na Prescie i po zaistalowaniu nowego templaka pojawił się problem.
Po dodaniu produktu do dowolnej kategrorii tracę do niej dostęp z poziomu użytkownika sklepu z drzewa w lewj kolumnie.
Do produktu można wejść bezpośrednio ze strony głownej ale po uruchomieniu bocznego drzewa kategori nie da się załadować produktu.
Proszę o odpowiedź czy może to byc wynikiem złych ustawień w BO czy raczej wina leży po stronie nowej nakładki na Preste.
P.S.
Wersja mobilna działa prawidłowo.
Link na sklep:
http://tablety.krakow.pl/
Produkt to np: XX1
Link to comment
Share on other sites
9 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