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
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
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 inapp/code/My/Module/etc
with the following content to add the custom product type to the list of available product type:Sorry for the post then, hopefully it'll help someone someday