Woocommerce_after_single_product_summary hooks

This topic has 8 replies, 2 voices, and was last updated 6 years, 12 months ago ago by Rose Tyler

  • Avatar: g_ignatov
    g_ignatov
    Participant
    April 14, 2017 at 11:55

    Hi I’m using the theme as a catalog, I have a plugin that must be placed below the big image and hooks the woocommerce_after_single_product_summary. But some how the theme cut it off. When I switched to a standart wordpress theme, everything is ok.
    Here is that portion of code in this plugin

    if ( (get_option(‘vartable_position’) == ‘under’ && get_post_meta($post->ID, ‘disable_variations_table’, true) == 2) || (get_option(‘vartable_position’) == ‘under’ && get_option(‘vartable_disabled’) != 1 && get_post_meta($post->ID, ‘disable_variations_table’, true) != 1 && empty($checkcat)) ) {
    remove_action( ‘woocommerce_variable_add_to_cart’, ‘vt_woocommerce_variable_add_to_cart’, 30 );
    add_action( ‘woocommerce_after_single_product_summary’, ‘vt_woocommerce_variable_add_to_cart’, 5 );
    }
    ‘under’ – means under product image

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 14, 2017 at 13:35

    Hello,

    Please note we don’t guarantee full compatibility of 3rd-party plugins with the theme.
    Please clarify us with more details about plugin name and works, and provide screenshots.

    Regards,
    Rose Tyler.

    Avatar: g_ignatov
    g_ignatov
    Participant
    April 14, 2017 at 13:44

    I’m thinkig that found the problem. the plugin is called Woocommerce Variations Table – Grid and it’s working perfectly. The problem is that uses as i mention woocommerce_after_single_product_summary for display the table below image. In your case you called woocommerce single_product_summary below the product.
    For now I’m ok and things are workind well. if i need something later for place product sections in different way I’ll ask.

    One more thing. I need to disable tabs for some products. I do that with standart function but I do not know the name of your custom tab. Will you tell me

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 14, 2017 at 14:03

    Hello,

    Great.
    The standard functions don’t work with our custom tab. You can find code in woocommerce/single-product/tabs/tabs.php

    Regards,
    Rose Tyler.

    Avatar: g_ignatov
    g_ignatov
    Participant
    April 17, 2017 at 03:57

    Ok, I see , but please give me a hint for that
    my fuction is
    add_filter( ‘woocommerce_product_tabs’, ‘conditionaly_removing_product_tabs’, 98 );
    function conditionaly_removing_product_tabs( $tabs ) {

    // Get the global product object
    global $product;

    if (( is_product() && has_term( ‘wrapped-classic-section’, ‘product_cat’ ) ) or
    ( is_product() && has_term( ‘wrapped-banded’, ‘product_cat’ ) ) )
    {

    //… Remove the images
    // remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20 );
    // For a full list of what can be removed please see woocommerce-hooks.php

    // KEEP BELOW ONLY THE TABS YOU NEED TO REMOVE <=== <=== <=== <===
    unset( $tabs[‘description’] ); // (Description tab)
    unset( $tabs[‘reviews’] ); // (Reviews tab)
    unset( $tabs[‘additional_information’] ); // (Additional information tab)
    unset( $tabs[‘custom_tab_title’] ); // (custom tab)
    unset( $tabs[‘custom_tab1_title’] ); // (custom tab)
    }

    return $tabs;

    }

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2017 at 14:04

    Hello,

    In this case, I suggest you delete our tabs http://prnt.sc/ey9opz and try to work with standard tabs.
    I’m sorry but additional customization is not included in our support. If you have any questions about additional customization you can contact WP-Kraken team.

    Regards,
    Rose Tyler.

    Avatar: g_ignatov
    g_ignatov
    Participant
    April 27, 2017 at 11:21

    Hi, Just a question. today I recieved a e-mail for your X-store theme, and when I looked at the modifications, I saw that there is a sticky button on the right side of the sreen with “+” label and “48 demos” on mouse hover. When I clicked on the button it shows the widget right side panel area. In legenda theme there is also this widget area, but the button is only in the top header area and is not so visible for clicking. Can this button can be transformed in to sticky button like your demo in X-store theme .

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2017 at 12:31

    Hello,

    Unfortunately, there is no such option. It can be done only by additional customization. You can send request to customization team https://wpkraken.io/?ref=8theme

    Regards,
    Rose Tyler.

  • Viewing 8 results - 1 through 8 (of 8 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.