Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
3
votes
2
answers
4k
views
Programmatically Set/Change Thumbnail Image To Another From Gallery
I have a huge catalog of products which all have about 4 images per product with the same naming structure being something like "xxxxxx_FR.jpg" "xxxxxx_BK.jpg" "xxxxxx_FL.jpg" where the x's represent …
0
votes
Accepted
Programmatically Set/Change Thumbnail Image To Another From Gallery
My Solution was this for anyone else looking...
foreach ($gallery as $image){
$cameraAngle = str_replace(".jpg","",explode("_",$image->getUrl()));
if (strtolower($cameraAngle[1]) …