• Resolved cyb2org3

    (@cyb2org3)


    I’m new to WooCommerce, and I’m trying to get the single Product showing, it’s not working..

    in the “single.php” I’ve the following code to check if its an WooCommerce Post or an Blog Post:

    <?php if( $postType == 'post'): ?>
    
        Seems to be a blogpost
        Title: <?php the_title(); ?>
    
    <?php else: ?>
    
        Seems to be from WooCommerce</br>
        Title: <?php the_title(); ?>
        Content: <?php the_content(); ?>
        <?php woocoomerce_content(); ?>
        <?php echo do_shortcode('[woocommerce_cart]'); ?>
    
    <?php endif; ?>

    `

    I try different stuff but was until now not successfully.

    So when I Click on the News Post (at the Bottom.. bellow: “NEUIGKEITEN”) then its loading.. just did put title without format to test.

    When I Click on an Product from the Showing Products directly bellow “testing woocoomerce” then it is loading the single.php too. and showing the text about this is woocommerce, but not the content of the product…

    any ideas?

    • This topic was modified 3 years, 8 months ago by cyb2org3.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Thread Starter cyb2org3

    (@cyb2org3)

    some times… a break is really usefully….

    I just got an email notification about the Reply from you @gabrielfuentes, and after I came back and did read your Post, my Eyes did saw something, which before I didn’t, don’t know why… but now it jumped directly into my Eyes…

    what I did post:

    <?php woocoomerce_content(); ?>
     <?php echo do_shortcode('[woocommerce_cart]'); ?>

    I just changed the “o” with an “m” and voila…

    bang head on table

    thanks!
    cheers!

    • This reply was modified 3 years, 8 months ago by cyb2org3.
    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m so glad to hear it – thanks for sharing! And indeed, breaks can work wonders. And coffee. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product is not showing’ is closed to new replies.