Delucaidekr Posted October 23, 2019 Share Posted October 23, 2019 Hi all, i'm struggling to find a way to sort this issue: At the moment i've +6000 categories (Parents and childs). All the parents categories have their photos except the child. This has been caused by my CSV that doesn't have photos URL for the child categories. Inside the child categories, there are all products with their photos. There's a way to show at least one photos from the products inside the child as child category photo and avoid to see the bad "Photo unavailable" as thumbnail for all child category? Appreciated all the help Link to comment Share on other sites More sharing options...
NemoPS Posted November 11, 2019 Share Posted November 11, 2019 What's your prestashop version? If you are on 1.6, yes, you could check if there are products {if $products} Then get the first one and its image {$link->getImageLink($products[0]link_rewrite, $products[0].id_image, 'home_default')} 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