Thank You! Code above shows all images. I suggest code below if needed to shown combination image first and then other images (not associated with an combination):
File: src/Adapter/Image/ImageRetriever.php
Line: 105
Code:
foreach ($images as $image) {
if (in_array($productAttributeId, $image['associatedVariants'])) {
$filteredImages[] = $image;
}
}
foreach ($images as $image) {
if (count($image['associatedVariants'])==0) {
$filteredImages[] = $image;
}
}
Following code in htaccess file blocked requests without proper user agent setting:
# BLOCK BLANK USER AGENTS - POST
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteCond %{THE_REQUEST} POST
RewriteRule ^ - [F]
Following code in htaccess blocks users without referrer:
# BLOCK UNKNOWN REFERRER - POST
RewriteCond %{QUERY_STRING} controller=contact
RewriteCond %{HTTP_REFERER} !yoursite.com
RewriteCond %{THE_REQUEST} POST
RewriteRule ^ - [F]
hi All, in my case there were bots coming from different ips. But - from apache logs found they used same token,
so solution was - forwarding all requests to front page with this token inside url query
Hope this helps