Plugin Directory

Changeset 2337243


Ignore:
Timestamp:
07/08/2020 10:40:00 AM (6 years ago)
Author:
rnlab
Message:

feat: update user mobile location

Location:
mobile-builder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile-builder/trunk/api/class-mobile-builder-cart.php

    r2337209 r2337243  
    432432        }
    433433
     434        if( apply_filters( 'wcfmmp_is_allow_checkout_user_location', true ) ) {
     435            if ( !  $request->get_param('wcfmmp_user_location') ) {
     436                WC()->customer->set_props( array( 'wcfmmp_user_location' => sanitize_text_field( $request->get_param('wcfmmp_user_location') ) ) );
     437                WC()->session->set( '_wcfmmp_user_location', sanitize_text_field( $request->get_param('wcfmmp_user_location') ) );
     438            }
     439            if ( ! $request->get_param('wcfmmp_user_location_lat') ) {
     440                WC()->session->set( '_wcfmmp_user_location_lat', sanitize_text_field( $request->get_param('wcfmmp_user_location_lat') ) );
     441            }
     442
     443            if ( ! $request->get_param('wcfmmp_user_location_lng') ) {
     444                WC()->session->set( '_wcfmmp_user_location_lng', sanitize_text_field( $request->get_param('wcfmmp_user_location_lng') ) );
     445            }
     446        }
     447
    434448        WC()->customer->save();
    435449
  • mobile-builder/trunk/mobile-builder.php

    r2337209 r2337243  
    1111 * Plugin URI:        https://doc-oreo.rnlab.io
    1212 * Description:       The most advanced drag & drop app builder. Create multi templates and app controls.
    13  * Version:           1.0.6
     13 * Version:           1.0.7
    1414 * Author:            Rnlab.io
    1515 * Author URI:        https://rnlab.io
Note: See TracChangeset for help on using the changeset viewer.