• Mike80

    (@miguel80)


    Hi there.

    I was wondering if in the badge creation process is used any kind of shortcode that can be used on other pages?

    The badges work fine on my store page and I use them for several purposes but if I enter on any single product page that has a badge, the page will not contain any badge or reference to the badge content…is this suposed to happen? It’s a kind of a deal breaker for the client that is viewing the product because there’s a loss of information…if the product is on promotion or if it has a discount, that info won’t show up!

    If there’s no shortcode involved in the badge creation process, is there any way I can duplicate it on the single product page?

    Thx in advance! (and by the way, great work, keep up the excellent work guys!)

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

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

    (@yithemes)

    Hi @miguel80
    thanks for your reporting.

    Probably missing some hooks in single product page, Please, could you tell me which theme are you using ?

    Thread Starter Mike80

    (@miguel80)

    Hi @yithemes.

    I’m using the OceanWP theme on my online shop.

    I really hope you can help!

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    please, could you try to use this code?

    if ( !function_exists( 'yith_wcbm_oceanwp_fix_badge_container_start' ) && !function_exists( 'yith_wcbm_oceanwp_fix_badge_container_end' ) ) {
        add_action( 'ocean_before_archive_product_image', 'yith_wcbm_oceanwp_fix_badge_container_start', 9 );
        add_action( 'ocean_after_archive_product_image', 'yith_wcbm_oceanwp_fix_badge_container_end', 20 );
        function yith_wcbm_oceanwp_fix_badge_container_start() {
            do_action( 'yith_wcbm_theme_badge_container_start' );
        }
    
        function yith_wcbm_oceanwp_fix_badge_container_end() {
            do_action( 'yith_wcbm_theme_badge_container_end' );
        }
    }

    Copy and past it at the end of functions.php file of oceanWP. Let us if works

    Thread Starter Mike80

    (@miguel80)

    Hi guys,

    Sorry for the late response but I took some days off and returned to work just a few days ago.

    I tried what you suggested and inserted the code at the end of the functions.php file but it didn’t worked…my badges only still appear on the general products page, if I open an individual product page, the badges just wont show up…

    Any ideas? It’s just a shame having a visitor opening a product page and knowing he’s gonna miss the info showed in the badges…it even can cause some misunderstandings due to the fact that most of the times it’s a discount related information…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using badges also in single product pages’ is closed to new replies.