Jump to content

Peter Liska

Members
  • Posts

    53
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Peter Liska's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

7

Reputation

  1. Here is the version that also preserves the original image. (Code from my previous comment is included.) It's a little bit polished to make it easier to compare to the original file: PrestaShop version 1.7.8.0 Simple just put in: /override/classes/ ImageManager.php
  2. It would be nice to show us original vs. actual content of the file that you have changed. And this is International community (English) !!!
  3. One small note: It would be best not to forget to give Google robots complete texts. Because I can see these truncate (for example) in your code (but it is there for good design - except img alt ) <img src = "{$product.cover.bySize.home_default.url}" alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}" data-full-size-image-url = "{$product.cover.large.url}" > {block name='product_name'} <h3 class="h3 product-title" itemprop="name"> <a href="{$product.url}">{$product.name|truncate:46:'...'}</a> </h3><p>{$product.description_short|strip_tags:'htmlall':'UTF-8'|truncate:100:'...'}</p> {/block}
  4. That is a lot of problems. 1.) itemprop="image" You can get inspiration from here: product-cover-thumbnails.tpl <img class="js-qv-product-cover" src="{$product.default_image.bySize.large_default.url}" {if !empty($product.default_image.legend)} alt="{$product.default_image.legend}" title="{$product.default_image.legend}" {else} alt="{$product.name}" {/if} style="width:100%;" itemprop="image" loading="lazy" > 2.) itemprop="description" You can get inspiration from here: product.tpl {block name='product_description_short'} <div id="product-description-short-{$product.id}" class="product-description" itemprop="description">{$product.description_short nofilter}</div> {/block} Rest you have to try find or try to figure it out by yourself. Good luck! Product schema: product Offer schema: offer
  5. This is true. (but NOT for latest actualized theme versions) You have to edit this. I forgot to mention it. But this file does not longer exist in latest Github repository. There is only this (productlist.tpl): https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/catalog/_partials/productlist.tpl Containing only this: <div class="products{if !empty($cssClass)} {$cssClass}{/if}" itemscope itemtype="http://schema.org/ItemList"> {foreach from=$products item="product" key="position"} {include file="catalog/_partials/miniatures/product.tpl" product=$product position=$position} {/foreach} </div> ... include file="catalog/_partials/miniatures/product.tpl ...
  6. To solve this "Google Webmaster problem" it will be better (for all of you) to have a look at PrestaShop GitHub Classic theme, where most of these problems have been already solved. The most important thing is here (around line 80): https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/catalog/_partials/miniatures/product.tpl <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="invisible"> <meta itemprop="priceCurrency" content="{$currency.iso_code}" /> <meta itemprop="price" content="{$product.price_amount}" /> </div> You can add url and avaibilty too: <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="invisible"> <meta itemprop="priceCurrency" content="{$currency.iso_code}" /> <meta itemprop="price" content="{$product.price_amount}" /> <meta itemprop="url" content="{$product.url}" /> <link itemprop="availability" href="{$product.seo_availability}" /> </div> Here is my pull request for this: https://github.com/PrestaShop/PrestaShop/pull/21786/files Search for the "itemprop" in the latest classic theme and you can find more of these and where to add them. I do NOT recommend add this in offers: <meta itemprop="review" content="{$product}"/> <meta itemprop="name" content="{$product.name}"/> review - A review of the item! Offers are described here: https://schema.org/Offer name - is already specified in product.tpl file: {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h3> {else} <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2> {/if} {/block}
  7. Try to clean your css cache directory: /themes/[your theme]/assets/cache/ And probably these too: /themes/[your theme]/cache/ /var/cache/
  8. It looks like this problem occurs only at pages with (useless) single breadcrumb. Because, there is no (navigation) itemListElement item. Like for example: home page, new products, prices drop ... If you do not need this (useless) single breadcrumb on these pages you can do something like this in your theme file \templates\_partials\breadcrumb.tpl {if $breadcrumb.count > 1} <nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down"> <ol itemscope itemtype="http://schema.org/BreadcrumbList"> ... </ol> </nav> {/if}
  9. Maybe this should still be considered: At he beginning: if (preg_match('/\/img\/(p|c|m|s|st)\/(\d+\/)*\d+\.(jpg|jpeg|png|gif)$/Us', $destinationFile)) { return @copy($sourceFile, $destinationFile); } From here: https://www.sunnytoo.com/42096/an-important-fix-to-optimize-prestashops-image-upload-function To keep the original image as it was. For further possible optimization in the future
  10. Only small improvement, because there is 2x ImageManager::checkImageMemoryLimit That can speed up things a little bit 😉 I also deleted the commented code at the beginning. ImageManager.php
  11. Ak si pozrieš zdrojový kód stránky http://kovania.eu/prestashop/, tak v bloku prepínania jazykov je vidieť, že po kliknutí na českú zástavku ťa odkáže na stránku http://kovania.eu/prestashop/cs/obchod, ktorá neexistuje. Takže chybu hľadaj niekde tam. <!-- Block languages module --> <div id="languages_block_top"> <div id="countries"> <p class="selected_language"> <img src="http://kovania.eu/prestashop/img/l/6.jpg" alt="sk" width="16" height="11" /> </p> <ul id="first-languages" class="countries_ul"> <li class="selected_language"> <img src="http://kovania.eu/prestashop/img/l/6.jpg" alt="sk" width="16" height="11" /> </li> <li > <a href="http://kovania.eu/prestashop/cs/obchod" title="Czech"> <img src="http://kovania.eu/prestashop/img/l/7.jpg" alt="cs" width="16" height="11" /> </a> </li> </ul> </div> </div>
  12. 1.5.x je podľa mňa pomalšia ako 1.4.x, takže jej pomôže asi už len lepší hosting alebo vlastný server.
  13. Predpokladám, že si upravoval dopravcov -> t.j. vytvoril si si nových dopravcov s novými ID. Používaš Ship2Pay alebo podobný modul na kombináciu dopravcov a platieb? Skús sa pozrieť tam a pripárovať platobné moduly k novým dopravcom.
  14. Chlape, ja naozaj netuším, prečo ti to nefunguje Budeš sa s tým musieť potrápiť sám. Prechod na 1.5.x je niekedy divočina Názov témy sa dá zmeniť v "settings.inc.php"
×
×
  • Create New...