Plugin Directory

Changeset 3414480


Ignore:
Timestamp:
12/08/2025 03:16:24 PM (3 months ago)
Author:
rermis
Message:

v2.1.5 = * Google rating preview improvement, fix stripos null bug.

Location:
wc-ship-est/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-ship-est/trunk/readme.txt

    r3400068 r3414480  
    55License URI: http://www.gnu.org/licenses/gpl-3.0.html
    66Requires at least: 6.6
    7 Tested up to: 6.8
    8 Stable tag: 2.1.3
     7Tested up to: 6.9
     8Stable tag: 2.1.5
    99
    1010Add a Delivery Estimate or Shipping Method Description to the WooCommerce Cart with a simple, fast and lightweight plugin.
     
    4646
    4747== Changelog ==
     48= 2.1.5 = * Google rating preview improvement, fix stripos null bug.
    4849= 2.1.3 = * Extend compatibility for displaying product estimate, fix Google rating preview, add AdWords conversion reporting option.
    4950= 2.1.0 = * Support for product tags
  • wc-ship-est/trunk/wse_functions.php

    r3400068 r3414480  
    77Author URI: https://richardlerma.com/contact/
    88Requires Plugins: woocommerce
    9 Version: 2.1.3
     9Version: 2.1.5
    1010Text Domain: wc-ship-est
    1111Copyright: (c) 2019-2025 rldd.net - All Rights Reserved
     
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1414WC requires at least: 9.0
    15 WC tested up to: 10.2
     15WC tested up to: 10.3
    1616*/
    1717
    18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.3';
     18global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.5';
    1919$wse_version_type='GPL';
    2020$wse_pro_version=get_option('wse_pro_version');
     
    5858        $cart_path=parse_url($cart_url,PHP_URL_PATH);
    5959        $current_path=parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
    60         if(stripos($current_path,$cart_path)!==false) return true;
     60        if($current_path&&stripos($current_path,$cart_path)!==false) return true;
    6161      }
    6262    }
     
    766766
    767767            <tr class='options'>
    768               <td nowrap style='vertical-align:text-top'>Google Reviews Badge<br></td>
     768              <td nowrap style='vertical-align:text-top'>Google Store<br></td>
    769769              <td>
    770770                <?php wse_rvw_badge(1);?>
    771771                <input type='hidden' name='wse_rvw_badge' value=<?php if(!empty($wse_rvw_badge)) echo 1; else echo 0;?>>
    772                 <input type='checkbox' <?php if(!empty($wse_rvw_badge)) echo 'checked';?> onclick="wse_toggle_est(this.nextElementSibling.nextElementSibling,this.checked);wse_checkbox(this.previousElementSibling,this.checked);"> Display Google Customer Reviews Badge (in footer)
    773                 <div><br><span class="dashicons dashicons-info-outline"></span> To qualify, Google requires at least <a href='https://support.google.com/merchants/answer/7105655?hl=en' target='_blank'>100 Customer Reviews</a> in a particular country during the past year.</div>
     772                <input type='checkbox' <?php if(!empty($wse_rvw_badge)) echo 'checked';?> onclick="wse_toggle_est(this.nextElementSibling.nextElementSibling,this.checked);wse_checkbox(this.previousElementSibling,this.checked);"> Display Google Store Rating
     773                <div><br><span class="dashicons dashicons-info-outline"></span> This feature will add the  <a href='https://support.google.com/merchants/answer/7105655?hl=en' target='_blank'>store widget code</a> in the site footer.</div>
    774774                <div <?php if(empty($wse_rvw_badge)) echo "style='display:none'";?>>
    775775                  <input type='text' name='wse_merchant_id2' placeholder='Google Merchant ID' value="<?php if(isset($merchant_id)) echo $merchant_id; ?>"><br>
    776776                  <select name='wse_rvw_badge_loc'>
    777                     <option value='' selected disabled>Badge Location
     777                    <option value='' selected disabled>Display Location
    778778                    <option value='BOTTOM_RIGHT' <?php if($wse_rvw_badge_loc=='BOTTOM_RIGHT') echo 'selected';?>>Bottom Right
    779779                    <option value='BOTTOM_LEFT' <?php if($wse_rvw_badge_loc=='BOTTOM_LEFT') echo 'selected';?>>Bottom Left
     
    952952              <td>
    953953                <span class="dashicons dashicons-info-outline"></span> Product Page Estimates are displayed above the add to cart button and configured on the Methods tab.
    954                   <div style="width:11em;float:right;padding:1em;background:#e4e4e4;color:#2871b1;">* Products that use variations will use the main product ship estimate until a variation is added to the cart.</div><br><br>
     954                  <div style="width:11em;float:right;padding:1em;background:#e4e4e4;color:#2871b1;">* Products with variations will use a combined estimate until a variation is added to the cart.</div><br><br>
    955955                  <div style='margin:0 1.5em'>
    956956                    <input type='hidden' name='wse_prd_dsp_title' value=<?php if($prd_dsp_title>=0) echo 1; else echo -1;?>>
     
    16921692    echo "
    16931693    <style>#g_rating_view{display:inline;float:right;}#g_rating_view #___ratingbadge_0{position:relative!important;margin:0!important}</style>
    1694     <div id='g_rating_view'>Badge Preview<br></div>
     1694    <div id='g_rating_view'>Rating Preview<br></div>
    16951695    <script>
    16961696    (function(){
Note: See TracChangeset for help on using the changeset viewer.