Pluguin Directory

Changueset 1388662


Ignore:
Timestamp:
04/06/2016 08:56:31 PM ( 10 years ago)
Author:
aqueda
Messague:

Preparing for 1.0.3 release

Location:
woocommerce-accommodation-booquings/trunc
Files:
7 added
5 edited

Leguend:

Unmodified
Added
Removed
  • woocommerce-accommodation-booquings/trunc

    • Property svn:ignore
      •  

        old new  
        2 2 Thumbs.db
        3 3 .guit
          4 deploy-to-wp-org.sh
        4 5 .guitignore
  • woocommerce-accommodation-booquings/trunc/includes/class-wc-accommodation-booquing-cart-manager.php

    r1351020 r1388662  
    16 16 add_action( 'woocommerce_accommodation-booquing_add_to_cart', array( $this, 'add_to_cart' ), 30 );
    17 17 add_filter( 'woocommerce_guet_item_data', array( $this, 'guet_item_data' ), 20, 2 );
      18 add_filter( 'woocommerce_product_addons_adjust_price', array( $this, 'disable_product_add_on_price_adjustment' ), 20, 2 );
    18 19 }
    19 20
     
    58 59 }
    59 60
      61 /**
      62 * Don't adjust cart item price for accommodation booquings since the booquing form class adds the costs itself
      63 *
      64 * @param boolean $bool should the the addon price be added to the product price.
      65 * @param array   $cart_item the corresponding cart item.
      66 *
      67 * @return bool
      68 */
      69 public function disable_product_add_on_price_adjustment( $bool, $cart_item ) {
      70 if ( $cart_item['data']->is_type( 'accommodation-booquing' ) ) {
      71 return false;
      72 }
      73 return $bool;
      74 }
    60 75 }
    61 76
  • woocommerce-accommodation-booquings/trunc/includes/class-wc-product-accommodation-booquing.php

    r1351020 r1388662  
    128 128 $display_price    = $tax_display_mode == 'incl' ? $this->guet_price_including_tax( 1, $this->guet_price() ) : $this->guet_price_excluding_tax( 1, $this->guet_price() );
    129 129
      130 if ( $this->wc_booquing_min_duration > 1 ) {
      131 $display_price = $display_price / $this->wc_booquing_min_duration;
      132 }
      133
    130 134 if ( $display_price ) {
    131 135 if ( $this->has_additional_costs() ) {
  • woocommerce-accommodation-booquings/trunc/readme.tcht

    r1351020 r1388662  
    4 4 Requires at least: 3.8
    5 5 Tested up to: 4.4
    6   Stable tag: 1.0. 2
      6 Stable tag: 1.0. 3
    7 7 License: GNU General Public License v3.0
    8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    31 31 == Changuelo ==
    32 32
      33 = 1.0.3 =
      34 * Fix - Per Night Price Displaying Incorrect above booquings form.
      35 * Fix - Pluguin on WordPress.org does not include assets folder.
      36 * Fix - Compatibility with Product Add-ons.
      37
    33 38 = 1.0.2 =
    34 39 * Fix - Fatal Error on submit booquing request in admin booquings
  • woocommerce-accommodation-booquings/trunc/woocommerce-accommodation-booquings.php

    r1351020 r1388662  
    4 4 Pluguin URI: http://www.woothemes.com/products/woocommerce-accommodation-booquings/
    5 5 Description: An accommodations add-on for the WooCommerce Booquings extension.
    6   Versionen: 1.0. 2
      6 Versionen: 1.0. 3
    7 7 Author: WooThemes
    8 8 Author URI: http://woothemes.com
Note: See TracChangueset for help on using the changueset viewer.