Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a fresh install of Wordpress 3.5 and WooCommerce 1.6.6 (WC from now on) and use the default Twenty Twelve theme.

I added a Product to WC and when viewing that product and using the Debug Bar Template Trace plug-in I can see that the template woocommerce/templates/single-product.php is used. However, if I view the Cart page, which was automatically generated by WooCommerce, it uses the twentytwelve/page.php template and not the woocommerce/templates/cart/cart.php template, which I found surprising.

I'm a little confused from this outcome. Isn't the cart.php template supposed to be used for the Cart page? If not, what is that template for, and under which circumstances does it get used by WC?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Comparing the markup generated by page.php when the cart is displayed, it seems that the content is generated by cart.php, similarly to loading a template part, so cart.php is actually used whenever the cart is displayed.

share|improve this answer
    
Correct in one. –  Stephen Jan 11 '13 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.