checkout – Magento ver. 2.2.4 default billing & shipping address not selecting while place an order

Need some help on the below scenario.

#1. Created New customer in the Magento 2.2.4 CE

#2. Did not provided billing & shipping addresses in the customer dashboard

#3. While placing an order provided shipping address & checked the billing & shipping address as same

#4. After place an order default address & sipping address should be checked.

How to achieve. The same steps followed in the 2.3.x versions its working fine.
but in 2.2.4 CE its not selecting. Can any one help me please

Please refer attached screenshot

enter image description here

e commerce – How to manage shipping to multiple addresses during checkout

We are allowing shipping to multiple addresses during checkout for guest customers. The steps are a lot simpler for an existing user since we can pull addresses from their account for them to choose.

However, guest customers have to do the following for every address:

  1. Input address
  2. Choose product(s) to ship
  3. Choose shipping method

What are some good examples you have seen in the past? What are some considerations to look out for?

magento2 – Shipping methods controlled by post codes

I use Magento 2.3.4 and I have 3 shipping methods that are running at the same time but I want them to only display one at a time.

The entire shipping system runs off a set of post codes. for the sake of clarification, these are the post codes:

IV1 1AA,

IV1 1AD,

IV1 1AX,

IV1 1BA,

IV1 1DA,

Secondly, the shipping system runs off a minimum order amount of $1.

Below are the present settings for the 3 shipping methods

1. Table Rate

This runs off a set of post codes and only displays when the available post code is inserted. This works great. no concerns here.

2. Flat Rate

This runs off a minimum order amount of $1 but we want it to display based on the above post codes. In the absence of the above post codes, it shouldn’t display

3. Free Shipping.

This runs off a minimum order amount of $1 but we want it to display based on the above post codes. In the absence of the above post codes, it shouldn’t display.

I tried to use CART RULES but didn’t work out great.

My Request is this… I want an extension that can manage the display of each of the above 3 shipping methods 1 at a time and not all 3 to display at the same time

I need to know of any premium extension that can handle the 3 options above or any method in Magento platform I can use to get it done.

magento 1.9 – No Shipping quotes being returned – receiving “Access Denied”

The UPS Shipping Method suddenly stopped working yesterday. Upon enabling debugging for the service, it returns:

    [result] => <HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>

You don't have permission to access "http&#58;&#47;&#47;www&#46;ups&#46;com&#47;using&#47;services&#47;rave&#47;qcostcgi&#46;cgi&#63;" on this server.<P>
Reference&#32;&#35;18&#46;44bc7768&#46;1610719663&#46;4729d456
</BODY>
</HTML>

I know it’s likely to be a local configuration issue, but also wondering if the UPS endpoint was removed or changed recently?

I’m not sure how best to proceed. Any pointers would be greatly appreciated.

magento2 – Magento 2.4 – Express Checkout – Shipping Address Error

A fresh install Magento 2.4.x + theme, but having some issue related to express checkout, as seen from below picture on red-box area.

enter image description here

The form has missing some elements, like firstname, lastname etc.
When I compare things around, it should have it. Do I miss some setup?

Also, when I check on console, I’ve seen some javascript error that I’m not familiar with, as below

Uncaught ReferenceError: Unable to process binding "foreach: function(){return { data:elems,as:'element'} }"
Message: Unable to process binding "if: function(){return element.visible() }"
Message: Unable to process binding "ifnot: function(){return (element.input_type =='checkbox'|| element.input_type =='radio') }"
Message: Unable to process binding "template: function(){return $parent.fieldTemplate }"
Message: Unable to process binding "afterRender: function(){return oscAddress.fieldAfterRender(element.dataScope) }"
Message: oscAddress is not defined

I’m not really familiar with front-end stack on Magento, so I don’t know what I need to do.

Any suggestion? Do I miss some server / code setup? or maybe Admin setup?
I already tried to refresh cache etc, but the problem still remains.
Also, I already change to Luma / default theme, but the problem still persist. So, I’m wondering if there’s something that I missed.

Thanks. 🙂

woocommerce offtopic – woocommerce_order_after_calculate_totals isn’t getting updated shipping costs

We have a special case where we invoice our customers for payment after the order has been received instead of having them pay during checkout. Shipping charges are manually calculated and added to the order and then we add a 3% credit card fee on the grand total.

To automate this process, I created a script that calculates the 3% charge once the shipping charge has been set through the backend and adds this fee item into the order automatically. This works when we add the shipping charge and click save/recalculate the first time.

add_action( 'woocommerce_order_after_calculate_totals', "custom_order_after_calculate_totals", 10, 2);
function custom_order_after_calculate_totals($and_taxes, $order) {

    if ( did_action( 'woocommerce_order_after_calculate_totals' ) >= 2 )
    return;

    if ( is_admin() && ! defined( 'DOING_AJAX' ) )
        return;

    $percentage = 0.03;
    $total = $order->get_total();
    $surcharge = $total * $percentage;
    $feeArray = array(
        'name' => '3% CC Fee',
        'amount' =>  wc_format_decimal($surcharge),
        'taxable' => false,
        'tax_class' => ''
    );

    //Get fees
    $fees = $order->get_fees();
    if(empty($fees)){
        //Add fee
        $fee_object = (object) wp_parse_args( $feeArray );
        $order->add_fee($fee_object);
    } else {
        //Update fee
        foreach($fees as $item_id => $item_fee){
            if($item_fee->get_name() == "3% CC Fee"){
                $order->update_fee($item_id,$feeArray);
            }
        }
    }
}

If we decide to update the shipping cost, this code does get triggered again and attempts to update the fee however $total does not get the new order total from the updated shipping cost and so the fee does not change. Strangely enough, if I try to delete the fee item, a new fee is calculated and is added back with the correct fee amount.

Anybody know how I can solve this?

Show a message under shipping method in magento 2

I have created a shipping method by following this link
https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/

I just wish to display a custom message under the specific shipping method.

How to display it?

Please anyone

Admin URL path in commerce shipping view?

I am setting up a Shop with Drupal Commerce 2 currently. I installed the Commerce Shipping Module and customized everything to my needs. The only thing I wonder about is, that the URL for the default view of a single order shipping item uses the admin path admin/commerce/orders/%/shipments/%. So, If i give a user the permission to “show own shipments”, the user will use the /admin-path too.

Is this normal by design, or should I create another view with an URL-pattern like /user/uid/shipments/%

What would be considered best practise for this case? Or is it completely irrelevant if users use the /admin-path as well? Thank you very much in advance!

sql server – How to dispose of large tables with the least impact to log shipping?

If you DROP the tables, it’ll cause minimal logs to be generated because it doesn’t immediately force garbage collection to occur on the used space, it merely basically just removes the reference. You similarly can accomplish the same outcome with TRUNCATE (though I think on large tables there could be more overhead than DROP, I’ll have to research this and update my answer accordingly).

This is a really good article that details why TRUNCATE and DROP operations are seemlessly quick and generate minimal logs, which is due to a feature of SQL Server called deferred drop.

Either way, avoid DELETE otherwise that will generate a ton of logs that will need to get shipped and reapplied at the target database.

This StackOverflow Question has multiple answers with good information about efficiently removing data from a large table (some maybe not specificly related to your question, but good for future reference or other users with related problems).

magento2 – How to filter and get shipping address on checkout page based on custom address attribute?

I want to filter the shipping address visible on the Magento2 checkout page based on a custom address attribute.
I want to show only those address which has the required custom attribute value in them.

From which Magento2 class/file this comes on the checkout page? where I can add my logic.
enter image description here