eCommerce Product page not integrating with theme

Permalink
I am fairly new to Concrete5. I have built a custom theme, and installed eCommerce. Everything was fine until I visited a product page, and saw that it's not taking any CSS. The top edit bar is missing, and all the content areas are visible as code on the page. None of the CSS is taking effect. It's strange, because the eCommerce Product Pages are the only problem. All other pages are fine.

I should note that I installed this before I actually started building a proper theme. I had initially started just going off the default theme, and editing within Concrete, and the page was fine. Then I started over, and created a new Default.php file from scratch, and that's when this problem started.

 
mesuva replied on at Permalink Reply
mesuva
I would check that in your default.php file, you have included the header element. You should have at the top of default.php:

<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>


The same goes for view.php, which is used by 'single pages' in ecommerce such as the steps in the checkout. Without your theme including the header, it won't include the required css and javascript.

You also need to make sure your theme includes the footer element in the same way as well.