junior_pat Posted November 14, 2018 Share Posted November 14, 2018 Hello When I go into my products, I have images that appear next to the main image. How to disable this option or delete other images? Indeed, I have photo standby that appears. Thank you for your help. PS: You can look my problem in attach Link to comment Share on other sites More sharing options...
bsmither Posted November 14, 2018 Share Posted November 14, 2018 There are two ways: edit the skin to not show the image gallery, or disassociate the extra images from the product. What to edit in the skin template will be something similar to: {if $GALLERY} <div id="scrollUp" class="scroller"><svg class="icon"><use xlink:href="#icon-angle-up"></use></svg></div> <ul class="clearing-thumbs small-block-grid-1" id="scrollContent" data-clearing> {foreach from=$GALLERY item=image} <li{if $image@total lt 2} style="display:none"{/if}><a href="{$image.source}" class="th"><img src="{$image.small}" data-image-swap="{$image.medium}" data-caption="{$PRODUCT.name}{if !empty($image.description)}: {/if}{$image.description}" class="image-gallery" alt="{$LANG.catalogue.click_enlarge}"></a></li> {/foreach} </ul> <div id="scrollDown" class="scroller"><svg class="icon"><use xlink:href="#icon-angle-down"></use></svg></div> {/if} The latest Foundation skin will have this code in element.product.vertical_gallery.php. Other skins will have this code in content.product.php. You will want to change {if $GALLERY} to {if false && $GALLERY}. To disassociate images, in admin, Edit the product. On the Images tab, locate all the images that have checked boxes -- the gold-starred images are the primary image. Click the checked boxes until they become unchecked. Save. You will need to do this on each product which you wish to disassociate the extra images. Then have CubeCart clear its internal cache. Link to comment Share on other sites More sharing options...
junior_pat Posted November 14, 2018 Author Share Posted November 14, 2018 Hello, Thank you for the answer. The version with {if false && $ GALLERY} works but only displays the main photo. When I put the star and a check mark (my logo), it does not show me the 2nd image as I show you in attachment. Therefore, it is difficult to uncheck the other images. Do you know why it does that to me? Thank you for your help. Link to comment Share on other sites More sharing options...
bsmither Posted November 14, 2018 Share Posted November 14, 2018 "works but only displays the main photo" This is not what you wanted? "it is difficult to uncheck the other images" I do not know why that would be a problem. Link to comment Share on other sites More sharing options...
junior_pat Posted November 14, 2018 Author Share Posted November 14, 2018 Yes that's what I wanted but if I have a second image with {if false && $ GALLERY} the second image is not displayed and I can not put two main images. What I wanted to say is that if I check an image by a view (extra image) and save it, the image does not appear with the main one and the checkmark is not put when it's done. retreat (photo already sent) (here is the picture before you saved it) Otherwise I'll only do a picture. Any other questions, do you know how to put a space between "Hello Guest" and log on to the homepage? Thank you for your help. PS: I know I'm complicated. Link to comment Share on other sites More sharing options...
bsmither Posted November 15, 2018 Share Posted November 15, 2018 Please draw a diagram of how you want your images to display. What is the name of the skin you are using? The template that is used to show the "Log In" link is box.session.php. (CubeCart templates are HTML, but have .php filename suffixes. There is no PHP code in CubeCart templates.) Link to comment Share on other sites More sharing options...
junior_pat Posted November 15, 2018 Author Share Posted November 15, 2018 I have the skin mican v. 1.0.4. I would like the images as in the photo but I would like to delete the old images so that it does not appear. Since it does not appear in the admin part (as soon as I save the images, it does not allow me to uncheck additional images so that it does not appear anymore). In addition, the old images remain and add to the news. I put two files first as I wish the image and the second to show that I can not remove the second photo. How to delete the 2nd photo in the shop and / or it appears in the admin part. Link to comment Share on other sites More sharing options...
bsmither Posted November 15, 2018 Share Posted November 15, 2018 "it does not allow me to uncheck additional images" That is very strange. Is this because the additional checked images cannot be found in the list when editing the product again? Or you actually cannot click on the checked box so that the box becomes unchecked? (An unchecked box, then click on it becomes a checked box, then click on it becomes a gold star, then click on it becomes an unchecked box again.) (If you are uploading images for us to see, I do not see them. Maybe there is a limit per day? Maybe the moderator has some advice.) Link to comment Share on other sites More sharing options...
junior_pat Posted November 15, 2018 Author Share Posted November 15, 2018 the size of the images is too big. Yes if I click there is a tick, if I click there is a star and if I click I have the empty box. The problem is when I save, it shows me the main photo and not the other photos. In addition, I have no box checked just blank box as in the picture of the link below. How to make it appear? Thank you for your help. Link to comment Share on other sites More sharing options...
bsmither Posted November 16, 2018 Share Posted November 16, 2018 Maybe this will work-- Please clear CubeCart's internal cache. If there is no "Clear Cache" button in the upper-right of the admin screen, then go to Maintenance, Rebuild tab, Clear Cache. Perhaps CubeCart is reading from a cached SQL query, and that is why the image Logo.jpeg is not showing as being assigned. I am still tracing the code trying to find the likely problem. Link to comment Share on other sites More sharing options...
citabriabob Posted February 23, 2019 Share Posted February 23, 2019 Is it possible to prevent image scaling; i.e., I would like my two images per product to display in full size. Link to comment Share on other sites More sharing options...
bsmither Posted February 23, 2019 Share Posted February 23, 2019 CubeCart will create sized versions of the source image - according to the needs of the skin. In the template content.product.php, there will be some code to display the product image. Find that HTML (knowing what skin you are using will help) and the <img> tag. The src attribute will probably be {$PRODUCT.medium}. Change that to {$PRODUCT.source}. Link to comment Share on other sites More sharing options...
junior_pat Posted February 24, 2019 Author Share Posted February 24, 2019 Hello Thank you for your answers. The bsmither solution works. But I have no star or seen in the admin part, image of the product. (See image of my post above) Do you know why? What should I do to make this happen? Thank you for your help. Link to comment Share on other sites More sharing options...
bsmither Posted February 24, 2019 Share Posted February 24, 2019 In admin, editing a product, on the Images tab, from your attached image above, I cannot determine why the assigned images do not have a checkmark or gold star unless the assigned images are actually located in the 'Produit' folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.