Default cart template not recognised?
-
I’ve developed a custom theme – firstly I make a lot of these, many of which have Woocommerce installed and never had this issue before.
So the /shop page displays all products fine (archive-products.php), click one for more info and it goes to the single product page (single-product.php) Now from here is where I have an issue. If I add an item to the basket and click ‘view basket’, it directs to the ‘Cart’ page which is fine but it isn’t loading the right template. It should be loading /templates/cart/cart.php but seems to be loading my homepage instead (index.php) so all I get is one div column (as my homepage dynamically picks up products) but there is no sign of the woo products at all so for some reason the cart is ignoring the template it should use and is looking at my index.php instead.
The settings are all correct under Woocommerce > Settings, I have the cart set to be the ‘cart’ page and checkout set to be the ”checkout’ page. Note too that also the checkout won’t load, again it uses the index.php template in error.
So in a nutshell, the cart and checkout pages both ignore the default templates and instead load my index.php.
Has anyone seen this before or could work out why this is happening? I accept that it is definitely something to do with my theme as if I switch to the 2015 theme, the cart displays correctly but what could it be?
This site now is pretty much identical to another clients I just finished last week so the woocommerce side on both should be exactly the same yet the previous site didn’t have these issues.
- The topic ‘Default cart template not recognised?’ is closed to new replies.