We use cookies to make your experience better. To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
Ajax Button
A multipurpose Ajax Button for Magento 2.
Easily configurable to perform any click/action tasks in Magento using Ajax calls. The example here shows a simple hello world button and two add two cart buttons, the first using a standard product view and the second using a button to add multiple products to the cart with one click.
GJ AJAXBUTTON DEBUG https://magento2.gaiterjones.com/de/ajaxbutton/index/view/ Array ( [action] => getButton [button_debug] => 1 [button_name] => Fake Views [button_class] => none [button_template] => fakeviews [button_data] => Array ( ) ) Array ( [action] => getData [action_template] => none [action_data] => Array ( ) )
GJ AJAXBUTTON DEBUG https://magento2.gaiterjones.com/de/ajaxbutton/index/view/ Array ( [action] => getButton [button_debug] => 1 [button_name] => Custom Product Add To Cart Button [button_class] => product [button_template] => customproduct [button_data] => Array ( [addtocart] => 1 [productids] => 15 ) ) Array ( [action] => getData [action_template] => customproduct [action_data] => Array ( ) )
GJ AJAXBUTTON DEBUG https://magento2.gaiterjones.com/de/ajaxbutton/index/view/ Array ( [action] => getButton [button_debug] => 1 [button_name] => Multi Product Add To Cart Button [button_class] => product [button_template] => default [button_data] => Array ( ) ) Array ( [action] => getData [action_template] => addproductstocart [action_data] => Array ( [addtocart] => 1 [productids] => 2,3,4,5 ) )
GJ AJAXBUTTON DEBUG https://magento2.gaiterjones.com/de/ajaxbutton/index/view/ Array ( [action] => getButton [button_debug] => 1 [button_name] => Get Your Geo IP Data [button_class] => none [button_template] => default [button_data] => Array ( [silent] => 1 ) ) Array ( [action] => getData [action_template] => getgeoip [action_data] => Array ( ) )