UPS Shipping Method not working

I’ve enabled UPS as the only shipping method in Magento 2.3.1 and when I go to get an estimated shipping quote, I get the message “Sorry, no quotes are available for this order at this time”. If I enable Free Shipping then that option pulls up but not UPS. I am using the UPS Parcel Service XML service and I’ve triple checked my user id, password and access license number. Here is a link to my site

Magento 2 – How to use dynamic row system to populate form in custom shipping module

I built a Magento 2 custom module for shipping that has a select drop down field for users to choose an option. I want to be able to set those options in the admin for the module using the dynamic row system. I have the form built and working. This is the section for the select box using:


<item name="checkout_building_address" xsi:type="array">         <item name="component" xsi:type="string">Magento_Ui/js/form/element/select</item>         <item name="config" xsi:type="array">             <item name="customScope" xsi:type="string">customCheckoutForm</item>             <item name="template" xsi:type="string">ui/form/field</item>             <item name="elementTmpl" xsi:type="string">ui/form/element/select</item>         </item>         <item name="options" xsi:type="array">             <item name="0" xsi:type="array">                 <item name="label" xsi:type="string">Please select value</item>                 <item name="value" xsi:type="string"></item>             </item>             <item name="1" xsi:type="array">                 <item name="label" xsi:type="string">Option 1</item>                 <item name="value" xsi:type="string">value_1</item>             </item>             <item name="2" xsi:type="array">                 <item name="label" xsi:type="string">Option 2</item>                 <item name="value" xsi:type="string">value_2</item>             </item>         </item>         <item name="value" xsi:type="string">Please Select Value</item>         <item name="provider" xsi:type="string">checkoutProvider</item>         <item name="dataScope" xsi:type="string">customCheckoutForm.checkout_building_address</item>         <item name="label" xsi:type="string">Select Building Address</item>         <item name="sortOrder" xsi:type="string">2</item>     </item> 

I also followed the Mage docs for getting the dynamic rows in the admin. That is working fine and saves the information to the core_config_data table as a serialized array.

{"_1564590939871_871":{"addresses":"123 Amy Street Any Town, CA 92234"},"_1564593462830_830":{"addresses":"1475 Main St. Any Town, CA 90210"}} 

I cannot figure out how to get that data to populate the select box in my form.

Thanks in advance for the help!

* UPDATE * I am now using this in Helper>Data.php

public function getJsonConfigValue($  configPath, $  store = null)     {         $  value = $  this->getJsonConfigValue($  configPath, $  store);          if (empty($  value)) return false;          if ($  this->isSerialized($  value)) {             $  unserializer = ObjectManager::getInstance()->get(\Magento\Framework\Unserialize\Unserialize::class);         } else {             $  unserializer = ObjectManager::getInstance()->get(\Magento\Framework\Serialize\Serializer\Json::class);         }          return $  unserializer->unserialize($  value);     } 

and I can see that data in a template using:

public function getJsonSerialized()     {            $  arrayItems = $  this->helper->getJsonConfigValue('carriers/dynamic/addresses/address_list');          return json_encode($  arrayItems);     } 

And this in a template file view>frontend>templates>array.phtml

<?php echo $  block->getJsonSerialized(); ?> 

And it appears like this on the page:

{"_1564763325005_5":{"addresses":"123 My Street, Bldg. 1, My Town, IA 00351"}} 

How do I turn it into something that I can use in a form I built in a custom module to populate the select drop down field?

It this my problem? – return json_encode($ arrayItems);

I can’t find what I think I am looking for.


How can i trigger a shipping method price change based on street address?

I have this code to trigger a change in a shipping method price:


define(     [],     function () {         'use strict';         return {             getRules: function() {                 return {                     'country_id': {                         'required': true                     },                     'region_id': {                         'required': true                     },                     'street': {                         'required': true                     }                 };             }         };     } ) 

Both country_id and region_id trigger a reload for the shipping method but street is not doing so.

VAT Customer shipping goods to different country with billing address VAT magneto 2.2.3

Not sure how to get this working, if anyone has any idea will be appreciated for the time.

My aim is to create a module to check if the customer passing two different countries in billing and shipping. Example: Billing address from UK with VAT number passed and customer group = zero vat customer. When I add a new shipping address in customer account section or checkout I can pass new country and address still count as a zero vat customer. Is there any way I could stop this? if there is please advice

