SergeiG Posted May 8, 2017 Share Posted May 8, 2017 Hello! I'm trying to add a vertical gallery, which was presented in 6.1.7, to a site worked on 6.1.5. I triyed to copy a piece of code from element.product.vertical_gallery.php (lines 13-27) to content.product.php . The result is blank page. As I understand, some classes (or may be more) are defined and described in other files of 6.1.7 release, however my knowledge of the CubeCart engine isn't enough to understand all interactions. Could somebody be so kind to help me with this task? Quote Link to comment Share on other sites More sharing options...
bsandall Posted May 8, 2017 Share Posted May 8, 2017 (edited) You shouldn't copy anything; instead, look in content.product.php on line 24 - change that from horizontal_gallery to vertical_gallery. Edited May 8, 2017 by bsandall Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 8, 2017 Author Share Posted May 8, 2017 1 minute ago, bsandall said: You shouldn't copy anything; instead, look in content.product.php on line 24 - change that from horizontal_gallery to vertical_gallery. In the version 6.1.5 there is not this line, at least in my version of the content.product.php I have this code: <div class="small-5 medium-7 columns"> <a href="#" class="open-clearing" data-thumb-index="0"><img src="{$PRODUCT.medium}" alt="{$PRODUCT.name}" id="img-preview"></a> {if $GALLERY} <ul class="clearing-thumbs small-block-grid-3 medium-block-grid-5 marg-top" 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> {/if} </div> Quote Link to comment Share on other sites More sharing options...
bsandall Posted May 8, 2017 Share Posted May 8, 2017 Ah, I thought you had updated from 6.1.5 to 6.1.7. Unfortunately there were a lot of skin changes between those versions, including to the JS and CSS files. Your best bet will be to update to 6.1.7 - pretty much all of the issues have been resolved by now and, while 6.1.8 has not yet been released, you can get all of those fixes by downloading the latest code from GitHub and updating manually. Alternatively, you can try to piece together the changes that were made and replicate them on your 6.1.5 skin, but if you plan on updating your store to later versions of CubeCart you may not find this to be a good use of your time. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 9, 2017 Author Share Posted May 9, 2017 20 hours ago, bsandall said: Ah, I thought you had updated from 6.1.5 to 6.1.7. Unfortunately there were a lot of skin changes between those versions, including to the JS and CSS files. Your best bet will be to update to 6.1.7 - pretty much all of the issues have been resolved by now and, while 6.1.8 has not yet been released, you can get all of those fixes by downloading the latest code from GitHub and updating manually. Alternatively, you can try to piece together the changes that were made and replicate them on your 6.1.5 skin, but if you plan on updating your store to later versions of CubeCart you may not find this to be a good use of your time. Unfortunately, a frontend feature of adding users to mailing list stopped to work after upgrade on the 6.1.7 version, so I returned to 6.1.5. If the mailing list feature will work in 6.1.8 version I immediately made an upgrade. May you write names of JS and CSS files which are connected with the gallery feature? Quote Link to comment Share on other sites More sharing options...
bsandall Posted May 9, 2017 Share Posted May 9, 2017 Are you on windows? If so, open a command prompt and navigate to your CubeCart directory, then type: findstr /i /n /s /c:"gallery" *.* That should find all the files that have anything to do with the gallery, along with each line that it occurs. However, I really recommend you wait until 6.1.8 as the issue you mentioned has already been fixed - you will save yourself a lot of time and energy. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 9, 2017 Author Share Posted May 9, 2017 Thank you for advice. Unfortunately, this issue wasn't fixed, it was closed as unpronounceable. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 9, 2017 Share Posted May 9, 2017 Have you made a post about your issue with 6.1.7 Mailing List @SergeiG? I don't remember seeing it. I use a MailChimp plugin, so I can't easily test it for you. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 9, 2017 Author Share Posted May 9, 2017 5 minutes ago, Dirty Butter said: Have you made a post about your issue with 6.1.7 Mailing List @SergeiG? I don't remember seeing it. I use a MailChimp plugin, so I can't easily test it for you. May you write me a name of the MailChimp plugin, which you use? Or is it your own solution? Quote Link to comment Share on other sites More sharing options...
bsandall Posted May 9, 2017 Share Posted May 9, 2017 51 minutes ago, SergeiG said: Thank you for advice. Unfortunately, this issue wasn't fixed, it was closed as unpronounceable. Ah, so it was - my mistake. I'll post in your other thread. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 9, 2017 Share Posted May 9, 2017 I use https://www.cubecart.com/extensions/plugins/mailchimp I use the plugin on plushcatalog. SemperFi modified it for a price to also automatically trigger an Automated email campaign. I use the MailChimp embedded code based on what MC provides on the estates collectible shop. As far as I can tell both stores correctly subscribe correctly. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 10, 2017 Author Share Posted May 10, 2017 @bsandall, @Dirty Butter, @bsmither I would extremely appreciate if you help me to finish this integration. I investigated the commit 985a842 to the story #1449 (https://github.com/cubecart/v6/commit/985a842f57c852970b8fb55e1527b20cf64a9a5f) and did changes in next files: cubecart.css - add lines according to the commit; 2.cubecart.js - add lines according to the commit; content.product.php - I took the version from this commit, but just removed all '-' signs. All files are attached. As a result, I have a vertical gallery, however it works a little bit incorrectly - when I open a product page at the first time I don't see the main image, it appears when I reload page (by pressing F5). Screenshots are attached 2.cubecart.js content.product.php cubecart.css Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 10, 2017 Share Posted May 10, 2017 Try testing with a different browser that you have not used with your store. It MAY be a caching issue. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted May 11, 2017 Author Share Posted May 11, 2017 18 hours ago, Dirty Butter said: Try testing with a different browser that you have not used with your store. It MAY be a caching issue. I did... Failed :-( Let see how 6.1.8 will work with email subscriptions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.