• Resolved tommyb81

    (@tommyb81)


    Hello there,

    Great plugin!!

    I have a new div set up in the cart where ideally i would love the free gift option to appear and not as a pop up – this is what i have:

    ———————-

    add_filter( ‘the_content’, ‘woocommerce_cart_contents’ );

    function woocommerce_cart_contents ( $content ) {

    if ( is_cart() ) {

    $content .= ‘
    <div class=”free-gift”>

    FREE GIFT BOX</div>

    ‘ . “
    “;

    } // End IF Statement

    return $content;

    } // End woocommerce_cart_contents()

    ——————

    is there anyway to make the free gist option to show in the ‘free-gift’ div?

    Many thanks for your help,

    Tom

    https://ww.wp.xz.cn/plugins/woocommerce-multiple-free-gift/

Viewing 1 replies (of 1 total)
  • Plugin Author Ankit Pokhrel

    (@ankitpokhrel)

    Hi @tommyb81,

    This is not directly possible at the moment. In order to achieve this you need to change core files. The popup is displayed from file WFG_Frontend.class.php.

    Regards,
    Ankit

Viewing 1 replies (of 1 total)

The topic ‘move free gift div’ is closed to new replies.