Plugin Directory

Changeset 2388119


Ignore:
Timestamp:
09/25/2020 07:39:39 AM (6 years ago)
Author:
centangle
Message:

adding new update

Location:
woo-direct-checkout-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woo-direct-checkout-lite/trunk/assets/js/direct_checkout.js

    r2293293 r2388119  
    11jQuery(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){
    45        if(!jQuery('.qty').val()){ // getting product quantity from quantity field
    56            $qty=1;
     
    89        }
    910        var data = {
     11           
    1012            action: "ca_myaction",
    1113            'id': jQuery(this).attr('key'),
    1214            'quantity': $qty,
     15           
    1316        };
    1417        //ajax request
  • woo-direct-checkout-lite/trunk/readme.txt

    r2293293 r2388119  
    55Requires at least: 4.7
    66Tested up to: 5.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88Requires PHP: 5.6.20
    99License: GPLv2 or later
     
    4848
    4949== Changelog ==
     501.0.3
     51Fixed issues related to variable product Validation.
    5052
    51531.0.2
  • woo-direct-checkout-lite/trunk/woo-direct-checkout-lite.php

    r2293293 r2388119  
    44 * Plugin URI:  https://wordpress.org/plugins/direct-checkout-for-woocommerce-lite/
    55 * Description: Adds Buy Now button which take you to directly to Checkout page
    6  * Version:     1.0.2
     6 * Version:     1.0.3
    77 * Author:      Centangle Interactive
    88 * Author URI:  https://centangle.com/
     
    7171function ca_myaction()
    7272{
     73
    7374    if (isset($_POST['id'])) {
    74         if (isset($_POST['id'])) {
     75           
     76        if (isset($_POST['id']) ) {
    7577            global $woocommerce;
    7678            $woocommerce->cart->add_to_cart($_POST['id'],$_POST['quantity']);
    77             echo get_permalink(woocommerce_get_page_id('checkout'));
     79            echo get_permalink(wc_get_page_id('checkout'));
    7880        } else {
    7981            echo "not added";
Note: See TracChangeset for help on using the changeset viewer.