I have been issued to alter the cart form view
Shopping cart form (Commerce Order) on the
site.com/cart page of the Drupal 7's commerce module. This includes adding extra choices such as sizes together with simply updating the quantity of each product.
My attempts so far
I've tried overriding
commerce_cart_block just realise it was
commerce_cart_form that was in charge of the content. Now I've tried a module that's called Commerce Cart View Override and it helps me have a template file called
views-view--commerce-cart-form.tpl.php inside my template to display the content.
However I'm not really sure what I'm supposed to do now. In my mind I would override the table that show the items and the form surrounding it. I echo'ed
get_defined_vars() in the template just to realise that there are quite many variables passed.
What I desire is an elegant solution that allows me to append more forms to modify existing cart session, all in the /cart page, and also be able to have full control of the current cart table.
What is the ideal way for me to customize the /cart page? Am I on the right path, or there some simplier alternatives that I have missed? Personally I want a coded solution and not a database saved one.