Magento2: Product of custom type not showing when creating new order from backend

Created on 17 Feb 2016  路  1Comment  路  Source: magento/magento2

I created a custom product type following this tutorial:
Foggyline_DailyDeal
I can create products of this type, they do display on the front, I can go through the checkout and everything but when I try to create an order from the backend (Sales > Orders > New order) the product is not displayed in the list :/
I have a regular Magento 2 setup (no additional websites or stores or even views)
Is the tutorial missing a crucial step or is this a bug ?
Thank you

Most helpful comment

ok, so the tutorial IS missing something crucial (and it's from a book....) !!

We need to create a sales.xml file in app/code/My/Module/etc with the following content to add the custom product type to the list of available product type:

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Sales:etc/sales.xsd">
    <order>
        <available_product_type name="customtype"/>
    </order>
</config>

Sorry for the post then, hopefully it'll help someone someday

>All comments

ok, so the tutorial IS missing something crucial (and it's from a book....) !!

We need to create a sales.xml file in app/code/My/Module/etc with the following content to add the custom product type to the list of available product type:

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Sales:etc/sales.xsd">
    <order>
        <available_product_type name="customtype"/>
    </order>
</config>

Sorry for the post then, hopefully it'll help someone someday

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenSpace48 picture BenSpace48  路  3Comments

PascalBrouwers picture PascalBrouwers  路  3Comments

xi-ao picture xi-ao  路  3Comments

denis-g picture denis-g  路  3Comments

andreaskoch picture andreaskoch  路  3Comments