Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #440232
Product page Sidebar
Closed

Comments

  • Anjou started the conversation

    Hi,

    I don't see where is the option to add a sidebar to a single product ?

    Thanks for your help !

  •  410
    Qode replied

    Hi Anjou,

    Please note, this option isn\'t available in Bridge theme. However, here is how you can enable it on your own. Open bridge/woocommerce/content-single-product.php and replace content with code below:

    <?php
    /**
    * The template for displaying product content in the single-product.php template
    *
    * Override this template by copying it to yourtheme/woocommerce/content-single-product.php
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */
    if ( ! defined( \'ABSPATH\' ) ) exit; // Exit if accessed directly
    ?>
    <?php
    /**
    * woocommerce_before_single_product hook
    *
    * @hooked wc_print_notices - 10
    */
    do_action( \'woocommerce_before_single_product\' );
    if ( post_password_required() ) {
    echo get_the_password_form();
    return;
    }
    ?>
    <div class=\"two_columns_75_25 background_color_sidebar grid2 clearfix\">
    <div class=\"column1\">
    <div class=\"column_inner\">
    <div itemscope itemtype=\"<?php echo woocommerce_get_product_schema(); ?>\" id=\"product-<?php the_ID(); ?>\" <?php post_class(); ?>>
    <?php
    /**
    * woocommerce_before_single_product_summary hook
    *
    * @hooked woocommerce_show_product_sale_flash - 10
    * @hooked woocommerce_show_product_images - 20
    */
    do_action( \'woocommerce_before_single_product_summary\' );
    ?>
    <div class=\"summary entry-summary\">
    <div class=\"clearfix summary-inner\">
    <?php
    /**
    * woocommerce_single_product_summary hook
    *
    * @hooked woocommerce_template_single_title - 5
    * @hooked woocommerce_template_single_price - 10
    * @hooked woocommerce_template_single_excerpt - 20
    * @hooked woocommerce_template_single_add_to_cart - 30
    * @hooked woocommerce_template_single_meta - 40
    * @hooked woocommerce_template_single_sharing - 50
    */
    do_action( \'woocommerce_single_product_summary\' );
    ?>
    </div><!-- .summary -->
    <?php
    /**
    * woocommerce_after_single_product_summary hook
    *
    * @hooked woocommerce_output_product_data_tabs - 10
    * @hooked woocommerce_output_related_products - 20
    */
    do_action( \'woocommerce_after_single_product_summary\' );
    ?>
    <meta itemprop=\"url\" content=\"<?php the_permalink(); ?>\" />
    </div><!-- #product-<?php the_ID(); ?> -->
    </div>
    </div>
    <div class=\"column2\"><?php get_sidebar();?></div>
    </div>
    <?php do_action( \'woocommerce_after_single_product\' ); ?>

    This is 1/4 right sidebar, if you want 1/3 then just instead of two_columns_75_25 add two_columns_66_33.

    Best regards

    Qode


    Explore our collection of 300+ premium WordPress themes on the Qode Interactive website.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.

  • Den replied

    If I do this, the product-gallery is gone.
    In the console I get this error:
    carouFredSel: Set a width for the items!

    jquery-error...

  •  581
    Qode replied

    Hi,

    We tested provided code again, and it is working correctly http://screencast.com/t/9zr97uqI5lE, and console is clear of errors. Note that this has nothing to do with template modification, and it can be causes of false code implementation or some other theme modification or scripts.

    Best Regards,

    Qode


    Explore our collection of 300+ premium WordPress themes on the Qode Interactive website.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.