ThemeShaper Forums » Thematic


WP e-Commerce 3.8 - anyone noticing a clash with Thematic?

(6 posts)
  • Started 10 years ago by jonnycj
  • Latest reply from robYardman
  • This topic is not resolved
  1. jonnycj

    I have recently upgraded the WP e-Commerce plugin on my Thematic Wordpress install to version 3.8.
    I now have lost the the sidebar (primary and secondary aside) and the footer (subsidiary asides) from the main shop front page (wpsc-products_page.php) - see link here:
    link 1

    All asides and subsidiaries appear fine on other WP e-Commerce pages:
    link 2

    So is there some conflict specific to Thematic and this main WP e-Commerce page ? Anyone else noticed this ? Or is it just my child theme ?

    Any thoughts greatly appreciated as usual

    Posted 10 years ago #
  2. middlesister

    There has been several people reporting the missing sidebar issue before and this has to do with WP e-commerce and the way they have coded their templates. I have seen threads at their forum reporting the issue too, as well as various hacky workarounds with limited success.

    Luckily, I just recently saw that someone had dug out the reason for the conflict and reported it at Thematic's googlecode as a bug, though there is nothing wrong with Thematic. He/she had contacted the WP e-commerce team but they were not inclined to fix it on their side.

    The solution: remove a WP e-commerce function from a hook and reattach it with a lower priority so that it will fire after the sidebars has been set up. Add this in your child theme's functions.php file:

    function switch_ecommerce_actions() {
    	remove_action('template_redirect', 'wpsc_all_products_on_page');
    	add_action('template_redirect', 'wpsc_all_products_on_page', 20);

    This is because "wpsc_all_products_on_page" does an "exit" at the end, thereby stopping any execution after it. By giving this function a lesser priority, we make sure Thematic can set up it's sidebars first.

    If you are a member of their forum, maybe you could post the solution there as well? I think there are many people that would benefit from this.

    Posted 9 years ago #
  3. This is better than the one I saw because it won't be effected by their updates, since it's in my functions.php.

    Brilliant, thank you.

    Posted 9 years ago #
  4. Hi,

    Middlesister's approach is the correct one for 0.9.7 and earlier.

    In the upcoming 0.9.8 Thematic has removed use of template_redirect in favor of wp_head to resolve this problem internally.
    So that will not be necessary in 0.9.8 and greater.


    Posted 9 years ago #
  5. I had the same exact problem with the sidebar disappearing and this worked perfectly on my fledgling e-commerce site, thank you so much!

    Posted 9 years ago #
  6. I'm currently promoting Shopp to clients because of the same issues I had with WP e-commerce. I built a website on WP e-commerce a few years back with no problems ( ) but since then I've had a couple issues.

    My latest Thematic/Shopp website:

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.