Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Not ovveride cart template #21

Open
r-chrzan opened this issue Jan 13, 2020 · 6 comments
Open

Not ovveride cart template #21

r-chrzan opened this issue Jan 13, 2020 · 6 comments

Comments

@r-chrzan
Copy link

Hi,
i have a problem with ovveride cart template I tried structure like /woocommerce/template/cart/cart.blade.php and /woocommerce/cart/cart.blade.php but still not work. Is displayed as page default form the theme.

Any ideas?

@benfavre
Copy link

benfavre commented Jan 14, 2020 via email

@JAMM-daw
Copy link

JAMM-daw commented Feb 7, 2020

Hello, I have same problem. I just have /resources/woocommerce/cart.blade.php but override is not working.

@JAMM-daw
Copy link

JAMM-daw commented Feb 7, 2020

Also when I replicate the structure /cart/cart.blade.php I get 408 request timeout

@mtx-z
Copy link

mtx-z commented Feb 7, 2020

I'm able to override the cart template using wp-content/themes/my-theme/resources/views/woocommerce/cart/cart.blade.php.

@r-chrzan
Copy link
Author

r-chrzan commented Feb 7, 2020

Everything works with using default editor with shortcode like [cart] in specyfic page. In my case in folder views/woocommerce/cart/cart.blade.php and works perfectly.

@jackrobson
Copy link

jackrobson commented Mar 30, 2021

I had the same problem.

The significant detail is knowing the woocommerce cart page is meant to use the default page template.

Your page.blade.php template must echo the content...

@php the_content() @endphp

Which then allows the [woocommerce_cart] shortcode to be shown...

The shortcode itself relies on the templates in the woocommerce/cart folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants