Move Add to Cart Button in eCommerce Add-On

Permalink
With the eCommerce add-on, how can I move the add to cart button from the bottom of the page to the top, or between the product name and description?

Thank you.

View Replies:
Rajma replied on at Permalink Reply
Rajma
Did you ever resolve this issue? I've been trying for a while now to accomplish this myself. Thank you.
rainmaker replied on at Permalink Reply
rainmaker
What I've done in the past is modify two files:

packages/core_commerce/elements/product/display/properties.php
packages/core_commerce/elements/product/display.php

In the properties.php, there is a line that calls the getProductName() function. Copy it and place it in the display.php. Find the cart button code in display.php and move it to right below the getProductName() (or where ever you want to place it).

NOTE: This will make the Product Name hard coded and you can't control it from the window if you want to show it or not.

Hope that helps! Good luck! :)