Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #468252

    Hello!

    I was trying to put a left sidebar on every single product page. I tried to follow the suggestions here, which worked for me. However, it affects the Related Product page, so I have to hide the related products pages instead. Is there anyway, you can make the single product page with sidebar in future updates? That will save us some time.

    Is there anyway you can integrate the

    #
    # wrap single product image in an extra div
    #
    
    function avia_add_image_div() {
     echo "<div class='single-product-main-image alpha'>";
    }
    
    function avia_close_image_div() {
     echo "</div>";
    }
    
    #
    # wrap single product summary in an extra div
    #
    
    function avia_add_summary_div() {
     echo "<div class='single-product-summary'>";
    }
    
    function avia_close_summary_div() {
     echo "</div>"; //close out the summary
     get_sidebar();
    }
    
    function avf_product_sidebar_layout_mod($layout){
     if( is_single() )$layout = "sidebar_left";
     return $layout;
    }
    
    add_action('init', 'ava_product_sidebar_mod');
    function ava_product_sidebar_mod() {
     add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2 );
     add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20 );
     add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25 );
     add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 3 );
     add_filter( 'avf_product_sidebar_layout', 'avf_product_sidebar_layout_mod', 5);
    }
    #468525

    Hey dj1arry!

    Thank you for using Enfold.

    That code is no longer working. Please follow the solution provided here: https://kriesi.at/support/topic/single-product-page-sidebar-not-showing-up/#post-331433

    I provided the old thread. Please ignore the link above. Go to this link: https://kriesi.at/support/topic/single-product-page-is-strange-sidebar-appears-under-product/#post-451940

    Follow the code modifications below the post.

    Regards,
    Ismael

    #469209

    Hi Ismael,

    Thanks for replying. I actually followed the codes form the second link you provided. However, it messed up the Related Products. enabled it again so you can see. Please click this link. http://shop.greencastlecabinetry.com/product/almond/

    Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/

    Thank you so much!

    Larry

    #469217

    Hi Ismael,

    For the problem below, I just decided to keep the right sidebar on the right to make it less complicated. But I still want to fix the Related Products. And how do I increase the number of products shown under the Related Products.

    Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/

    Thanks!
    Larry

    #469494

    Hi!

    Please post the login details here. We will implement the right sidebar for you.

    Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/

    Can you please provide a screenshot of this issue?

    Cheers!
    Ismael

    #469495

    Hi Ismael,

    I got the sidebar sorted out. My problem now is moving the related products and upset products under the single products summary. Right now its very messy. Please look on the link below.

    http://shop.greencastlecabinetry.com/product/antique-white/

    Thanks!
    Larry

    #469499

    Login below:
    Thanks!

    #470126

    Hey!

    seems that it is exactly as you wish, because your single product description is first, then I see “You may also like …” etc.
    Could you fix it?

    Best regards,
    Andy

    #470441

    Hey Andy,

    It’s not quite what I need. As you see, instead of displaying 5 images in one row, the last image goes to the next row. I’m also thinking that it’s best to put the “You may also like” and “Related Products” on the main body where the single product is displayed and not under the alternate content at the bottom. Something like on this link http://www.practicalecommerce.com/wp-content/uploads/2014/04/8-Woo-Recommendation.png

    Thanks!
    Larry

    #471370

    Hey!

    Alright. Before we start with the modification, I want to know if you remove the code we suggested above. I look for it in the functions.php file but it’s not there. We need to confirm this because if we put the same function, the site will produce an error and we will not be able to edit the file again without FTP access.

    Cheers!
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.