Changeset 2293293
- Timestamp:
- 04/28/2020 08:53:14 AM (6 years ago)
- Location:
- woo-direct-checkout-lite/trunk
- Files:
-
- 3 edited
-
assets/js/direct_checkout.js (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
woo-direct-checkout-lite.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-direct-checkout-lite/trunk/assets/js/direct_checkout.js
r2159221 r2293293 1 1 jQuery(document).ready(function ($) { 2 jQuery(".chk_out").click(function (e) { 3 var dchk_product_qunatity; 4 e.preventDefault(); 5 if (!jQuery('.qty').val()) { 6 dchk_product_qunatity = 1; 7 } else { 8 dchk_product_qunatity = jQuery('.qty').val(); 9 } 10 var data = { 2 jQuery(".chk_out").on('click', function(event) { 3 if(jQuery('input.variation_id').val()!=0){ 4 if(!jQuery('.qty').val()){ // getting product quantity from quantity field 5 $qty=1; 6 }else{ 7 $qty=jQuery('.qty').val(); 8 } 9 var data = { 11 10 action: "ca_myaction", 12 'id': $(this).attr('key'),13 'quantity': dchk_product_qunatity,11 'id': jQuery(this).attr('key'), 12 'quantity': $qty, 14 13 }; 14 //ajax request 15 15 jQuery.post(ajax_object.ajax_url, 16 16 data 17 17 , function (response) { 18 console.log(response); 18 19 19 if (response != "not added") 20 20 document.location.href = response; 21 21 }); 22 } 23 else{ 24 event.preventDefault(); 25 26 } 22 27 }); 28 23 29 }); -
woo-direct-checkout-lite/trunk/readme.txt
r2159038 r2293293 4 4 Tags: woocommerce, direct checkout, add to cart, buy now, redirects to checkout page, custom button, Custom add to cart 5 5 Requires at least: 4.7 6 Tested up to: 5. 2.37 Stable tag: 1.0. 16 Tested up to: 5.4 7 Stable tag: 1.0.2 8 8 Requires PHP: 5.6.20 9 9 License: GPLv2 or later … … 11 11 12 12 Adds a custom button next to add to cart button. 13 13 Simplifies the checkout process to improve your sales rate. 14 14 == Description == 15 15 This simple Plugins adds new button next to add to cart button to enhance functionality. this button add current product to cart and auto directs to check out page. … … 20 20 3.Can Change text for 'Add To Cart' button. 21 21 4.Can show direct checkout button on shop page 22 22 5.Quick BuyNow functionality. 23 23 == Installation == 24 24 ==Automatic installation== … … 49 49 == Changelog == 50 50 51 1.0.2 52 Fixed issues related to variable product checkout process. 53 51 54 1.0.1 52 55 Changed the plugin index file to match with the url slug. -
woo-direct-checkout-lite/trunk/woo-direct-checkout-lite.php
r2159079 r2293293 4 4 * Plugin URI: https://wordpress.org/plugins/direct-checkout-for-woocommerce-lite/ 5 5 * Description: Adds Buy Now button which take you to directly to Checkout page 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Centangle Interactive 8 8 * Author URI: https://centangle.com/
Note: See TracChangeset
for help on using the changeset viewer.