WooCommerce Product Addon is now showing double options in products

This topic has 10 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Olga Barlow

  • Avatar: Burtcav
    Burtcav
    Participant
    April 17, 2017 at 20:13

    After the update we notice several problems with the store. We have a black background on .main_header with the use of !important tied to it, even though transparent is specified in the options. More crucially is the double listing of the product options that are used in woocommerce product addons as seen here: https://www.qualitinc.com/e-stores/product/gildan-youth-t-shirt-3/

    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2017 at 13:57

    Hello,

    Please, provide me admin panel and FTP access to your site. We’ll check and try to fix the problem.

    Regards

    Avatar: Burtcav
    Burtcav
    Participant
    April 19, 2017 at 16:51

    Thank you for the reply and I have found the solution in modifying the /themes/xstore/woocommerce/single-product/add-to-cart/simple.php file. However there are a couple more items that I noticed.

    1) There is a black background going across the header on the navigation menu, but only in the category/product pages. It is specified with !important and I cannot change this using CSS. https://www.qualitinc.com/e-stores/product/gildan-youth-t-shirt-3/ (Product Page)
    https://www.qualitinc.com/e-stores/product-category/new-lutheran/ (Category Page)

    2) On our main store, the gallery images (slider) when clicked do not change the image to the correct color. It seams like it is just 1 off. The hover shows the right color, but when clicked, it brings up a different color for the featured image. When a color is selected on the right it does change the color of the featured image, but also the first gallery image.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 20, 2017 at 09:20

    Hello,

    1) You have added header bg for the Shop page http://prntscr.com/eyldw2 Shop categories and products inherit Shop page styles.
    2) Can’t connect to your server. Check the credentials
    Response: 331 User testing OK. Password required
    Command: PASS ************************
    Response: 530 Login authentication failed
    Error: Critical error: Could not connect to server

    Regards

    Avatar: Burtcav
    Burtcav
    Participant
    April 20, 2017 at 16:32

    Thank you for solving the header problem. Not sure why that would have changed, and did not show before the update.

    For ftp credentials, the usage/quota shows 33352 / ∞ MB so it looks like you got in. However, I will reset the password, just in case.
    All that is left is to figure out why the image clicking in the owl carousel for the gallery images is just one off in regards to the featured image.

    Thanks so much for your time!

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 22, 2017 at 10:14

    Hello,

    Read this post, please, https://www.8theme.com/topic/product-thumbnails-wont-work/#post-147588
    You have added featured image in product gallery. Don’t add featured image in product gallery it will be added automatically, if you do this it breaks the order of the slides.

    Regards

    Avatar: Burtcav
    Burtcav
    Participant
    April 25, 2017 at 02:24

    I still cannot get past the gallery slider. When I change to a default twenty-sixteen theme I do not have any problems with the images linking incorrectly to the featured image as seen at my test site: http://www.qualitinc.com/test2/product/cornerstone-select-long-sleeve-snag-proof-tactical-polo-cs410ls/. Yes it shows the same color twice in the beginning but it still links correctly. If I use a slider plugin, it still links correctly to the featured image. I have narrowed it down to the owl slider that you use for the theme. When I activate xstore and gallery slider, the slider does not link correctly.

    My 2,000 products are brought into the store using CSV feed and they are all variable products based on color. Each variation has a color image tied to it and added to the gallery. My first variation is what is set as my featured image. It makes no sense that I have to delete an image in my gallery just to change my featured image. If I want to then change the featured image again, I have to go back in and add the previous color and then delete the new color……….this makes maintaining 2,000 products very difficult, and is not needed with any other theme.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 25, 2017 at 15:50

    Hello,

    Unfortunately, this is how carousel works for the thumbnails in our theme. Default theme does not have the carousel for the thumbnails. We plan to change all the carousels that we use in our theme to another one in version 4.0 of our theme and then it will show both auto-generated thumbnail image and one more thumbnail from the media library and this issue will be fixed. But 4.0 update will be available in the middle of the May I think. Sorry for this inconvenience.

    Regards

    Avatar: Burtcav
    Burtcav
    Participant
    May 4, 2017 at 16:00

    Olga,

    Things were going great. I was using this code and the featured image and gallery problem was solved, but I had other issues with the portfolio gallery. So of course, I updated the test site to the latest version of X-store and my code is not working anymore. Any chance the shortcodes have been changed? Can you look at the code and suggest any changes to make it work again?

    
    function exclude_thumbnail_from_gallery($null, $attr)
    {
        if (!$thumbnail_ID = get_post_thumbnail_id())
            return $null; // no point carrying on if no thumbnail ID
        // temporarily remove the filter, otherwise endless loop!
        remove_filter('post_gallery', 'exclude_thumbnail_from_gallery');
        // pop in our excluded thumbnail
        if (!isset($attr['exclude']) || empty($attr['exclude']))
            $attr['exclude'] = array($thumbnail_ID);
        elseif (is_array($attr['exclude']))
            $attr['exclude'][] = $thumbnail_ID;
        // now manually invoke the shortcode handler
        $gallery = gallery_shortcode($attr);
        // add the filter back
        add_filter('post_gallery', 'exclude_thumbnail_from_gallery', 10, 2);
        // return output to the calling instance of gallery_shortcode()
        return $gallery;
    }
    add_filter('post_gallery', 'exclude_thumbnail_from_gallery', 10, 2);
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 5, 2017 at 15:41

    Hello,

    WooCommerce 3.0.3 made changes in the following files content-single-product.php , single-product/product-image.php ,single-product/product-thumbnails.php .

    So, our developers also made changes to add the compatibility with the new version of WC.
    Unfortunately, I can’t find the error in your code without trying on the real site.

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.