Show the products and method Shipping on success page magento 2?


<?php /**  * Copyright © Magento, Inc. All rights reserved.  * See COPYING.txt for license details.  */  // @codingStandardsIgnoreFile  ?> <?php /** @var $  block \Magento\Checkout\Block\Onepage\Success */ ?> <div class="checkout-success">     <?php if ($  block->getOrderId()):?>         <?php if ($  block->getCanViewOrder()) :?>             <p style=" font-size: 19px; font-weight: 700;color: #4F91D0;" ><?= __('Your order number is: %1.', sprintf('<a href="%s" class="order-number" ><strong style="font-weight: 600; color: white; background-color: #4F91D0; font-size: 30px;" >%s</strong></a>', $  block->escapeHtml($  block->getViewOrderUrl()), $  block->escapeHtml($  block->getOrderId()))) ?></p>         <?php  else :?>             <p><?= __('Your order # is: <span>%1</span>.', $  block->escapeHtml($  block->getOrderId())) ?></p>         <?php endif;?>            <!-- <p><?= /* @escapeNotVerified */ __('We\'ll email you an order confirmation with details and tracking info.') ?></p>-->     <p>         Enviaremos para você um e-mail de confirmação do seu pedido com detalhes e informações de rastreamento.         Adicione o e-mail <a href=""></a> a no seu livro de endereços e verifique  sua pasta de spam caso não receba o  e-mail de confirmação do pedido.<br>         Agora é só aguardar a confirmação do seu pagamento. Você receberá um e-mail assim que o seu pagamento for confirmado.<br>         Em caso de dúvidas, entre em contato com o e-mail informado acima ou ligue-nos no <a href="tel:40201702">0000-0000</a> (custo de ligação local).     </p>     <br>     <h2>Status do Pedido</h2>     <!-- <p class="status">&nbsp;</p> -->     <div id="status_bar">         <img class="status" src="" />     </div>      <h2>Suas Compras</h2>      <?= $  block->getProductItem() ?>      <h2>Dados do Envio</h2>        <?= $  block->getMethodShipping() ?>    <?php endif;?>      <?= $  block->getAdditionalInfoHtml() ?>      <div class="actions-toolbar">         <div class="primary">             <a class="action primary continue" href="<?= /* @escapeNotVerified */ $  block->getContinueUrl() ?>"><span><?= /* @escapeNotVerified */ __('Continue Shopping') ?></span></a>         </div>     </div> </div> 


/* Métodos para exibir os produtos comprados e o método de envio selecionado */ public function getProductItem() {     return 'View my purchase'; }  public function getMethodShipping() {     return 'Selected Shipping Type'; } 

Input field name is not populated on checkout page shipping address

I want to add a new field to my shipping address section on checkout page, I was able to achieve it by below code.

<item name="shippingAddress" xsi:type="array">     <item name="children" xsi:type="array">         <item name="shipping-address-fieldset" xsi:type="array">             <item name="children" xsi:type="array">                 <item name="location" xsi:type="array">                     <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>                     <item name="label" xsi:type="string">Location</item>                     <item name="provider" xsi:type="string">checkoutProvider</item>                     <item name="visible" xsi:type="string">true</item>                     <item name="sortOrder" xsi:type="string">200</item>                     <item name="config" xsi:type="array">                         <item name="template" xsi:type="string">ui/form/field</item>                         <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>                         <item name="tooltip" xsi:type="array">                             <item name="description" xsi:type="string" translate="true">Search your location.</item>                         </item>                     </item>                 </item>             </item>         </item>     </item> </item> 

The field is added to shipping address form but the name attribute is null. I need to set it as location but it always stays null. I have tried adding name and inputName attributes to xml but nothing seems to be working. Please check below as the html generated for my field.

<input class="input-text" type="text" data-bind="     value: value,     valueUpdate: 'keyup',     hasFocus: focused,     attr: {         name: inputName,         placeholder: placeholder,         'aria-describedby': getDescriptionId(),         'aria-required': required,         'aria-invalid': error() ? true : 'false',         id: uid,         disabled: disabled     }" name="" aria-invalid="false" id="YCYKNDR"> 

Do anyone have any idea how we can set name attribute for input field on shipping address section?