Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter losvincent

    (@losvincent)

    Plugin Author Pablo Pacheco

    (@karzin)

    Hello,
    Sorry for the delay.

    Have you already tried the possible values on the Position on Single option? on Buttons section?

    • This reply was modified 5 years, 8 months ago by Pablo Pacheco.
    Thread Starter losvincent

    (@losvincent)

    @karzin hi,i’ve tried this four option,no the position i want
    how can i customized the position?
    thanks

    Plugin Author Pablo Pacheco

    (@karzin)

    Actually there is a option on the premium version for that.
    But if you want I can try to help you with a custom code in order to specify some other position.

    Just let me know what you prefer ??

    Thread Starter losvincent

    (@losvincent)

    @karzin thanks,i may not try premium version now for my site is small at begain
    i’ll appreciate your custom code help,so how to do this?

    Plugin Author Pablo Pacheco

    (@karzin)

    Ok, no problem.
    So here it is:

    function override_button_position_single( $position ){
       $position = 'the-position-you-want';
       return $position;
    }
    $option_name = Alg_WC_Wish_List_Settings_Buttons::OPTION_DEFAULT_BTN_SINGLE_POSITION;
    add_filter( "option_{$option_name}", 'override_button_position_single' );
    Plugin Author Pablo Pacheco

    (@karzin)

    Hi @losvincent ,
    Did it work for you

    Thread Starter losvincent

    (@losvincent)

    @karzin hi,thanks for your code.i’ve tried $position = ‘add-to-cart’ and =’After add to cart button’,it not works
    i don’t know what should i set in $position = ‘the-position-you-want’;

    Plugin Author Pablo Pacheco

    (@karzin)

    Hello @losvincent ,

    These are some positions I know it could work. Please try all of them and let me know:
    – woocommerce_before_single_product
    – woocommerce_before_single_product_summary
    – woocommerce_single_product_summary
    – woocommerce_after_single_product_summary
    – woocommerce_after_single_product

    Try to change the priority too

    • This reply was modified 5 years, 8 months ago by Pablo Pacheco.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how to change wish button position?’ is closed to new replies.