Plugin Directory

Changeset 3199468


Ignore:
Timestamp:
11/29/2024 02:02:28 PM (16 months ago)
Author:
inspireui
Message:

version 4.16.3

Location:
mstore-api
Files:
490 added
4 edited

Legend:

Unmodified
Added
Removed
  • mstore-api/trunk/controllers/flutter-phonepe.php

    r3197801 r3199468  
    4545    public function callback($request)
    4646    {
    47         if (!class_exists('PPEX_WC_PG_Client')) {
    48             return parent::send_invalid_plugin_error("You need to install PhonePe Payment Solutions plugin to use this api");
    49         }
    5047        $json = file_get_contents('php://input');
    5148        $body = json_decode($json, TRUE);
  • mstore-api/trunk/controllers/flutter-vendor.php

    r3147900 r3199468  
    431431            }
    432432
    433             wp_set_object_terms($post_id, isset($request['product_type']) ? $request['product_type'] : "simple", 'product_type');
     433            if (isset($request['meta_data']) && is_array($request['meta_data'])) {
     434                foreach ($request['meta_data'] as $item) {
     435                    if($item['value'] != null){
     436                        update_post_meta($post_id, $item['key'], $item['value']);
     437                    }
     438                }
     439            }
     440
    434441            $product->save();
    435442            $product = wc_get_product($post_id);
     
    442449                $product->save();
    443450            }
     451
     452            //this function must call after $product->save(), $product is simple, if call $product->save() it will update product type to simple again
     453            wp_set_object_terms($post_id, isset($request['product_type']) ? $request['product_type'] : "simple", 'product_type');
     454
     455            $product = wc_get_product($post_id);
    444456            return $product->get_data();
    445457        } else {
  • mstore-api/trunk/mstore-api.php

    r3197801 r3199468  
    44 * Plugin URI: https://github.com/inspireui/mstore-api
    55 * Description: The MStore API Plugin which is used for the FluxBuilder and FluxStore Mobile App
    6  * Version: 4.16.2
     6 * Version: 4.16.3
    77 * Author: FluxBuilder
    88 * Author URI: https://fluxbuilder.com
     
    6060class MstoreCheckOut
    6161{
    62     public $version = '4.16.2';
     62    public $version = '4.16.3';
    6363
    6464    public function __construct()
  • mstore-api/trunk/readme.txt

    r3197801 r3199468  
    44Requires at least: 4.4
    55Tested up to:      6.5.3
    6 Stable tag:        4.16.2
     6Stable tag:        4.16.3
    77License:           GPL-2.0
    88License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51= 4.16.3 =
     52  * Support to post meta data when create product
     53
    5154= 4.16.2 =
    5255  * Support PhonePe payment
Note: See TracChangeset for help on using the changeset viewer.