I need to move the order type buttons to the top of the menu
so I need to move cartBox/control and add it to localBox/default
when I do so I cannot get the buttons to work, If I also move over the event handlers, the buttons work but then the cart doesn't
I mainly want to do this for the mobile view as people are finding it difficult to place orders. also can it be changed that when the order is pickup the customer location is no longer needed.
Thanks to anyone that can help!
This is the code taken from cartBox/control and placed it at the top of localBox/default; on PC the buttons show in the correct place but don't work, on mobile they are not visible.
class="<?= (!$pageIsCart) ? 'affix-cart d-none d-sm-block' : ''; ?>"
data-change-order-type-handler="<?= $changeOrderTypeEventHandler; ?>"
<div id="cart-box" class="module-box">
<div class="panel panel-cart">
<?= partial('cartBox/control'); ?>