Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter alalalk71

    (@alalalk71)

    i want set yith zoom magnifire in woocommerce_single_product_summary

    if i want remove default function what do am i and what do to added in my place

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    i do not understand your question very well, it seems you want to remove an plugin function hooked to a WooCommerce action but where are you putting this code?
    The best way, hoping you do in this way, is to put that code in the functions.php file located on your theme folder, in this case the reference to $this is not valid and should be replaced by the Plugin instance.
    So before the remove_action you should put the following :
    global $yith_wcmg;
    and replace all the $this with the $yith_wcmg.

    Thread Starter alalalk71

    (@alalalk71)

    i want change order in hook

    you say i write this but didnt work exactly

    <?php

    global $yith_wcmg;
    remove_action ( ‘woocommerce_before_single_product_summary’,$yith_wcmg, 20 );
    add_action ( ‘woocommerce_single_product_summary’, $yith_wcmg, 90 );

    ?>

    Thread Starter alalalk71

    (@alalalk71)

    can you write code

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    we can’t provide you the code for customize the plugin, please consider hiring a developer if you need specific customization.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘change place of zoom magnifire’ is closed to new replies.