[SOLVED] Help setting up page template for Jigo Shop
Hi all!
I am trying to get the Jigo Shop plugin working with atahualpa (currently testing with ata 3.5.1). It mostly works, but it is displaying my sidebar underneath posts created by the plugin. I found the following instructions on getting Jigo shop to work with themes: http://forum.jigoshop.com/kb/customi...t-for-jigoshop (most helpful) http://forum.jigoshop.com/kb/customi...-with-jigoshop (more technical?) Basically it looks like I have to hook in atahualpas content wrappers to 2 of the plugin functions so that the plugin can use the correct code before and after the_post. However this is a tiny bit over my head as the atahualpa wrappers don't really look like the linked to examples - there are no divs in index.php and I am not sure how much to hook in to the 2 functions. My stabs in the dark so far are just returning various PHP errors. Could anyone suggest what the following 2 functions should contain, where XXX is what should appear before and after the_post respectively? Code:
function mytheme_open_jigoshop_content_wrappers() Many thanks for any suggestions! |
what is the url of your site?
|
This is a product page created by the plugin on my test site, showing the problem http://muffbomail.info/plugin/?product=another-product
|
The issue seems to involves some assumptions the plugin makes that are not always valid. With this in mind, a fix for this issue is most likely going to involve digging into the plugin's code to determine what is needed to be done which is beyond the free support provided here.
|
Thanks for taking the time to consider the issue anyway! Do you have any advice about what assumptions the plugin is making?
I will post the solution when I figure it out (eventually) ;) |
It assumes all themes will be built like twenty eleven. Atahualpa is not. When you put in the code they suggest, Atahualpa builds the left sidebar, then they do. So someone will have to dig into their code to determinw how to change it to not display their version of the side bar. in addition I suspect they are using the same global that the theme uses and changing it's value which messes up the right sidebar (?) and footer.
|
Well here's the first bit - this removes the sidebar added by jigoshop itself. The next step is to figure out exactly what I need to hook in from the atahualpa theme files to have pages created by jigoshop use all of atahualpas content wrappers.
Is index.php the ata file that puts together all of the page elements or should I be looking somewhere else? Code:
function ata_prepare_jigoshop_wrappers() |
Ok, you triggered something in my mind. Jiggo shope is like WP e-Commerce, it is using SESSION's which is messing up the themes variables. So do the following
1) edit functions.php and add the following right BEFORE the last '?>' HTML Code:
function mytheme_prepare_jigoshop_wrappers() HTML Code:
if (!isset($bfa_ata)) HTML Code:
if ((!isset($bfa_ata)) or (defined( "JIGOSHOP_VERSION" )) ) |
Excellent, looks like it is working! The footer thing was the main part of the puzzle, the post displayed after adding that with just a little wrong with the post formatting. I hooked back in the open & close functions as well as your script - so the complete script to add to functions.php is:
Code:
function ata_open_jigoshop_content_wrappers() |
All times are GMT -6. The time now is 12:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.