Plugin Directory

Changeset 1844438


Ignore:
Timestamp:
03/21/2018 09:07:23 PM (8 years ago)
Author:
reality66
Message:

Update to version 2.2.0

Location:
cart66-cloud/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cart66-cloud/trunk/cart66-cloud.php

    r1823612 r1844438  
    44Plugin URI: http://cart66.com
    55Description: Secure Ecommerce For WordPress.
    6 Version: 2.1.1
     6Version: 2.2.0
    77Author: Reality66
    88Author URI: http://www.reality66.com
  • cart66-cloud/trunk/includes/class-cart66-cloud.php

    r1823612 r1844438  
    2525        define( 'CC_URL',  WP_PLUGIN_URL . '/' . $plugin_dir . '/' );
    2626        define( 'CC_TEMPLATE_DEBUG_MODE', false );
    27         define( 'CC_VERSION_NUMBER', '2.1.1' );
     27        define( 'CC_VERSION_NUMBER', '2.2.0' );
    2828    }
    2929
  • cart66-cloud/trunk/includes/class-cc-shortcode-manager.php

    r1815908 r1844438  
    1717        add_shortcode( 'cc_product_review_form',  array( 'CC_Shortcode_Manager', 'cc_product_review_form' ) );
    1818        add_shortcode( 'cc_product_gallery',      array( 'CC_Shortcode_Manager',  'cc_product_gallery') );
     19        add_shortcode( 'add_to_cart',             array( 'CC_Shortcode_Manager',  'cc_product') );
    1920    }
    2021
     
    3132        $display_price    = isset($args['price']) ? $args['price'] : 'true';
    3233        $display_mode     = isset($args['display']) ? $args['display'] : '';
     34
     35        if (isset($args['item'])) {
     36            $product_sku = $args['item'];
     37        }
    3338
    3439        CC_Log::write( "cc_product shortcode: subdomain: $subdomain :: product loader: $product_loader" );
  • cart66-cloud/trunk/readme.txt

    r1823612 r1844438  
    66Requires PHP: 5.4
    77Tested up to: 4.9
    8 Stable tag: 2.1.1
     8Stable tag: 2.2.0
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    139139== Changelog ==
    140140
     141= 2.2.0 =
     142- New: Backwards compatibility for the Cart66 Pro [add_to_cart] shortcodes
     143- Fix: Fixed an issue with invalid product forms producing hard errors on some web hosts (e.g. Flywheel)
     144
    141145= 2.1.1 =
    142146
  • cart66-cloud/trunk/resources/js/add-to-cart.js

    r1815908 r1844438  
    2323      },
    2424      error: function(response) {
    25         if(response.status == 500) {
    26           form.append('<div class="ajax_add_to_cart_message"><span class="alert alert-error ajax_button_notice"><a href="#" title="close" class="cc_close_message"><i class="icon-remove"></i></a><span class="cc_ajax_message">The product was not added to your cart. Please try again.</span></span></div>');
     25        if(response.status == 500 || response.status == 503) {
     26          form.append('<div class="ajax_add_to_cart_message"><span class="alert alert-error ajax_button_notice"><a href="#" title="close" class="cc_close_message"><i class="icon-remove"></i></a><span class="cc_ajax_message">There was a problem adding this item to your cart. Please try again or contact the merchant.</span></span></div>');
    2727        }
    2828        else {
Note: See TracChangeset for help on using the changeset viewer.