Plugin Directory

Changeset 1959608


Ignore:
Timestamp:
10/20/2018 06:48:26 AM (7 years ago)
Author:
devnetvietnam
Message:

#update price order form v1.6.2.3

Location:
rms-interaction/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rms-interaction/trunk/app/ctrs/OrderCtr.php

    r1957987 r1959608  
    3232            foreach ($meta_label as $key => $value) {
    3333                $meta_data[$meta_label[$key]] = $meta_value[$key] ;
     34            }
     35            if(($meta_data==null)&&($meta_label!=null))
     36            {
     37                $meta_data[$meta_label] = $meta_value ;
    3438            }
    3539            $meta_data=json_encode($meta_data);
  • rms-interaction/trunk/assets/js/rms-order-form.js

    r1957638 r1959608  
    143143
    144144        $(function(){
    145 
    146             $('#price').on("change", function(evt) {
    147                    
    148                 var product_price = $("#price");
    149                 var sale_price = $("#saleprice");
    150 
    151                 if ((parseInt(product_price.val()) > 0) && ( parseInt(product_price.val()) < parseInt(sale_price.val()))) {
    152                
    153                     evt.preventDefault();
    154                     $(this).val("");
    155                     alert("Giá bán sản phẩm phải nhỏ hơn hoặc bằng giá sản phẩm");
    156                     $("#price").focus();
    157                 }
    158             });
    159 
    160             $('#saleprice').on("change", function(evt) {
    161                    
    162                 var product_price = $("#price");
    163                 var sale_price = $("#saleprice");
    164 
    165                 if ((parseInt(product_price.val()) > 0) && ( parseInt(product_price.val()) < parseInt(sale_price.val()))) {
    166                
    167                     evt.preventDefault();
    168                     $(this).val("");
    169                     alert("Giá bán sản phẩm phải nhỏ hơn hoặc bằng giá sản phẩm");
    170 
    171                     $("#saleprice").focus();
    172                 }
    173             });
    174145
    175146            var MaxInputs = 100;
  • rms-interaction/trunk/rms.php

    r1959133 r1959608  
    44Plugin URI: https://rms.com.vn
    55Description:
    6 Version: 1.6.2.3
     6Version: 1.6.2.4
    77Author: Referral Marketing Solution (RMS)
    88*/
Note: See TracChangeset for help on using the changeset viewer.