magento2.3 – magento 2 – order from quote without submitting an offer

I would like to programmatically create an order from an offer without submitting an offer.

If the customer redirects to the error page, we'll have a button like "Make a Payment" forwarding to the customer on the checkout page, and we want all the data that the customer filled in the last time to appear.

Please help me how to create an order from an offer without submitting an offer programmatically.

Hiren Shah

magento2.3 – Error when upgrading the Magento CE version from 2.2.3 to 2.3.0 with Composer?

I tried to use the following command, but got errors

Command 1:

composer need the magento / product-community-edition 2.3.0 –no-update

Command 2:

Composer Update

Output:

 Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
    - magento/product-community-edition 2.3.0 requires elasticsearch/elasticsearch ~2.0|~5.1 -> satisfiable by elasticsearch/elasticsearch[2.0.x-dev, v2.0.0, v2.0.0-beta1, v2.0.0-beta2, v2.0.0-beta3, v2.0.0-beta4, v2.0.0-beta5, v2.0.1, v2.0.2, v2.0.3, v2.1.0, v2.1.1, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.2.0, v2.2.1, v2.2.2, v2.2.3, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.2.0, v5.3.0, v5.3.1, v5.3.2, v5.4.0, v5.5.0] but these conflict with your requirements or minimum-stability.

if someone has an idea help me … !!!

magento2.3 – Customize shipping options per product

I have to restrict the shipping options for certain products. For example, I want my site to be shipped with ups. However, certain products can not be consumed and must choose a different option.

If a shopping cart has products that can go up and others that require a different shipping method, the user has the option of shipping some products using one of the available shipping methods of the site and the restricted products using a different method.

Because the shipping method appears to be a site area attribute, it can not be configured per product through the Magento administrator. Therefore, my needs can only be met with custom code or extension.
What is the best solution for my needs?

Extensions – Magento2.3 installs the extension via Composer, but in App / Code

I believe that this is a normal scenario where the plugin you want to install should have the folder structure so that it is automatically placed in App / Code.

If you try to install it manually, you can always check in a controller what the path should have been and create the route accordingly.

This seems to be a good explanation for what I'm trying to say: https://magently.com/blog/magento-2-the-right-way-to-install-external-modules/

magento2.3 – Magento 2 Data MIgration Tool Config

Follow this guide

https://devdocs.magento.com/guides/v2.3/migration/migration-tool-configure.html

I decide to configure the migration as recommended in a separate module.

But when running

bin/magento migrate:settings -r app/code/Bileamara/Migration/etc/opensource-to-opensource/1.9.4.0/config.xml

I received the following error message:

Invalid card name:
/mnt/vdb/vhosts/example.com/subdomains/dev/vendor/magento/data-migration-tool/etc/opensource-to-opensource/settings.xml

However, the script is expected to look for files in the custom module first, not the manufacturer folder.

Any help?

magento2.3 – Magento Setup Cron "error while saving crontab: sh: line 6: crontab: command not found"

I do not have much Magento knowledge, but I spend a lot of time setting up Crontab. I tried to follow the steps available on the Magento website, but when I tried to run the "bin / magento cron: install –force" command early, I already encountered an error I can not solve. I use Professional Cloud Server from Hostinger. Can someone help me?

As you can see.

magento2.3 – Magento 2 gets HTML without rendering the page

Hello people, I hope you can guide me. I want to retrieve the HTML code of a block without rendering it in my controller. I get the data like that

$productsBlock = $this->view->getLayout()->createBlock(
    Book::class,
    '',
    (
        'data' => (
        'category_id' => (int) $this->getRequest()->getParam('id')
        )
    )
)->setTemplate('Test_Book::pdf/content.phtml')
->toHtml();

But that only leads me to the side. I just want to get the HTML from this instead of transferring that block. How can I achieve that, thank you.

magento2.3 – How can I display the updated product image for the item in the (main) shopping cart in mini cart?

We use product designers with whom the user can change the product image. While the new picture (based on what the user changes) is displayed correctly based on the pages of the theme car, the mini-car does not display the updated picture. I see that the default.phtml references

app / design / frontend / Smartwave // ​​Magento_Checkout / templates / cart / item / default.phtml (line 29)

getImage ($ block-> getProductForThumbnail (), & # 39; cart_page_product_thumbnail & # 39;) -> toHtml (); ?>

How can the minimap play the updated image for the article from the (main) shopping cart?

Many thanks

magento2.3 – Magento2 The string that can not be serialized is corrupted when upgrading from magneto version 2.1.8 to 2.3.2

There was a problem upgrading the Magento version from 2.1.8 to 2.2.3.

The problem occurs when you run the setup: upgrade command. It will be half of the module's # Magento_Quote & # 39; to lock:

Error converting the field value in the table quote_item_option from where option_id= 56822 using Magento Framework DB DataConverter SerializedToJson.
Correct data or replace with a valid value.
Cause of error: "Value can not be unserialized, string is corrupt."

Enter image description here

magento2.3 – Retrieving the salable quantity via SQL

I'm trying to get all the inventory of a product for debugging via SQL.
The part I am not 100% on is the salable quantity.

I have the following:

SELECT t1.`quantity` + SUM(t2.`quantity`) salable_quantity
FROM `inventory_source_item` t1
JOIN `inventory_reservation` t2
ON t1.`sku` = t2.`sku` AND t1.`status` = 1
WHERE t1.`sku` = 'MY-PROD-SKU'

This works mostly and sometimes returns NULL.

I had hoped that a Magento user would write something similar and make improvements to this query. Many thanks