Plugin Directory

Changeset 2262365


Ignore:
Timestamp:
03/17/2020 11:05:51 AM (6 years ago)
Author:
ecalypse
Message:

Fixed price with VAT in ecalypse_rental_fleet shortcode.

Location:
ecalypse-rental-starter/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ecalypse-rental-starter/trunk/class.ecalypse-rental-theme.php

    r1783457 r2262365  
    213213            include(self::get_file_template_path('booking-javascript.php'));
    214214        }
     215       
     216        $showvat = get_option('ecalypse_rental_show_vat');
     217        if ((float) $vehicle->price_from > 0){
     218            $vehicle->prices['price'] = $vehicle->price_from;
     219        } elseif ((float) $vehicle->prices['vat'] > 0 && $showvat && $showvat == 'yes') {
     220            $vehicle->prices['price'] = $vehicle->prices['price_with_tax'];
     221        }
    215222
    216223        wp_register_style('jquery-ui.css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css', array());
  • ecalypse-rental-starter/trunk/ecalypse-rental-starter.php

    r2238173 r2262365  
    77  Plugin URI: http://ecalypse.com/wordpressecalypse-rental/
    88  Description: Ecalypse Rental Starter enables complete rental management of cars, bikes and other equipment.
    9   Version: 4.0.19
     9  Version: 4.0.20
    1010  Author: Ecalypse s.r.o.
    1111  Author URI: http://ecalypse.com/
     
    7474} else {
    7575
    76     define('ECALYPSERENTALSTARTER_VERSION', '4.0.19');
     76    define('ECALYPSERENTALSTARTER_VERSION', '4.0.20');
    7777    define('ECALYPSERENTALSTARTER__MINIMUM_WP_VERSION', '3.9');
    7878    define('ECALYPSERENTALSTARTER__PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.