Plugin Directory

Changeset 3322168


Ignore:
Timestamp:
07/04/2025 08:54:07 AM (9 months ago)
Author:
zeevou
Message:

resolved promotion issue

Location:
zeevou/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zeevou/trunk/js/search.js

    r3309608 r3322168  
    14731473    if (rp_key == 0) {
    14741474
    1475         jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-price-text').html('<div class="zeevou-pbc-promotion-discount" ></div><div style="text-decoration: line-through; text-decoration-color: red; width:fit-content; float:left; margin-left: 10px;">' + currency + rp_value.total_price_without_promotion.toFixed(2) + '</div><div style="float:left; margin-left: 10px;">'+ currency + rp_value.total_price.toFixed(2));
     1475        jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-price-text').html('<div class="zeevou-pbc-promotion-discount" ></div><div class="zeevou-price-with-line-through" style="text-decoration: line-through; text-decoration-color: red; width:fit-content; float:left; margin-left: 10px;">' + currency + rp_value.total_price_without_promotion.toFixed(2) + '</div><div style="float:left; margin-left: 10px;">'+ currency + rp_value.total_price.toFixed(2));
    14761476        jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-price-select').prop('disabled', 'disabled');
    14771477        jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-tooltip-text').text(rp_value.name);
    14781478       
    1479         if(value.zv_accomodation_price > 0){
    1480 
    1481             if(typeof value.zv_accomodation_price !== 'undefined' && value.zv_accomodation_price > 0){
    1482                 promotion_discount = Math.round((value.zv_promotion_price / (value.zv_accomodation_before_tax_price + value.zv_promotion_price))*100);
     1479        if(value.zv_accomodation_price > 0) {
     1480
     1481            if (typeof value.zv_accomodation_price !== 'undefined' && value.zv_accomodation_price > 0) {
     1482                promotion_discount = Math.round((value.zv_promotion_price / (value.zv_accomodation_before_tax_price + value.zv_promotion_price)) * 100);
    14831483            }
    1484             jQuery('.zeevou-pbc-promotion-discount').text(promotion_discount+"%");
    1485             jQuery('.zeevou-pbc-promotion-discount').show();
     1484            jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-pbc-promotion-discount').text(promotion_discount + "%");
     1485        }
     1486        if(promotion_discount > 0) {
     1487            jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-pbc-promotion-discount').show();
     1488            jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-price-with-line-through').show();
    14861489        }else{
    1487             jQuery('.zeevou-pbc-promotion-discount').hide();
     1490            jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-pbc-promotion-discount').hide();
     1491            jQuery('#zeevou-unittype-item-' + value.id + ' .zeevou-price-with-line-through').hide();
    14881492        }
    14891493
     
    19831987
    19841988
    1985                             if(value.zv_promotion_price > 0){
    1986                                 if(typeof value.zv_accomodation_price !== 'undefined' && value.zv_accomodation_price > 0){
    1987                                     promotion_discount = Math.round((value.zv_promotion_price / (value.zv_accomodation_before_tax_price + value.zv_promotion_price))*100);
     1989                            if(value.zv_promotion_price > 0) {
     1990                                if (typeof value.zv_accomodation_price !== 'undefined' && value.zv_accomodation_price > 0) {
     1991                                    promotion_discount = Math.round((value.zv_promotion_price / (value.zv_accomodation_before_tax_price + value.zv_promotion_price)) * 100);
     1992                                }else {
     1993                                    promotion_discount = 0;
    19881994                                }
    1989                                 jQuery('.zeevou-pbc-promotion-discount').text(promotion_discount+"%");
    1990                                 jQuery('.zeevou-pbc-promotion-discount').show();
     1995                                jQuery('#zeevou-reserve-modal' + ' .zeevou-pbc-promotion-discount').text(promotion_discount + "%");
     1996                            }else {
     1997                                promotion_discount = 0;
     1998                            }
     1999
     2000                            if(promotion_discount > 0) {
     2001                                jQuery('#zeevou-reserve-modal' + ' .zeevou-pbc-promotion-discount').show();
    19912002                            }else{
    1992                                 jQuery('.zeevou-pbc-promotion-discount').hide();
     2003                                jQuery('#zeevou-reserve-modal' + ' .zeevou-pbc-promotion-discount').hide();
    19932004                            }
    19942005
  • zeevou/trunk/readme.txt

    r3309608 r3322168  
    44Requires at least: 3.1.0
    55Tested up to: 6.8
    6 Stable tag: 0.7.82
     6Stable tag: 0.7.83
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • zeevou/trunk/zeevou.php

    r3309608 r3322168  
    55 * Plugin URI: https://zeevou.com
    66 * Description: Zeevou is a global community that helps you grow your hospitality business through cutting-edge automation, industry-leading training, and world-class support.
    7  * Version: 0.7.82
    8  * Stable tag: 0.7.82
     7 * Version: 0.7.83
     8 * Stable tag: 0.7.83
    99 * Tags: Booking Website Engine, Airbnb, Booking.com, Expedia, Agoda, VRBO, HomeAway, Hotel, iCal, Zeevou, Short Term Accommodation, Serviced Apartment, Hospitality, Vacation Rentals, Property Management System, Property Management Software (PMS), Central Reservation System (CRS), Holiday Homes, Channel Manager, Guesthouse, Booking System, Free Booking Engine, Direct Booking Website
    1010 * Requires at least: 3.1.0
     
    7777//============================================================================
    7878if (!defined('ZEEVOU_PLUGIN_VERSION'))
    79     define('ZEEVOU_PLUGIN_VERSION', '0.7.82');
     79    define('ZEEVOU_PLUGIN_VERSION', '0.7.83');
    8080
    8181function zeevou_plugin_check_version() {
Note: See TracChangeset for help on using the changeset viewer.