除非将产品添加到购物车,否则 Amasty 运费计算器不会显示运费

Amasty shipping calculator does not show delivery rates unless product is added to cart

一个 API 电话正在打给 /amshipcalc/estimate/ajax/?country_id=AU&postcode=2000&product=601&selected_configurable_option=&related_product=&item=601 & form_key=eQBtuwh1qAglNoDR&qty=2&qty=4

获取运费。但是费率只有在将产品添加到购物车后才会显示。

API 产品添加到购物车后的结果如下所示。它显示送货率 -

标准配送 0.00 美元快递配送 15.00 美元统一固定运费 6.50 美元商店取货取货 0.00 美元 API 购物车为空时的结果如下所示。它不显示送货率 -

<table class="items methods">
                                                <tr class="item-title"><th colspan="2"><span>Flat Rate</th></span></tr>
            
            <tr class="item-options">
                                    <td class="method-title">Fixed</td>
                    <td><span class="price">.50</span></td>
                            </tr>
                                                            <tr class="item-title"><th colspan="2"><span>Store Pickup</th></span></tr>
            
            <tr class="item-options">
                                    <td class="method-title">Pickup</td>
                    <td><span class="price">[=10=].00</span></td>
                            </tr>
                        </table>

API请求细节相同,但响应不同。

通过联系 Amasty 支持找到了答案。与 Magento MSI 的不正确行为有关,更改与引用有关。