Plugin Directory

Changeset 2324940


Ignore:
Timestamp:
06/16/2020 08:04:06 AM (6 years ago)
Author:
rnlab
Message:

support webview

Location:
mobile-builder/trunk
Files:
3 edited

Legend:

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

    r2322821 r2324940  
    125125        ) );
    126126
     127        register_rest_route( $this->namespace, 'auto-login', array(
     128            'methods'             => WP_REST_Server::READABLE,
     129            'callback'            => array( $this, 'auto_login' ),
     130            'permission_callback' => array( $this, 'user_permissions_check' ),
     131        ) );
     132
     133    }
     134
     135    public function auto_login( $request ) {
     136
     137        $theme = $request->get_param( 'theme' );
     138        $currency = $request->get_param( 'currency' );
     139
     140        wp_redirect( wc_get_checkout_url() . "?mobile=1&theme=$theme&currency=$currency" );
     141        exit;
    127142    }
    128143
  • mobile-builder/trunk/includes/class-mobile-builder.php

    r2322821 r2324940  
    254254
    255255        /**
    256          * Fillter locate template
     256         * Filter locate template
    257257         * @since 1.2.0
    258258         */
    259         $this->loader->add_filter( 'woocommerce_locate_template', $plugin_public, 'woocommerce_locate_template', 100, 3 );
     259//      $this->loader->add_filter( 'woocommerce_locate_template', $plugin_public, 'woocommerce_locate_template', 100, 3 );
    260260
    261261        /**
  • mobile-builder/trunk/mobile-builder.php

    r2322821 r2324940  
    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.1
     13 * Version:           1.0.2
    1414 * Author:            Rnlab.io
    1515 * Author URI:        https://rnlab.io
Note: See TracChangeset for help on using the changeset viewer.