Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1137996
    simonpurdon
    Participant

    Hi,

    I’m trying to overwrite the woocommerce template files that come bundled with x as I don’t like the look of my woocommerce store. I’ve got another theme that I would like to use for my store, but when I try over ride the template files as instructed by woocommerce on this link:https://docs.woocommerce.com/document/template-structure/ nothing changes.

    Please assist how i could add the look of another theme’s store front to x.

    Thanks
    Simon

    #1137998
    simonpurdon
    Participant
    This reply has been marked as private.
    #1138038
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once the child theme is setup, please your woocommerce template overrides in wp-content/themes/x-child/woocommerce/ and then you must add this line in your child theme’s functions.php file.

    
    define( 'X_WOOCOMMERCE_IS_ACTIVE', false );

    Hope this helps.

    #1138044
    simonpurdon
    Participant

    Thanks. That didn’t have the desired effect so I’m going to stick with the x theme woocommerce templates.

    Please could you help with the changing of the background colour to white on both the Shop main page and individual product pages. I can’t seem to find a class to point to that will change only the background colours and not the menus too.

    Thanks,
    Simon

    #1138053
    simonpurdon
    Participant

    Also, why are my products not appearing in columns as I have selected in the woocommerce customization options? The first two are on the same line and the next two aren’t.

    Also, how to remove the sidebar?

    Thanks.

    #1138096
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    .archive.woocommerce .backstretch,
    .single-product .backstretch {
        display:none;
    }
    
    body.archive.woocommerce,
    body.single-product {
        background:#fff;
    }
    
    .archive.woocommerce li.product {
        width: 30.66666%;
    }
    

    Hope that helps.

    #1138152
    simonpurdon
    Participant

    Thanks! How do you find which classes to use? I’m trying to use the inspector on my browser (Chrome) and it doesn’t seem to get any of the classes you’re using above.

    #1138161
    simonpurdon
    Participant

    For example, how do you change the size of the price text? I’m able to change the font, but not the size. Also, how do you center both the product name and price? And how do you remove the line that appears between the two?

    Thanks!

    #1138274
    Joao
    Moderator

    Hi There,

    I personally prefer the Chrome Inspector, please see image attached.

    Add the following code to Appereance Customizer Custom CSS

    .woocommerce li.product .entry-header .price>.amount, .woocommerce li.product .entry-header .price>ins>.amount {
    font-size: 20px;
    }
    .has-post-thumbnail .entry-featured {
        border-bottom: none;
    }

    Hope that helps

    Joao

    #1138322
    simonpurdon
    Participant

    Thanks. You’ll see on the following link: https://www.westpeak.co.za/product/fundi-ride-shirt-copy/ (have to open it when logged in) I have the add to cart button and sizing options, is there a way to make the size and quantity labels appear above the selection boxes as in attached image?

    #1138688
    Rad
    Moderator

    Hi there,

    But your products has no quantity options. Or do you mean options and buttons should be inline?

    Thanks!

    #1138821
    simonpurdon
    Participant

    Hi,

    My products do have size options, but I don’t know why my quantity options are not displaying? Also, I’m unable to change the quantity of the products in the cart page. Do you know why this would be?

    But I want the Size options to appear as in the attached picture above and then the quantity options to be the same, but appear on the same line, exactly as in the above picture.

    #1139138
    Rue Nel
    Moderator

    Hello There,

    Please make sure that you have setup the product variations. I would suggest that you check out the documentation:
    https://docs.woocommerce.com/document/variable-product/

    Please let us know how it goes.

    #1139368
    simonpurdon
    Participant

    I have set up product variations – you can see I have options for size, these wouldn’t be there without me doing product variations. What I don’t have is the quantity option that is standard without variations, it was previously there and it’s dissapeared for some reason. I also want the “Size” and “Qty” options to be styled as in the photo above but can’t seem to get it right!

    #1139744
    Rad
    Moderator

    Hi there,

    I can’t find anything that affects your products quantity in admin, would you mind providing your FTP login credentials as well? I like to see your current templates.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1137996 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>