• Hello
    It seems that request a quote button is displayed on latest position, after metas. Is there anyway to show it directly after quantity and let all metas after the button ?
    thx !

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello
    the plugin uses the standard woocommerce hook woocommerce_single_product_summary with a priority of 35, so the actual position in your case it probably depends on your theme templates.
    You should check your theme woocommerce template and see how the hook is managed
    and try with a code like this in your theme functions.php

    remove_action(‘woocommerce_single_product_summary’, array(YITH_YWRAQ_Frontend(), ‘add_button_single_page’), 35);
    add_action(‘woocommerce_single_product_summary’, array(YITH_YWRAQ_Frontend(), ‘add_button_single_page’), 25);

    changing the 25 value to one that can work in your theme

    Have a nice day

    Thread Starter tonnick0033

    (@tonnick0033)

    I’m using oceanwp, but when I try to save I have this error :

    Uncaught Error: Call to undefined function YITH_YWRAQ_Frontend() in wp-content/themes/vipamat/functions.php:26
    Stack trace:
    #0 wp-settings.php(497): include()
    #1 wp-config.php(91): require_once(‘/…’)
    #2 wp-load.php(37): require_once(‘/…’)
    #3 wp-admin/admin.php(34): require_once(‘/…’)
    #4 wp-admin/theme-editor.php(10): require_once(‘/…’)
    #5 {main}
    thrown

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    I’m sorry. Use this code instead:

    if ( class_exists( 'YITH_YWRAQ_Frontend' ) ) {
    	remove_action( 'woocommerce_single_product_summary', array( YITH_YWRAQ_Frontend(), 'add_button_single_page' ), 35 );
    	add_action( 'woocommerce_single_product_summary', array( YITH_YWRAQ_Frontend(), 'add_button_single_page' ), 25 );
    }

    Let us know.

    Thread Starter tonnick0033

    (@tonnick0033)

    I even set 15 instead of 25 but no change, button is still after tag/category metas

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    Please, contact Ocean WP. Maybe the action “woocommerce_single_product_summary” isn’t used.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘display button before metas’ is closed to new replies.