I have a Commerce Kickstart 2 site. I know how to create products and variations. I used the Omega Kick Start theme and have implemented my own template files for the entire site. Now I need to theme the shopping basket, starting with the "Add To Cart" button. For the life of me - cannot get it right.
I've already tried the advice from this question - but no luck. For the record, my reference field is setup to render / display as Add to Cart form:
The Shopping cart block from Kickstart is enabled and set to my Content region:
The template file to render my product starts off like this:
<?php
$nodew = entity_metadata_wrapper('node', $node);
/* Manually extract the product ID to get a new wrapper */
$product_id = field_get_items('node', $node, 'field_product')[0]['product_id'];
$productw = entity_metadata_wrapper('commerce_product', $product_id);
?>
<section class="home-hero about-course">
<div class="blurb content">
<h1><?php echo $nodew->title_field->value(); ?></h1>
<p><?php echo $nodew->body->value(); ?> </p>
</div>
</section>
<div class="list-wrapper">
<div class="left">
<?php } $duration=$ nodew->field_duration->value(); if (!empty($duration)) { ?>
<p> Duration -
<?php echo $duration; ?>
</p>
<?php } $assignments=$ nodew->field_assessments->value(); if (!empty($assignments)) { ?>
<p> No of assignments -
<?php echo $assignments; ?>
</p>
<?php } ?>
</div>
</div>
What I would like to do is add/show the default, standard Commerce Kickstart "Add To Cart" button below all these attribute fields, and then hopefully I can use the standard commerce kick start shopping basket system (allowing me to just theme the relevant pages).
Just a side note - if I change the theme back to the Omega Kickstart 7.x-3.4 theme - my products show, and obviously the Add To Cart button as well, so I am fairly sure I did not break anything (uninstalled a module that was needed, or something like that).