Tagged: x
-
AuthorPosts
-
April 15, 2016 at 8:33 am #884263
VladmazurenkoParticipantHello,
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)
April 15, 2016 at 8:34 am #884264
VladmazurenkoParticipantThis reply has been marked as private.April 15, 2016 at 9:45 pm #885172
Rue NelModeratorHello 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.
April 16, 2016 at 7:55 am #885674
VladmazurenkoParticipantAnd 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
April 17, 2016 at 1:26 am #886469
ChristopherModeratorHi 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.
April 20, 2016 at 9:25 am #891861
VladmazurenkoParticipantApril 20, 2016 at 9:29 am #891872
VladmazurenkoParticipantI 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
April 20, 2016 at 8:58 pm #892785
Rue NelModeratorHello 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.
April 21, 2016 at 8:26 am #893609
VladmazurenkoParticipantI 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.
April 21, 2016 at 8:57 pm #894606
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-884263 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
