Viewing 7 replies - 1 through 7 (of 7 total)
  • You could either: save your custom css that you have within the current plugin and place it back once updated, instead of editing the actual css you could use a css overwriter plugin to overwriter WooCommerce’s current design template, or create a functionality plugin (child plugin) to work alongside WooCommerce (not 100% on this last one myself).
    That’s assuming you meant the customization you did within one of the plugins .php files. Because I believe those would be the only changes you would lose amongst an update with the plugin.

    Thread Starter sureshsuthar

    (@sureshsuthar)

    but when i changes shop page structure in woocommerce template then how to make child plugin

    Thread Starter sureshsuthar

    (@sureshsuthar)

    Thanks for replay #Joey Ricketts

    You should never change core code of any theme or plugin (or of WP itself).

    You should create a child theme, which would include a functions.php file where you can write custom functions that use the many built-in WooCommerce actions and filters that allow you to modify functionality. Read through WooCommerce documentation for more info.

    The child theme would also include a style.css file where you can place your custom CSS. A child theme will allow you to update your theme and plugins without losing your customizations.

    You can also copy any WooCommerce template to your theme / child theme and then modify that template as necessary. That way, the template will not be changed when you update WooCommerce. And WooCommerce provides a convenient way to check your template’s validity through its WooCommerce > System Status page.

    Thread Starter sureshsuthar

    (@sureshsuthar)

    Thanks jjbte
    i think i try to make child theme and in child theme make woocommerce folder and modify template design in child theme..
    But wordpress how to get child theme template design?

    Follow the WordPress guidelines for creating a child theme: https://codex.www.ads-software.com/Child_Themes. Then upload the child theme folder / files and make the child theme the active theme.

    After that, to make custom WooCommerce templates, make a woocommerce folder in your child theme. Copy the templates in question from WooCommerce to a corresponding folder in your child theme’s woocommerce folder. Modify as necessary and upload.

    For instance, if you wish to change the template, woocommerce/templates/single-product/product-attributes.php, then copy the template from its origin to your-child-theme/woocommerce/single-product/product-attributes.php. Then modify and upload.

    Make sure to check your WooCommerce System Status whenever you update WooCommerce to check for warnings about any issues with your custom templates.

    How to Update WordPress woocommerce Theme and plugin without Losing Customization

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can update woocommerce plugins without losing my changes?’ is closed to new replies.