• Resolved boca jo

    (@boca-jo)


    WooCommerce 9.1.2 with a child theme of Storefront. I want to make a slight mod to the Cart to simply change the column title “Product” to the word “Item.” I’ve successfully modified other template files by copying them from the woocommerce/templates folder into childtheme/woocommerce folder, so I copied woocommerce/templates/cart/cart.php into childtheme/woocommerce/cart/cart.php, just like the other templates I’ve modified, and changed the word “Product” to “Item.” It still says Product in the frontend Cart page.

    The frontend Cart page appears to use the Cart block. Is there a different template file I should be modifying? I’ve looked at the plugin’s directory structure and can’t find it.

    • This topic was modified 4 months, 2 weeks ago by boca jo.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Stef

    (@serafinnyc)

    Hello @boca-jo You’re not seeing the text change when you edit the template because you are using WooCommerce Blocks and you can’t hook it either because of the blocks. Now, if you decide to remove WooCommerce Blocks then you can hook it and or override the template.

    Thread Starter boca jo

    (@boca-jo)

    Bummer. I’m surprised it’s not possible to customize the blocks. It seems like they’re not quite ready for release, yet here they are and they’re the default configuration for new installs like mine.

    Thanks @serafinnyc.

    Stef

    (@serafinnyc)

    Hello @boca-jo you can as I said remove blocks and make your own page template, but you will have to know how to code and hook certain elements.

    Thread Starter boca jo

    (@boca-jo)

    Yes, thanks. Shortcode also works instead of the block because it employs cart.php, but the layout of the cart is quite different with the shortcode.

    Stef

    (@serafinnyc)

    Hello @boca-jo Yes, the shortcode allows you to add hooks to move things around and remove things if need be. It gives you way more flexibility to do pretty much anything.

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