Plugin Directory

Changeset 3189145


Ignore:
Timestamp:
11/15/2024 01:45:05 AM (17 months ago)
Author:
inspireui
Message:

version 4.15.7

Location:
mstore-api
Files:
489 added
4 edited

Legend:

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

    r3181851 r3189145  
    212212        // Send the customer invoice email.
    213213        $order = wc_get_order( $data['id'] );
     214
     215        if ($order->get_payment_method() == 'cod') {
     216           if ( $order->get_total() > 0 ) {
     217            // Mark as processing or on-hold (payment won't be taken until delivery).
     218                $order->update_status( apply_filters( 'woocommerce_cod_process_payment_order_status', $order->has_downloadable_item() ? 'on-hold' : 'processing', $order ), __( 'Payment to be made upon delivery.', 'woocommerce' ) );
     219            } else {
     220                $order->payment_complete();
     221            }
     222        }
     223
    214224        if($order->get_payment_method() == 'cod' || $order->has_status( array( 'processing', 'completed' ) )){
    215225            WC()->payment_gateways();
  • mstore-api/trunk/functions/index.php

    r3181851 r3189145  
    637637    /* YITH WooCommerce Badge Management Premium */
    638638    $response = addYITHBadgeToMetaResponse($response, $product);
     639
     640    /* WooCommerce Simple Auction */
     641    if(class_exists( 'WooCommerce_simple_auction' ) && $product->get_type() == 'auction'){
     642        $meta_data = $response->data['meta_data'];
     643        $meta_data[] = new WC_Meta_Data(
     644            array(
     645                'key'   =>'_auction_bid_value',
     646                'value' => $product->bid_value(),
     647            )
     648        );
     649        $response->data['meta_data'] = $meta_data;
     650    }
    639651
    640652    $blackListKeys = ['yoast_head','yoast_head_json','_links'];
  • mstore-api/trunk/mstore-api.php

    r3181851 r3189145  
    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.15.6
     6 * Version: 4.15.7
    77 * Author: FluxBuilder
    88 * Author URI: https://fluxbuilder.com
     
    5050include_once plugin_dir_path(__FILE__) . "controllers/flutter-fib.php";
    5151include_once plugin_dir_path(__FILE__) . "controllers/helpers/firebase-phone-auth-helper.php";
     52include_once plugin_dir_path(__FILE__) . "controllers/flutter-auction.php";
    5253
    5354if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
     
    5758class MstoreCheckOut
    5859{
    59     public $version = '4.15.6';
     60    public $version = '4.15.7';
    6061
    6162    public function __construct()
  • mstore-api/trunk/readme.txt

    r3181851 r3189145  
    44Requires at least: 4.4
    55Tested up to:      6.5.3
    6 Stable tag:        4.15.6
     6Stable tag:        4.15.7
    77License:           GPL-2.0
    88License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    4949
    5050== Changelog ==
     51= 4.15.7 =
     52  * Support WooCommerce Simple Auctions
     53
    5154= 4.15.6 =
    5255  * Fix to load Add-Ons for Dokan
Note: See TracChangeset for help on using the changeset viewer.