jquery-smartcart icon indicating copy to clipboard operation
jquery-smartcart copied to clipboard

how to open cart in modal view?

Open s4miii opened this issue 3 years ago • 0 comments

thank you so much because of your great job.

I changed jquery.smartCart.js file

this.cart_element.addClass('modal fade panel panel-default sc-cart sc-theme-' + this.options.theme); and in index page I call it via button, <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#smartcart">Open Modal</button> test

but as you see it's not nice may I ask you give me a tip and tell me how to change it completely to modal view ?

And my second question is, imagine you want to pick up three colors at the same time

So I changed input type to checkbox instead of radio button, but if you check for example three checkboxes, it just add one product, and if you check one by one it works but at the same time it's not add three products in cart

Any suggestion ?

thank you again

s4miii avatar Apr 19 '21 11:04 s4miii