Jump to content

Integration Product.Vertical.Gallery to 6.1.5 ?


Recommended Posts

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

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? 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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

1st_time.jpg

after_f5.jpg

after_f5_A.jpg

1st_time_A.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...