Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #884263
    Vladmazurenko
    Participant

    Hello,

    I want to modify the products woocommerce page and implement a grid from The Grid plugin. I am following this tutorial:

    http://i.imgur.com/YjGWGvY.png

    I did what is mentioned i.e modifying archive-product.php file:

    http://i.imgur.com/ITkEJsE.png

    Modifying the original file:

    http://i.imgur.com/rOMUfrL.png

    New file:

    http://i.imgur.com/ta7ggYi.png

    After modifying the file I upload the new file to the same directory plugins/woocommerce/templates

    After all the modifications I still have the previous store format:

    http://i.imgur.com/lrrgPcZ.png (trimey.com/tienda)

    #884264
    Vladmazurenko
    Participant
    This reply has been marked as private.
    #885172
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The custom template file should not be placed in the plugins folder. It will just get overwrriten when there is a WooCommerce update. Since 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 your child theme is ready, you need to create a woocommerce folder in your child theme wp-content/themes/x-child/woocommerce/. That’s is where you need to place your custom template file as pointed out in the tutorial.

    Hope this helps. Kindly let us know.

    #885674
    Vladmazurenko
    Participant

    And How can I save the current webpage and import it into the child theme? I don’t want to loose all the designs and pages.

    Thanks

    #886469
    Christopher
    Moderator

    Hi there,

    If you upload current customized file to another site’s child theme folder it will work.

    But if you’re referring to duplicating your site, please use this plugin https://wordpress.org/plugins/duplicator/

    Hope it helps.

    #891861
    Vladmazurenko
    Participant
    #891872
    Vladmazurenko
    Participant

    I created a woo commerce folder in child theme directory

    http://i.imgur.com/XBZdT86.png

    But the shop still appears with the typical woocommerce template

    http://www.trimey.com/tienda

    #892785
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! For further information on how you can override WooCommerce template files, please check out the documentation here:
    https://docs.woothemes.com/document/template-structure/
    https://www.woothemes.com/2014/08/five-quick-woocommerce-customization-tips/

    Hope this helps.

    #893609
    Vladmazurenko
    Participant

    I have read the next:

    If your theme has a woocommerce.php file, you will be unable to override the woocommerce/archive-product.php custom template in your theme, as woocommerce.php has priority over all other template files. This is intended to prevent display issues.

    X theme contains that file so I don’t have any idea of how can I implement the grid from “The grid” plugin into my website using woo commerce. Please help me with any solution as I want to use that functions with more websites using your theme.

    Thank you.

    #894606
    Rue Nel
    Moderator

    Hello There,

    ‘woocommerce.php’ template which we have added to X theme is used to add basic woocommerce support and prevent WooCommerce layouts from being broken within X. If you want to modify it, perhaps what you need is to modify the woocommerce_content() function which can be found here: https://docs.woothemes.com/wc-apidocs/source-function-woocommerce_content.html#333-386

    As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

    This particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

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