Changeset 2388119
- Timestamp:
- 09/25/2020 07:39:39 AM (6 years ago)
- Location:
- woo-direct-checkout-lite/trunk
- Files:
-
- 3 edited
-
assets/js/direct_checkout.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-direct-checkout-lite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-direct-checkout-lite/trunk/assets/js/direct_checkout.js
r2293293 r2388119 1 1 jQuery(document).ready(function ($) { 2 jQuery(".chk_out").on('click', function(event) { 3 if(jQuery('input.variation_id').val()!=0){ 2 jQuery(".chk_out").on('click', function(event) { 3 4 if(jQuery('input.variation_id').val()!=0 && jQuery('.chk_out ').is('.wc-variation-is-unavailable') != true){ 4 5 if(!jQuery('.qty').val()){ // getting product quantity from quantity field 5 6 $qty=1; … … 8 9 } 9 10 var data = { 11 10 12 action: "ca_myaction", 11 13 'id': jQuery(this).attr('key'), 12 14 'quantity': $qty, 15 13 16 }; 14 17 //ajax request -
woo-direct-checkout-lite/trunk/readme.txt
r2293293 r2388119 5 5 Requires at least: 4.7 6 6 Tested up to: 5.4 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Requires PHP: 5.6.20 9 9 License: GPLv2 or later … … 48 48 49 49 == Changelog == 50 1.0.3 51 Fixed issues related to variable product Validation. 50 52 51 53 1.0.2 -
woo-direct-checkout-lite/trunk/woo-direct-checkout-lite.php
r2293293 r2388119 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. 26 * Version: 1.0.3 7 7 * Author: Centangle Interactive 8 8 * Author URI: https://centangle.com/ … … 71 71 function ca_myaction() 72 72 { 73 73 74 if (isset($_POST['id'])) { 74 if (isset($_POST['id'])) { 75 76 if (isset($_POST['id']) ) { 75 77 global $woocommerce; 76 78 $woocommerce->cart->add_to_cart($_POST['id'],$_POST['quantity']); 77 echo get_permalink(w oocommerce_get_page_id('checkout'));79 echo get_permalink(wc_get_page_id('checkout')); 78 80 } else { 79 81 echo "not added";
Note: See TracChangeset
for help on using the changeset viewer.