magento2.3 – When unchecking My billing and shipping address are the same checkbox billing address is not showing magento 2

when unchecking My billing and shipping address are the same checkbox in checkout pagethe billing address is not showing.also edit button. In console these errors are showing.

require.js:1895 GET https://domainname/pub/static/version1620831580/frontend/organica/organica_default/en_GB/Codilar_Gst/js/view/billing-address/list.js net::ERR_ABORTED 404 (Not Found)

(ERROR) Failed to load the “Magento_Checkout/js/view/billing-address/list” component.
https://domainname/pub/static/version1620831580/frontend/organica/organica_default/en_GB/Magento_Ui/js/lib/logger/console-output-handler.js

knockout.js:3391 Uncaught ReferenceError: Unable to process binding “template: function(){return detailsTemplate }”
Message: detailsTemplate is not defined
at template (eval at createBindingsStringEvaluator (knockout.js:2992), :3:61)
at init (knockout.js:5464)
at knockout.js:3368
at Object.ignore (knockout.js:1480)
at knockout.js:3367
at Object.arrayForEach (knockout.js:159)
at applyBindingsToNodeInternal (knockout.js:3353)
at applyBindingsToNodeAndDescendantsInternal (knockout.js:3233)
at applyBindingsToDescendantsInternal (knockout.js:3215)
at applyBindingsToNodeAndDescendantsInternal (knockout.js:3242)
https://domainname/pub/static/version1620831580/frontend/organica/organica_default/en_GB/knockoutjs/knockout.js

How to solve this? Magento version is 2.3.2

shipping methods – Magento 1 smartship pickup point for posti module not working

I have Magento 1.9.4.5 using smartship module, I have trouble with the pickup post module

the insert postcode field & Button & pick up available place all disabled
the value of the escapeHtml($carrierCode); ?> === smartpostPickup_error

and when I move the disabled values by inspect them and force the function
i got empty option with s_method_smartpostPickup_error id .

I will be thankful if someone suggests some help here The disabled fields on the work on shipping method

eu – Avoiding customs duties when shipping back forgotten items to Portugal from the UK

I forgot my manual coffee grinder and Aeropress at a friend’s place in the UK. The items were bought in the EU (but not Portugal) and I have receipts for them. They’re missing all packaging and extra parts. Retail value was about €160, and the package will be shipped using the Royal Mail.

As far as I understand I shouldn’t have to pay anything, but how do we convince customs of this in the off chance the package is examined?

Do we indicate a value of £0 on the customs form and include printouts of my receipts? Am I overthinking the whole thing?

magento2 – Change shipping address column format in Sales Order Grid (Magento 2.4.2)

As per your requirement you need to create four new columns for the city, street, zip, and phone.

1. So first of all create sales_order_grid.xml in your custom module

app/code/Vendor/Module/view/adminhtml/ui_component/sales_order_grid.xml

<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <columns name="sales_order_columns">
        <settings>
            <childDefaults>
                <param name="fieldAction" xsi:type="array">
                    <item name="provider" xsi:type="string">false</item>
                </param>
            </childDefaults>
        </settings>
        <column name="street">
            <settings>
                <filter>text</filter>
                <label translate="true">Street</label>
                <bodyTmpl>ui/grid/cells/html</bodyTmpl>
                <visible>true</visible>
            </settings>
        </column>
        <column name="postcode">
            <settings>
                <filter>text</filter>
                <label translate="true">Zip</label>
                <bodyTmpl>ui/grid/cells/html</bodyTmpl>
                <visible>true</visible>
            </settings>
        </column>
        <column name="city">
            <settings>
                <filter>text</filter>
                <label translate="true">City</label>
                <bodyTmpl>ui/grid/cells/html</bodyTmpl>
                <visible>true</visible>
            </settings>
        </column>
        <column name="telephone">
            <settings>
                <filter>text</filter>
                <label translate="true">Phone</label>
                <bodyTmpl>ui/grid/cells/html</bodyTmpl>
                <visible>true</visible>
            </settings>
        </column>
    </columns>
</listing>

2. Create plugin for order collection data provider

app/code/Vendor/Module/etc/di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory">
        <plugin name="mageprince_custom_orders_grid" type="VendorModulePluginOrdersGrid" sortOrder="10"/>
    </type>
</config>

app/code/Vendor/Module/Plugin/OrdersGrid.php

<?php

namespace VendorModulePlugin;

class OrdersGrid
{
    public function afterGetReport($subject, $collection, $requestName)
    {
        if ($requestName !== 'sales_order_grid_data_source') {
            return $collection;
        }

        if ($collection->getMainTable() === $collection->getResource()->getTable('sales_order_grid')) {
            $orderAddressTable  = $collection->getResource()->getTable('sales_order_address');

            $collection->getSelect()->joinLeft(
                ('oat' => $orderAddressTable),
                'oat.parent_id = main_table.entity_id AND oat.address_type = 'shipping'',
                ('telephone', 'city', 'postcode', 'street')
            );
        }

        return $collection;
    }
}

That’s it now you can see these columns in order grid as below

enter image description here

EDIT:

I have removed datasource class and updated the answer because datasource class not working with filters.

