• Resolved Marius Bezuidenhout

    (@mbezuidenhout)


    When the customer only has a virtual product in their shopping cart the system fails to continue on to the payment stage.

    Error message is:

    “Failed to get shipping rates, please try another address”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Marius Bezuidenhout

    (@mbezuidenhout)

    In TCG_Plugin.php in the function updateShippingPropertiesOnOrder from at line 266 I’ve added the following:

    
    $onlyVirtual = true;
    foreach($order->get_items() as $item) {
        $product = $item->get_product();
        if (!$product->is_virtual()) {
            $onlyVirtual = false;
        }
    }
    if (!$onlyVirtual) {
        $this->checkIfQuoteIsEmpty();
    }
    
    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @mbezuidenhout,

    Thanks for sharing your workaround.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Virtual product shipping error’ is closed to new replies.