• lemiucide

    (@lemiucide)


    Hi!

    I was wondering if it’s possible to have a duplicate of the wapo-total-order. (because sometimes the’re many options and the price is not visible enough). Would it be possible to have this div also below the product title? Thanks a lot for your response

    Eva

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    By default, the plugin doesn’t have this feature. You’ll need a customization in order to duplicate the price after the title.

    Please, try to add the following code in the functions.php of your active theme:

    if ( ! function_exists( 'yith_wapo_after_updated_prices' ) ) {
    function yith_wapo_after_updated_prices(){
    wp_add_inline_script(
    'yith_wapo_front',
    "
    jQuery( function($){

    $(document).on( 'yith_wapo_product_price_updated', function( ev, total ){
    $('.yith_wapo_after_title_total').remove();
    $( 'h1.product_title' ).after( '<div class=\"yith_wapo_after_title_total\" >' +$('#wapo-total-price-table').html() + '</div>' );
    });

    } );
    "
    );
    }
    add_action( 'wp_enqueue_scripts', 'yith_wapo_after_updated_prices', 15 );
    }

    Probably you’ll need some CSS rules in order to adjust the style.

    Please, try it and let us know.

    Have a good day.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.