• Resolved koki1205

    (@koki1205)


    I have overridden a template in the default theme, but the overridden template edits are not reflected.

    ‘plugins/woocommerce/templates/cart/cart.php’ is changed to ‘twentytwentythree/woocommerce/cart/cart.php’.

    Clearing all cache etc. did not reflect this, nor did the edits made to ‘twentytwentythree/woocommerce/cart/cart.php’.

    It would be great if you could tell me if you know the cause etc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Saif

    (@babylon1999)

    Hello @koki1205,

    Clearing all cache etc. did not reflect this, nor did the edits made to ‘twentytwentythree/woocommerce/cart/cart.php’.

    If your cart and checkout pages are block-based, this is expected. To fix it, remove the cart and checkout blocks and replace them with the following shortcodes: [woocommerce_cart] and [woocommerce_checkout].

    Also, you need to override the templates in a child theme, otherwise, your changes will be deleted when you update. You can create one manually or use this plugin.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello koki1205,

    Thank you for contacting WooCommerce support.

    I understand you are trying to override the template in the default theme but the changes are not reflected.

    As suggested by Saif, please check if you are using shortcodes on the Checkout and Cart pages.
    If you are using block-based checkout and cart then changes will not appear as blocks are designed differently.

    Let me know if you have any questions.

    I appreciate Saif’s contribution here.

    Best regards.

    Thread Starter koki1205

    (@koki1205)

    @doublezed2 @babylon1999

    I have removed the block and changed it to a shortcode and the changes are now reflected!

    Thank you!

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @koki1205,

    Glad to hear you resolved the issue as advised! If you have any other questions or need further assistance, feel free to start a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.