minicart icon indicating copy to clipboard operation
minicart copied to clipboard

Does not pass weight or environment from Javascript Buttons

Open JakePT opened this issue 10 years ago • 1 comments

When used with the PayPal Javascript buttons (https://github.com/paypal/JavaScriptButtons) the cart does not pass on the data-weight and data-host attributes. You can see this by looking at the hidden inputs in the cart popup. Price, shipping, weight units, merchant, and number all go through, but weight and host (eg. Sandbox) do not.

Other attributes may not work, but these are the ones that I've found.

JakePT avatar Jul 09 '14 07:07 JakePT

Here is an implementation of PayPal Minicart were shipping costs are based on item weight. Shipping calculation happens instantly and is shown as an item in the main Cart.

Any feedback is welcome.

http://fabriziotappero.github.io/minicart-plus/index.html

fabriziotappero avatar Apr 12 '15 20:04 fabriziotappero