What's New
Tagged: FTP code
This topic contains 19 replies, has 3 voices, and was last updated by KingMobilité Jun '22.
- AuthorPosts
Hi Team,
PS 1.7.5.2
Tx 4.3.7I just updated towards 4.3.7 (from 4.3.6) and would like to work with the lazy load feature, but came across following errors. Just in case you need it, I will send FTP in private mail.
1) While checking the zoom function (trigger box icon on the product page), nothing appears. Just a loading icon (see enclosed image), however when putting the mouse on the image, it magnifies correctly. I generated the superlarge_default images, but nothing changed.
2) Lazy load
When adding <img class=”cate_pro_lazy” data-src= into the existing line, the image disappears. For exemple :3) Something still botters me: Blog on sitemap XML (google) works fine, however when clicking on the sitemap ON my site (https://kingmobilite.com/plan du site), the blog section does not appear (all other pages are shown). Bug or bad configuration on my side?
Thanks for assistance
Attachments:
Hi,
1. Please replace the \themes\transformer\templates\catalog\_partials\product-cover-thumbnails.tpl file with my attached one and clear the Smarty cache.
2. I am afraid I am unclear your mean, can you send me a screenshot to explain it?
3. Please modify Prestashop core file: \controllers\front\SitemapController.php, add the following code and clear the Smarty cache.$links[] = array( 'id' => 'blog-page', 'label' => $this->trans('Blog', array(), 'Shop.Theme.Global'), 'url' => $this->context->link->getModuleLink('stblog', 'default'), );
See attached screenshot.
Best regards.Thanks Yonny,
Point 1 & 3 works perfectly after modification.For point 2, please find enclosed the image with the actual code. For lazy load, I replaced the <img scr by:
<img class=”cate_pro_lazy” data-src=However in my case, the image is then not shown, just blank square and no pop-up possible of the large image either.
Is this lazy load code not correct in my case?Thanks for helping out.
RegardsAttachments:
Hi,
Please see #35: https://www.sunnytoo.com/14367/small-customizations-transformer-theme-panda-theme-make-better to add the lazyload for images.
Best regards.Hi,
I tried that, but have no image. If you have an idea? Or is is due to older prestashop (1.7.6.8)?
Thx- This reply was modified Jun '22 by KingMobilité.
- This reply was modified Jun '22 by KingMobilité.
- This reply was modified Jun '22 by KingMobilité.
- AuthorPosts
You must be logged in to reply to this topic.