Jigoshop 1.8 and Suffusion

Nov 182013
 
 Posted by on 18/11/2013 How-To's Tagged with: ,  Add comments

Jigoshop is a great e-commerce plugin which I successfully used for our e-shops. With the help of Suffusion Commerce Pack, Jigoshop is integrated seamlessly in Suffusion. Just install and activate the plugin, then the output of Jigoshop is wrapped right in the markup of Suffusion.

However, there is a problem. If you want to use [sale_products] Jigoshop shortcode will notice that the markup of Sales page is broken and sidebars are displayed below the content. If you don’t display the sales page and use only the pages generated automatically by Jigoshop OR you use NO SIDEBARS template you will not notice any breakage, all pages are rendered as expected in Suffusion.

The problem was detected by an user of Suffusion forum while using Jigoshop 1.8, but my thought is that the problem is older, the same structure of files is present in Jigoshop 1.7.3 (from what I can check because usually I upgrade all themes/plugins to the newer versions ).

Looking into loop-on_sale.php and loop-shop.php (those 2 templates are used to display the same things – products) can see a difference. In the loop-shop file (which is displayed correctly) ob_start(); is called after the line if ( ! isset( $columns ) || ! $columns ) $columns = apply_filters( ‘loop_shop_columns’, 3 ); , but in the loop-on_sale, ob_start(); is called before the similar line.

So, on the loop-on_sale template I moved the call to ob_start() after the “if” line as is showed below and all things start to works as expected.

For protection against further upgrades of Jigoshop which can break again the template, I copied the new file in my child theme folder (here can read more about child themes). You can download the new file from here: Download changed loop-on_sale.php

For not seeing all products on the Sales page when you don’t have any product on sale need to apply the solution provided by Jeff on Jigoshop forum. Can download init.php modified according with Jeff’s directions from here: Download changed init.php and replace init.php from jigoshop/shortcodes folder.

For having themed Jigoshop pages on your Suffusion site see my post about Themed Jigoshop 1.8.

https://drafie-design.nl/jigoshop-1-8-and-suffusion/trackback/Trackback URI:  

Ciprian

Experienced web developer and graphic designer. Former consultant for Suffusion theme and former moderator on Suffusion Support forum. I teach others while learning myself.

Google+ Profile

    Google+ Page

 Leave a Reply

(Your comment will be published. To contact me privately, use the contact form.)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  3 Responses to “Jigoshop 1.8 and Suffusion”

Comments (2) Pingbacks (1)
  1. Thank You, Jeff, for your kind appreciation. Coming from you is a great compliment, you help a lot of people on Jigoshop forum.

    Yes, probably Jigowatt will solve the issue as usual. But I don’t had any information about 1.8.1 before writing my article, so I tried to help people to solve the problem before the update.

    Of course I will update Jigoshop to the new version and I warmly recommend the update for all users.

     
  2. Interesting, and nice catch. I’ll just note that for the next Jigoshop 1.8.1 release to also fix a problem with pagination and a problem with ALL products showing when there are no products actually on sale … Jigoshop will now use the loop-shop.php template and the sale template is removed altogether and that should resolve this issue too.