Edit Xstore woocommerce templates - by wolfatadfilm

This topic has 6 replies, 3 voices, and was last updated 4 years, 6 months ago ago by Olga Barlow

  • Avatar: wolfatadfilm
    wolfatadfilm
    Participant
    October 17, 2019 at 16:01

    Hi, I want to change some of the templates used by xstore, like the product category and single product display templates, beyond what I can do with the customizer.
    Is there a way to load the templates into WP Bakery for editing? Or do you recommend another plugin to edit them?
    And on a similar note, I understand I can edit the way products are displayed in the grids (on shop and category pages) using WP Bakery’s GridBuilder. However this seems to have very strange effects, and the examples given (look book and portfolio grid) are very low on information and functionality, so not a good place to start editing. Similar to the question above, is there a way to load the original XStore templates into that grid builder, to start editing from that near perfect base?

    5 Answers
    Avatar: John Holden
    John Holden
    Support staff
    October 18, 2019 at 05:17

    Hi,

    It requires knowledge of PHP coding. You can consult here first: https://docs.woocommerce.com/document/template-structure/

    And please make changes in php files via child theme https://xstore.helpscoutdocs.com/article/32-child-theme https://codex.wordpress.org/Child_Themes

    Regards,
    Hung PD

    Avatar: wolfatadfilm
    wolfatadfilm
    Participant
    October 18, 2019 at 05:28

    Thank you for your pointers, Hung, PHP is not a problem, I program my own web apps in PHP. It’s only the -let’s say- less than clean way in which everything is stored in WordPress that made me hesitate so far — speaking about the post-meta database table for instance. 😉

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 18, 2019 at 11:18

    Hello,

    There is a number of plugins that allows you to change templates, for example https://codecanyon.net/search/single%20product%20page%20builder?utf8=✓
    But we did not test them with our theme, so we can’t guarantee full compatibility.

    Regards

    Avatar: wolfatadfilm
    wolfatadfilm
    Participant
    October 18, 2019 at 23:40

    Thanks Olga, indeed: I tested two of them. The one you mention seems to work nicely.
    the other one, WC Builder Pro, which looks like it has more options, unfortunately didn’t work well for me. The problem with these plugins is, though, that they bring their own set of templates, but don’t allow you to edit the default templates that woocommerce and/or xstore normally use.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 21, 2019 at 14:07

    Hello,

    Yes, because editing of the default WooCommerce template or theme layouts is not possible without editing the php files (xstore/woocomerce/single-product-content.php, single-product-content-fixed.php etc or child theme functions.php using WooCommerce visual hooks https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/ ) depending on things that you want to change.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.