Show Klarna button/message on products page

This topic has 9 replies, 2 voices, and was last updated 2 weeks ago ago by Luca Rossi

  • Avatar: Mauro Giorgi
    M.
    Participant
    May 14, 2025 at 10:13

    Hi,
    I’ve added “Klarna for WooCommerce” for display On Site Message but i can’t display message on products page… after disable all plugins i’ve find “PRO Elements” that don’t display Klarna/Paypal message and other special block like GPay and Apple Pay.
    How can I do?
    I’ve to add special “PRO Elements” block for display them?
    See private area for details..
    Thanks

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    May 15, 2025 at 07:12

    Dear @M.,

    We hope this message finds you well.

    It appears that there is currently a compatibility issue between the Pro Elements plugin and the Klarna for WooCommerce plugin.

    Have you had the opportunity to reach out to the Klarna Support Team regarding the custom hooks they utilize? It may be possible to incorporate these custom hooks into the Single Product Page in order to display the On-Site Messages as intended.

    For your reference, please see the following discussion thread:
    https://www.8theme.com/topic/show-klarna-button-message-on-checkout-page/#post-443411

    Should you require any further assistance, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: Mauro Giorgi
    M.
    Participant
    May 15, 2025 at 07:20

    Hi, it’s not only Klarna issue but PayPal, GPay and Apple Pay issue… on product page i can’t see all button and widget connected… if disable “Pro Elements” (and lost Elementor block like tab block) i see all buttons (see attachments).

    Avatar: Mauro Giorgi
    M.
    Participant
    May 15, 2025 at 16:42

    I’ve disabled Klarna for error in this demo area, you can see the same problem for PayPal and GPay/Apple Pay buttons…

    Avatar: Justin
    Luca Rossi
    Support staff
    May 19, 2025 at 10:44

    Dear @M.,

    We hope this message finds you well.

    Please accept our apologies for the delayed response due to the weekend.

    We would like to inform you that we have implemented some custom code to enable the display of the PayPal and Google Pay buttons on the single product page.

    At your convenience, could you kindly review the changes and let us know your thoughts?

    Best regards,
    The 8Theme Team

    Avatar: Mauro Giorgi
    M.
    Participant
    May 19, 2025 at 10:49

    Hi,
    thanks… it seem work fine… where I can see custom code in order to copy to production site?
    With this custom code can i continue to update the right theme regularly?
    Thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    May 19, 2025 at 13:43

    Dear @M.,

    Kindly copy and paste the following code into your theme’s functions.php file:

    
    add_shortcode( 'do_hook', function( $atts = array(), $content = null, $tag = '' ) {  
        if ( isset( $atts['hook'] ) ) {  
            do_action( $atts['hook'] );  
        }  
        return;  
    });  
    
    add_filter('woocommerce_paypal_payments_single_product_renderer_hook', 'woocommerce_paypal_payments_single_product_renderer_hook');
    function woocommerce_paypal_payments_single_product_renderer_hook(){
        return 'etheme_woocommerce_single_product_summary';
    }
    

    After that, please insert the following shortcode in the desired location within your single product template builder:

    [do_hook hook="etheme_woocommerce_single_product_summary"]

    For your reference, you may also view the implementation guide at the following link:
    https://tinyurl.com/yl8mzyfb

    Should you have any questions or require further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Mauro Giorgi
    M.
    Participant
    May 19, 2025 at 14:05

    Hi, the code work fine but i don’t see Klarna onsite message… i see it only on checkout page but it’s enabled into product page too.
    Thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    May 19, 2025 at 14:26

    Dear @M.,

    Regarding the issue you are experiencing with the Klarna plugin, we kindly recommend contacting the plugin’s author directly through the following support forum:

    https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/

    Please note that issues related to third-party plugins fall outside the scope of the standard support services we provide.

    We appreciate your understanding.

    Best regards,
    The 8Theme Team

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘Show Klarna button/message on products page’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.