magento2.3 – creating invoices by admin for pay on delivery

I was wondering if there was any way to create an order and send the invoice to the customer for a pay on delivery. We created a new site, but in the past customers ordered by sending their order directly to me and then I enter the order and create an invoice and wait for them to send a check. I would like to be able to continue to do this for the select customers.

I know there is a way to have pay on delivery for a payment option but when I select it, it becomes visible for the customer to view which we do not want.

Thanks

magento2.3 – How change Magento2 config cache behavior

In my project with 100’s of websites in multi-store mode, several seconds on every request are used to unserialize the config cache.

It appears that Magento builds and compiles the config-cache from all config scopes on initial load and includes all store scopes into that.

Does anyone have experience in changing the config loader in such a way that it would only compile the config for a given store (the one currently being requested) and caching that set individually.

This would permit invalidating config caches for a specific store as well drastically cut back on unserialization of configs that aren’t even part of the request.

magento2.3 – Magento 2.3.0 SOAP URL Stops working

I am using magento version 2.3.0. Now the soap url stop working suddenly after deployment. I reverted the change but still geting issue while calling SOAP API.

Anyone face issue like then or any suggested solution.
enter image description here

(2020-09-18 12:37:19) main.CRITICAL: Report ID: webapi-5f64a9fff1426; 
Message: The "ResultInterface" class doesn't exist and the namespace must be specified. Verify and try again. 
{"exception":"(object) (Exception(code: 0): Report ID: webapi-5f64a9fff1426;
 Message: The "ResultInterface" class doesn't exist and the namespace must be specified. 
 Verify and try again. at /var/www/html/vendor/magento/framework/Webapi/ErrorProcessor.php:206, 
 LogicException(code: 0): The "ResultInterface" class doesn't exist and the namespace must be specified.
  Verify and try again. at /var/www/html/vendor/magento/framework/Reflection/TypeProcessor.php:143)"} ()

magento2.3 – How to override steps-wizard template file in magento 2.3?

How to override the steps-wizard template file in Magento 2.3?
I need to override Magento_ConfigurableProduct::catalog/product/edit/attribute/steps/select_attributes.phtml.

above file define in vendor/magento/module-configurable-product/view/adminhtml/layout/catalog_product_wizard.xml

Can anyone help me with this?

magento2.3 – Migrated Customers not able to complete the purchased

Before is started in this company they migrated a lot of customers from Magento 1.9 to Magento 2.3.

The issue we are seeing with customers that is from Magento 2 is when they go to checkout they receive this error message (“The shipping information was unable to be saved. Verify the input data and try again.
Where it shows “Payment Method” it is blank and a spinning loading wheel.
But the strange thing is if i click on the “add new address” button and type in the same iformation and hit save everything seams to work again. Error message gone and payment method loads perfectly…

Edit: I found this error in Magento exception log:
(2020-09-14 20:31:06) main.CRITICAL: Invalid customer address id 1667 {“exception”:”(object) (MagentoFrameworkExceptionNoSuchEntityException(code: 0): Invalid customer address id 1667 at /chroot/home/xxxxx/rodin.etailhandel.no/html/vendor/magento/module-quote/Model/QuoteAddressValidator.php:79)”} ()

Anyone have any ideas what can cause this?

magento2.3 – Protection of variable from concurrent access

I suggest you check the Magento API response when you have performed your request. Specifically, you try your API call with an expired token on purpose: the exception message will be useful.

On my local today, I did alter the token to trick my API call to return an error.
My error is: {"message":"The consumer isn't authorized to access %resources."..

Once you know the exact message given when an expired token is used, then you can re-authenticate doing like the code below:

$token = $this->getSessionToken();
$response = $this->sendAPICall($token);
$result = $response->getBody();

$result = json_decode($result);
if (strpos($result->message, 'The consumer isn't authorized to access') !== false) {
    $token = $this->renewSessionToken();
    
    ... rebuild the API request
    $response = $this->sendAPICall($token);
    $result = $response->getBody();
}

magento2.3 – magento 2.3.3 konckout translation doesn’t work

Hello I have the official stripe module for magento 2 which is not trasnlated correctly.
This is the piece of code:

    <span><!-- ko i18n: 'Use a new card'--><!-- /ko --></span>

I created the csv file into the i18n directory but the text is not translated.
I take a look into the js-translation.json file and the string it is not there.
If I manually put the string into that file it is translated. It seem that the process to insert the string into that file doesn’t work.

magento2.3 – Translate *Required Fields – Magento 2.3

We have an issue that we are not able to translate “*Required Field” and “This is a Required field”

I also notice that the previous developer have put the Norwegian Language pack under /vendor/magento2translations. I would like to think it should be under app/i18n/magento2translations (create this path ofc.

The owner told me they have used translateline to translate everything on the web page, as in manually. Shouldn’t the translate pack do this for them? except if there is any specific translation? We also have problems where we are able to translate via translateline but will not save after we put the site back to production mode.

Another question, do i need to set the i18n/no/NO on every module i have, or have does this work?

Any help is appreciated

magento2.3 – Declare length of int column

How can I declare a size for an int?

I have the following code:

...
$table->addColumn('id', Table::TYPE_INTEGER, null, (
        Table::OPTION_IDENTITY => true,
        Table::OPTION_NULLABLE => false,
        Table::OPTION_PRIMARY => true,
        TABLE::OPTION_UNSIGNED => true,
    ))
    ->addColumn('quote_id', Table::TYPE_INTEGER, 10, ('length' => 10))
...

But when the SQL is output it generates the following:

`quote_id` int NULL COMMENT 'Quote_id'

What I want is:

`quote_id` int(10) NULL COMMENT 'Quote_id'

magento2.3 – Magento 2 : Rest API get product price in cart with including tax

I have added tax rules to add GST on a product prices.

I have changed the store->configuration->sales->tax->Price Display Setting->Display Product Prices In Catalog to yes. I am getting it correctly on website when there is shipping address associated with quote.

I wanted to do same for the REST API.