Plugin Directory

Changeset 2293293


Ignore:
Timestamp:
04/28/2020 08:53:14 AM (6 years ago)
Author:
centangle
Message:

Updating after bug fix

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

Legend:

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

    r2159221 r2293293  
    11jQuery(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 = {
    1110            action: "ca_myaction",
    12             'id': $(this).attr('key'),
    13             'quantity': dchk_product_qunatity,
     11            'id': jQuery(this).attr('key'),
     12            'quantity': $qty,
    1413        };
     14        //ajax request
    1515        jQuery.post(ajax_object.ajax_url,
    1616            data
    1717            , function (response) {
    18                 console.log(response);
     18           
    1919                if (response != "not added")
    2020                    document.location.href = response;
    2121            });
     22        }
     23        else{
     24            event.preventDefault();
     25
     26        }
    2227    });
     28
    2329});
  • woo-direct-checkout-lite/trunk/readme.txt

    r2159038 r2293293  
    44Tags: woocommerce, direct checkout, add to cart, buy now, redirects to checkout page, custom button, Custom add to cart
    55Requires at least: 4.7
    6 Tested up to: 5.2.3
    7 Stable tag: 1.0.1
     6Tested up to: 5.4
     7Stable tag: 1.0.2
    88Requires PHP: 5.6.20
    99License: GPLv2 or later
     
    1111
    1212Adds a custom button next to add to cart button.
    13 
     13Simplifies the checkout process to improve your sales rate.
    1414== Description ==
    1515This 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.
     
    20203.Can Change text for 'Add To Cart' button.
    21214.Can show direct checkout button on shop page
    22 
     225.Quick BuyNow functionality.
    2323== Installation ==
    2424==Automatic installation==
     
    4949== Changelog ==
    5050
     511.0.2
     52Fixed issues related to variable product checkout process.
     53
    51541.0.1
    5255Changed the plugin index file to match with the url slug.
  • woo-direct-checkout-lite/trunk/woo-direct-checkout-lite.php

    r2159079 r2293293  
    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.1
     6 * Version:     1.0.2
    77 * Author:      Centangle Interactive
    88 * Author URI:  https://centangle.com/
Note: See TracChangeset for help on using the changeset viewer.