• Hi, I had a similar issue in a test version of an e-commerce site I am working on and thought I had found a fix on gasolicious.com, but here’s what happened.
    After a fresh install of wordpress, craftycart theme (theme originally chosen by client a while ago) and wp e-commerce plugin, the category pages that showed all the products in that category were showing the last product’s name as the page title.
    Gasolicious had noticed this bug and provided code that for page.php that worked a little too well. Now product category pages are showing the name of the product category at the top (which is what I wanted), but the first product listed is showing the category title as well and not the product’s name! If you have found a fix for this, please share what worked for you!

Viewing 16 replies (of 16 total)
  • kythin

    (@kythin)

    This bug just hit me after updating to 3.8.9.1 and the ‘just call it but dont output it’ fix didn’t work for me, however I figured out another workaround.

    Basically, the post object itself is plagued with the wrong post_title so using $post->post_title won’t work either. Instead, use this:

    After this bit:
    <?php while (wpsc_have_products()) : wpsc_the_product(); ?>

    add this:
    <?php global $post; ?>

    Then where you want to use the title, use this:
    <?= get_the_title($post->ID) ?>

Viewing 16 replies (of 16 total)
  • The topic ‘WP ecommerce product category title also shows as first product title’ is closed to new replies.