• Resolved ek8099

    (@ek8099)


    Hello, may I ask how can I move the tag to follow the sales price instead of before the product name by using hook? thanks a lot!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Well all depends on your current theme. But try the following – open plugin settings page and find ‘Hooks’ option. Set new hook

    Before Title -> woocommerce_single_product_summary -> 20

    Thread Starter ek8099

    (@ek8099)

    Hello I have tried to set this and able to see it before the price and before the title. May I know if it is okay to remove the one behind the title? And also the current one to be behind the price please? Thanks a lot!

    https://drive.google.com/file/d/1aM98XX4jJ-e58cZL8cmL-2VX8X4aU34X/view?usp=sharing

    Thread Starter ek8099

    (@ek8099)

    Hello, or may I ask how can I remove the original hook please, thanks!

    Plugin Author ILLID

    (@mihail-barinov)

    You can remove original hook by using following code snippet

    add_filter( 'awl_labels_hooks', 'my_awl_labels_hooks' );
    function my_awl_labels_hooks( $hooks ) {
        unset( $hooks['before_title']['single'] );
        return $hooks;
    }
    Thread Starter ek8099

    (@ek8099)

    Hello, thanks a lot!! It works and may I ask if there is anyway to show the label behind the sales price? Thanks a lot!

    Plugin Author ILLID

    (@mihail-barinov)

    For Hooks option try to play with choosen hook and its priority. For example for hook woocommerce_single_product_summary set some higher priority value.

    • This reply was modified 3 years, 7 months ago by ILLID.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to move the tag to follow the sales price by hook?’ is closed to new replies.