Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   eCommerce & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=31)
-   -   Sidebar/Footer-problem with Atahualpa and WooCommerce (http://forum.bytesforall.com/showthread.php?t=15624)

owc Oct 11, 2011 07:51 AM

Sidebar/Footer-problem with Atahualpa and WooCommerce
 
I have a problem to show a proper category-view of my WooCommerce-products with Atahualpa. When I switch to category- or tag-view, the right inner sidebar disappears and a "standard" sidebar flows under the main content, the footer is also "minimized" and the place where the sidebar was before is left blank.

So I tried to manage the problem, with using the index.php of ATA to change the woocommerce\templates\product_taxonomy.php from:

PHP Code:

<?php get_header('shop'); ?>

<?php do_action('woocommerce_before_main_content'); // <div id="container"><div id="content" role="main"> ?>

    <?php $term get_term_by'slug'get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); ?>
            
    <h1 class="page-title"><?php echo wptexturize($term->name); ?></h1>
        
    <?php echo wpautop(wptexturize($term->description)); ?>
    
    <?php woocommerce_get_template_part'loop''shop' ); ?>
    
    <?php do_action('woocommerce_pagination'); ?>

<?php do_action('woocommerce_after_main_content'); // </div></div> ?>

<?php do_action('woocommerce_sidebar'); ?>

<?php get_footer('shop'); ?>

to this:

PHP Code:

<?php # error_reporting(-1);
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header('shop');
extract($bfa_ata); 

?>

<?php do_action('woocommerce_before_main_content'); ?>

    <?php $term get_term_by'slug'get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); ?>
            
    <h1 class="page-title"><?php echo wptexturize($term->name); ?></h1>
        
    <?php echo wpautop(wptexturize($term->description)); ?>
    
    <?php woocommerce_get_template_part'loop''shop' ); ?>
    
    <?php do_action('woocommerce_pagination'); ?>

<?php do_action('woocommerce_after_main_content'); ?>

<?php get_footer('shop'); ?>

At least the standard sidebar vanishes, but the footer is still colspan="1" instead of colspan="2".

How do I manage to show the footer in the right proportion? And how to implement the right inner sidebar?

juggledad Oct 11, 2011 08:02 AM

Atahualpa sets a global variable '$cols'. I would guess that WooCommerce is using that same variable and not resetting it to it's existing value. You should contact the plugin author about this.

owc Oct 26, 2011 08:00 AM

I think you are right. :-(

That's how the outputted HTML with Firebug looks like before category-view of WooCommerce:

HTML Code:

<div id="container">
        <table id="layout" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                        <col class="coltwo">
                        <col class="colthree-inner">
                </colgroup>
                <tbody>
                        <tr>
                        [...]
                        <tr id="bodyrow">
                                <td id="middle">
                                [...]
                                <td id="right-inner">
                                [...]
                        </tr>
                        <tr>
                                <td id="footer" colspan="2">
                                [...]
                        </tr>
                </tbody>
        </table>

...and in category-view of WooCommerce I get this:

HTML Code:

<div id="container">
        <table id="layout" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                        <col class="coltwo">
                        <col class="colthree-inner">
                </colgroup>
                <tbody>
                        <tr>
                        [...]
                        <tr id="bodyrow">
                                <td id="middle">
                                [...]                               
                        </tr>
                        <tr>
                                <td id="footer" colspan="1">
                                [...]
                        </tr>
                </tbody>
        </table>

As you can see above, the "right-inner" is missing and the colspan of the "footer" changed from two to one. I also experienced, that some of the widget-areas seem to have changed their position/size.


All times are GMT -6. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.