Whats referenceBlock name for payment and shipping area on admin order detail page?

I am trying to override payment method area block on admin order detail page but its not working. What is the reference block name for that area?

enter image description here

magento2 – magento 2 custom online shipping method not showing in frontend

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Magento 2.3.5 Checkout Shipping Methods cURL error 7 Exception

Magento Version: 2.3.5p

Hey guys, I am not sure if you have gotten a similar error during checkout:

Internal Error. Details are available in Magento log file. Report ID: webapi-5ed2c83e06062

Looking at the browser console, I am seeing the following:

POST magentowebsite.com/index.php/rest/default/V1/guest-carts/szvNnGiFGE2eeRTxVX7n5N32pnr7kyfX/estimate-shipping-methods 500

I also looked into the /var/log/exception.log and this is what I am seeing:

(2020-05-30 20:55:26) main.CRITICAL: Report ID: webapi-5ed2c83e06062; Message: cURL error 7:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"exception":"(object) (Exception(code: 0): Report ID: webapi-5ed2c83e06062; Message: cURL error 7:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/html/vendor/magento/framework/Webapi/ErrorProcessor.php:208, Magento\Framework\HTTP\AsyncClient\HttpException(code: 0): cURL error 7:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/html/vendor/magento/framework/HTTP/AsyncClient/GuzzleWrapDeferred.php:88, GuzzleHttp\Exception\ConnectException(code: 0): cURL error 7:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200)"}

I’ve tried a few fixes, including changing the Gateway URL for USPS to use https instead of HTTP.

Has anyone faced a similar issue before? Thank you in advance.

magento 1.7 – Setting shipping programmatically when product is added to cart?

Magento 1.7

This is the code which gets called via the checkout_cart_product_add_after event when I add a product to the cart:

function addProductComplete(Varien_Event_Observer $observer) {

        $onepage = Mage::getSingleton('checkout/type_onepage');
        $onepage->saveShippingMethod("flatrate_flatrate");

        // Add address to cart
        $address = $onepage->getQuote()->getShippingAddress();

        if (null == $address->getCountryId())
        {
            $country = Mage::helper('core')->getDefaultCountry(); // use default country
            if ( '' == $country )
            {
                $country = 'DE';
            }
            $address->setCountryId($country);
        }

        if ( null == $address->getPostcode() )
        {
            $address->setPostcode('00000');
        }
        $address->setShippingMethod('flatrate_flatrate');
        $address->setCollectShippingrates(true);

        // save settings
        $onepage->getQuote()->collectTotals()->save();
        $onepage->getQuote()->save();

    }

When I add the first product, nothing happens, only after adding the second product, it works. I guess thats because the first time there is no quote object? How to solve that so it works with the first product as well?

multishipping – Payment options for multi shipping checkout process

We’re in the process of upgrading to Magento 2.3.3. We’re discovering that multi shipping payments are being deprecated because of the EU Payment Service Directive (PSD2).

Does anybody have experience with a payment service that works with Magento 2.3.3 and forward that works for multi shipping? What did it take to make it work?

Any info would be greatly appreciated.

magento2.3 – Free Shipping in magento 2.3.3?

I have enabled free shipping with a minimum order amount of $100. When I add the product to cart with 1 quantity of $45. it works fine as it is not applied.

But It shows When i add the product of $90. However, it should have shown Free shipping when the amount is equal to $100 or above.

How to fix it?

Magento 1.9 – How to Show PopUp when clicked anyone of shipping method radio button?

I have multiple shipping services, customer can able to select any one of them, i need to show a popup if customer select radio button.

enter image description here

magento2.3 – how to create custom shipping label in using UPS in magento 2?

I want to create a shipping label by customer for a standard price using UPS.
Is there any way to do from customer end?
Dose any one did this type of shipping label creation?

I found some reading on ship-station’s Create Shipment Label, But i cannot figure out how to start. Please guide me to do this.

php – quantity based shipping

I want to add shipping rates if the quantity is less than 10

function swwp_wc_shipping_cost_tiers( $cost, $method ) {

// TODO: change the numbers in this array with your desired instance IDs
// see if this shipping instance is one we want to modify cost for
if ( in_array( $method->get_instance_id(), array( 22, 23 ) ) && WC()->cart ) {

    $cart_item_count = WC()->cart->get_cart_contents_count();

    // if we have items that need shipping, round the quantity / 2 to the nearest whole number
    // this produces tiered cost increases for every 2 items
    if ( $cart_item_count  < 10 ) {
        $cost = 20;
    }
    else{
        $cost = 0;
    }
}

return $cost;
}

add_filter( 'woocommerce_shipping_rate_cost', 'swwp_wc_shipping_cost_tiers', 10, 2 );

but it doesn't work for me, any suggestion please?

woocommerce: why is it showing the wrong shipping class?

Hello, I am trying to display a message on my product page based on the shipping class.

My problem is that it always shows the first message, even though the item is not in that shipping class.

What's wrong with my code?

global $product;    
$product = wc_get_product(); 
$shipping_class = $product->get_shipping_class();
if ($shipping_class = "oversized-items") {
    echo 'Oversized Item';
} else if ($shipping_class = "free-shipping") {
    echo 'Free Shipping';
}

Thank you!