Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kevinin2d

    (@kevinin2d)

    I turns out that wapf-product-totals class appears when I inspect element but nothing isn’t showing up.

    And I also get .js error https://ibb.co/92CrRzq

    • This reply was modified 3 years, 4 months ago by kevinin2d.
    Plugin Author Maarten

    (@maartenbelmans)

    Hi @kevinin2d

    Can you send a link to that page so I can test?

    Thread Starter kevinin2d

    (@kevinin2d)

    Hi @maartenbelmans

    Unfortunately I haven’t uploaded the site yet and I am running it on localhost, sorry.

    But I think I have figured out what part of the code causes the problem but I am not really sure yet why.

    I have these lines of code in my functions.php file taken from Woocommerce documentation

    function customtheme_add_woocommerce_support()
    {
    add_theme_support( ‘woocommerce’ );
    }

    add_action( ‘after_setup_theme’, ‘customtheme_add_woocommerce_support’ );`

    after removing these the error dissapears and total price shows up. But I have duplicated content on my product page.

    Plugin Author Maarten

    (@maartenbelmans)

    This code snippet signals that the theme developer has added WooCommerce support, but does nothing else. So I’m a bit confused why removing this would generate duplicate content. Sounds like you have some other issue going on :).

    Thread Starter kevinin2d

    (@kevinin2d)

    Thank you for all the quick responses @maartenbelmans

    I think I figured out the problem with my custom theme. My header.php file has <body> tag and I replaced it with <body <?php body_class() ?>>. This made the total price part work. I can’t really explain why does such small thing have this big effect on this part of the plugin but I am glad it’s working now.

    I also took a look at the mini cart part of the plugin you added in the demo(we talked about this in my other post I made today). I think it looks nice.

    If this project I am working on right now goes further I am definitely planning to go pro with this plugin.

    Best wishes,
    Kevin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to get product total price on product page on custom theme?’ is closed to new replies.