magento2 – How to get Customer default shipping address in Magento 2

magento2 – How to get Customer default shipping address in Magento 2 – Magento Stack Exchange

magento2 – Create Shipping Label not working in Magento 2.4.2

After digging into the JS and template files, then tracing back to the PHP code, I discovered there is a bug in the core Magento Shipping module (vendor/magento/module-shipping).

In this file:

vendor/magento/module-shipping/view/adminhtml/templates/order/packaging/grid.phtml

On line 63, we have:

<?php $id = $item->getId() ?? $item->getOrderItemId(); ?>

But the $item in question is the order, not the shipment item. Because of this, the frontend can’t get a handle on the item and so the process silently fails. I have a suspicion that the programmer doesn’t understand how to use the null coalescing operator properly.

To remedy this, simple change the line to:

<?php $id = $item->getOrderItemId(); ?>

Of course, it’s not best practice to edit core files directly; you should copy the file to a custom module and override it there.

MSI and Shipping charges and Tax calculation Magento2 M2

Having query related to shipping charges when we use MSI.

For example :

We have configured MSI. For each product we are having multiple warehouse/source available.

Cart : 3 items in cart

  • Item 1 – available in ABC (California) ware house
  • Item 2 – available in ABC (California) ware house
  • Item 3 – available in PQR (Washington) ware house

Company registered in Alaska.

Query :

  1. How magento will calculate table rate shipping charges in this case because items are
    shipped from 2 different locations

  2. Normally how magento calculates shipping charges when used multi source inventory and some products in cart available from specific store and others are from different store.

  3. How magentp will calculate tax because in this case both items are having different origin for shipping.

wordpress – Store shipping address of anonymous buyer in Woocommerce store

Using hooks, I have customized the shopping cart page of an Woocommerce site and given the option to enter country, city, street address, etc.

I did this because I want to calculate some additional charges based on the user’s entered address, and I want to show the charges in the shopping cart.

A screenshot of my cart page is shared below.

enter image description here

Once the customer fills the address related fields and goes to checkout page, I want to take the values from those fields and pre-fill the Billing address and Shipping address section of checkout.

How to do this if the buyer is an “anonymous user”?

In case of logged-in users, I could use the ‘add_user_meta’ function and update shipping address and billing address. But if the user is anonymous I cannot do that.

I am using WordPress 5.7.1, Woocommerce 5.2.1

woocommerce offtopic – Calculate backorder products shipping cost

I need to calculate the extra shipping cost the backorder products will have. I first thought of duplicate the shipping cost per product, but this is not accurate. So I thought I should withing my function run another function (same as woocommerce uses) to calculate the shipping cost for each and all backorder product in the cart.

Here is where I am so far.

// Add a extra shipping fee to each backordered product
add_action('woocommerce_cart_calculate_fees', 'add_backorder_shipping_fee', 20, 1);
function add_backorder_shipping_fee($cart)
{
    if (is_admin() && !defined('DOING_AJAX'))
        return;

    $backorderNumber = 0;
    // Loop through the cart items (added products).
    foreach (WC()->cart->get_cart() as $cart_item) {
        // Product Info
        $product = $cart_item('data');
        // Quantity of product in cart (being purchased).
        $buyingQuantity = $cart_item('quantity');
        if (!empty($product && $product->backorders_allowed())) {
            // Calculate if product quantity in cart is more than stock, returns negative if so.
            $isBuyingMoreThanStock = $product->stock_quantity - $buyingQuantity;
            if ($isBuyingMoreThanStock < 0) {
                //!ITEMS: Calculate the number of items are being backordered.
                //  $backorderNumber = $backorderNumber + ($isBuyingMoreThanStock * -1);

                //!PRODUCTS: Calculate the number of products are being backordered.
                $backorderNumber = $backorderNumber + 1;
            }
        }
    }
    // Get the shipping cost.
    $totalShippingCost = WC()->cart->get_shipping_total() + WC()->cart->get_shipping_tax();
    // Calculate and apply the above shipping cost to each backordered item.
    $extraShippingFee = $backorderNumber * $totalShippingCost;
    // Create the fee.
    if ($backorderNumber > 0 && $totalShippingCost > 0) {
        $cart->add_fee(__('Backorder Extra Shipping Fee (' . $backorderNumber . ')', 'woocommerce'), $extraShippingFee);
    }
}


So instead of get the current shipping cost and multiple by the number of backordered product, I would like to calculate the extra fee just like woocommerce calculate the shipping cost. Another thing that comes to mind is if I could apply this to Fedex live rate API as well.

magento2 – Shipping price disappearing magento 2.3

when changing anything in the xml of the checkout cart index.xml file, the price next to the freight stops appearing in magento 2.3.5. I’m trying to organize the layout of the content but in any case the price of freight simply disappears when changing anything. Has anyone had this problem? I tried to replace the Magento_checkout folder in: vendor / magento / module-checkout / view / frontend / layout / checkout_cart_index.html, for: app / design / frontent / / / Magento_Checkout / layout / checkout_cart_index. html, But even so when trying to edit the checkout_cart_index file, the value that is next to the freight disappears. I do not know what to do. Help me please.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123