• Resolved tarawhitie

    (@tarawhitie)


    Hi
    I would like to display the bulk discount table in quickview, I have added these lines to the functions.php file with no luck, the quickview plugin developer added a hook so I can display things in their quickview but I can’t seem to get the discount table to display:
    add_action( ‘yith_wcqv_product_summary’, ‘yith_show_discount_table’, 22 );

    function yith_show_discount_table(){

    //require(“../../plugins/advanced-dynamic-pricing-for-woocommerce/templates/bulk-table.php”);
    //require(“../../plugins/advanced-dynamic-pricing-for-woocommerce/advanced-dynamic-pricing-for-woocommerce.php”);

    echo do_shortcode(“[adp_product_bulk_rules_table]”);
    }
    I am wondering if you could help, as I have been going around in circles haha. The quickview we are using is:
    YITH WooCommerce Quick View Premium
    Thanks in advance.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter tarawhitie

    (@tarawhitie)

    I think I found the code to comment out

    if ( ! $product OR $product->is_type( ‘variable’ ) ) {
    return “”;
    }?
    /wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php
    Does this commenting out effect any thing else?

    Plugin Author algol.plus

    (@algolplus)

    hi

    I made some changes in the plugin, so following code works,
    but it requires beta version , please contact me via helpdesk ?

    thanks, Alex

    add_action('init', function(){
    	add_filter( 'wdp_product_bulk_table_places', function ( $places ) {
    		$places['yith_wcqv_product_summary'] = __( "YITH WooCommerce Quick View", 'yith-wcqv' );
    
    		return $places;
    	} );
    	add_filter( 'wdp_bulk_table_js_init_trigger', function () {
    		return "qv_loader_stop";
    	} );
    });
    • This reply was modified 6 years, 3 months ago by algol.plus.
    Plugin Author algol.plus

    (@algolplus)

    Hello

    Please, update to version 1.5.1

    Thread Starter tarawhitie

    (@tarawhitie)

    Ok thanks, we’re working on the site today, thanks for your help.

    Thread Starter tarawhitie

    (@tarawhitie)

    Hi
    I had the table displaying in the quickview and now it is gone.
    I fixed it before by commenting out

    /*if ( ! $product OR $product->is_type( ‘variable’ ) ) {
    return “”;
    }*/

    In your file
    /wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php
    lines 295, 295, 296

    I updated the plugin which of course removed my commented out and I have again commented it out but now it does not show the table in quickview.

    I have also added the above code

    add_action(‘init’, function(){
    add_filter( ‘wdp_product_bulk_table_places’, function ( $places ) {
    $places[‘yith_wcqv_product_summary’] = __( “YITH WooCommerce Quick View”, ‘yith-wcqv’ );

    return $places;
    } );
    add_filter( ‘wdp_bulk_table_js_init_trigger’, function () {
    return “qv_loader_stop”;
    } );
    });

    To no avail, any suggestions would be greatly appreciated.

    Plugin Author algol.plus

    (@algolplus)

    hi

    After adding this code , visit >Settings and click “Customize” for product table.

    You will see “YITH WooCommerce Quick View” in table positions.

    thanks, Alex

    Thread Starter tarawhitie

    (@tarawhitie)

    Hi
    I’ve added the code to the functions.php file

    add_action(‘init’, function(){
    add_filter( ‘wdp_product_bulk_table_places’, function ( $places ) {
    $places[‘yith_wcqv_product_summary’] = __( “YITH WooCommerce Quick View”, ‘yith-wcqv’ );

    return $places;
    } );
    add_filter( ‘wdp_bulk_table_js_init_trigger’, function () {
    return “qv_loader_stop”;
    } );
    });

    And removed my commented out lines in your wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php file.

    And selected option YITH WooCommerce Quick View in customiser and the table is not showing, we require the table to display in both quickview and single product page. This product has bulk discount assigned to it. Any help is appreciated, cheers in advance.
    https://www.industree.com.au/store/product/legend-zip-safety-boot/

    Plugin Author algol.plus

    (@algolplus)

    hi

    I’m sorry, I misunderstood you ??

    Could you contact me via helpdesk ?
    thanks, Alex

    Plugin Author algol.plus

    (@algolplus)

    Here is updated code. Contact me to get beta

    add_action( 'init', function () {
    	add_filter( 'wdp_product_bulk_table_action', function ( $action ) {
    		$action = is_array( $action ) ? $action : array( $action );
    		$action[] = 'yith_wcqv_product_summary';
    		return $action;
    	}, PHP_INT_MAX );
    	add_filter( 'wdp_bulk_table_js_init_trigger', function () {
    		return "qv_loader_stop";
    	} );
    } );
    • This reply was modified 6 years, 3 months ago by algol.plus.
    Thread Starter tarawhitie

    (@tarawhitie)

    Hi
    I have added plugin pro version and added the above code and there is no table in the quickview, I’m contacting your to get beta.

    Plugin Author algol.plus

    (@algolplus)

    hi

    I already replied to ticket 2287 on Friday.
    please, check it https://algolplus.freshdesk.com/helpdesk/tickets/2287
    thanks, Alex

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bulk Discount Table Showing in Quickview’ is closed to new replies.