Closed matthewborgcarr closed 6 years ago
Hi @matthewborgcarr!
You can see example of using Cart component in code of demo theme.
You can install local copy of demo site and study code of demo theme.
For example: https://github.com/lovata/oc-shopaholic-demo-theme/blob/master/themes/shopaholic-demo/assets/js/main.js#L41
Hi! i want to know how can i add extra 'inputs' to the order. By default the plugin add these:
const cartData = [ { 'offer_id': form.find('input[name="offer_id"]').val(), 'quantity': form.find('input[name="quantity"]').val(), } ];
In fact i want to add the properties selected. For example 'color', 'size', etc. How can i do that? Thanks in advance!! :)
Hi @aarjona1991! You can find an example here.
@kharanenka Thanks a lot!!! Just what i needed!!
Can someone please shed some light on how to add items to the cart please??
The documentation says: $.request('Cart::onAdd', { 'data': data, 'update': {'cart-items': '.cart-item-wrapper'} });
how to call this exactly?
Thanks Matthew