Profiles

  • Member Since: September 11th, 2019
  • GitHub: volmohammed1
  • Find me on:
  • Posted a reply to i have error if i create order from api can you help me, on the site WordPress.org Forums:
    public function create_shipping_for_order_and_cart($order, $cart)    {           global $fs_package_id;        // Check if the cart is null and log an error if it is.        if (is_null($cart)) {            error_log('Cart is null. Cannot proceed with creating shipping for order.');            return; // Exit the function if the cart is null        }        // Get shipping methods from the order        $order_shipping_methods = $order->get_shipping_methods();        // Get shipping packages from the cart        $packages = $cart->get_shipping_packages();        $current_package = -1;        foreach ($order_shipping_methods as $shipping_id => $shipping_method) {            $current_package++;            // Get the package ID based on the current package index            $package_id = array_keys($packages)[$current_package];            $fs_package_id = $package_id;            // Retrieve the shipping method details            $fs_method = $this->get_fs_method_from_order_shipping_method($shipping_method);            if (!empty($fs_method['method_integration'])) {                $integration = $fs_method['method_integration'];                // Check if the shipment integration exists and is supported by the order type                if (fs_shipment_integration_exists($integration) && $this->is_order_type_supported_by_integration($order->get_type(), $integration)) {                    // Create a shipment for the order and the shipping method                    $shipment = $this->create_shipment_for_order_and_fs_shipping_method($order, $fs_method, $shipping_id, $shipping_method, $packages, $package_id);                    /**                    * Do actions when shipment is created via checkout.                    *                    * @param \WPDesk_Flexible_Shipping_Shipment $shipment Created shipment.                    */                    do_action('flexible_shipping_checkout_shipment_created', $shipment);                }            }        }    } i change this function and working successfully

  • Created a topic, i have error if i create order from api can you help me, on the site WordPress.org Forums:
    "error": {"type": 1,"message": "Uncaught Error: Call t…

  • Posted a reply to file upload validate, on the site WordPress.org Forums:
    i see custom validation but this working in inputs but i'm working in file upload…

  • Created a topic, file upload validate, on the site WordPress.org Forums:
    In a form made by Contact Form 7 I allow the download …

  • Posted a reply to woocommerce reports issua, on the site WordPress.org Forums:
    i sent problem to wpml and support me to solve problem in analytics->Categories in side…

  • Created a topic, woocommerce reports issua, on the site WordPress.org Forums:
    Hello Dear,i have problem in woocommerce reports i'm u…

  • Created a topic, Payment Unsuccessful, on the site WordPress.org Forums:
    Your transaction was unsuccessful. Please check your d…

  • Created a topic, Rest API, on the site WordPress.org Forums:
    Can you send me rest api link to get product with quan…

  • Committed [2944219] to Plugins SVN:
    WordPress 6.3 readme

  • Committed [2906877] to Plugins SVN:
    Initial release

  • Posted a reply to Instagram feed: “something went wrong”, on the site WordPress.org Forums:
    I have same problem