Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Catalog
_files
product_without_options.php
Go to the documentation of this file.
1
<?php
8
$product
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(\
Magento
\Catalog\Model\Product::class);
9
$product
->setTypeId(
10
'simple'
11
)->setId(
12
1
13
)->setAttributeSetId(
14
4
15
)->setWebsiteIds(
16
[1]
17
)->setName(
18
'Simple Product Without Custom Options'
19
)->setSku(
20
'simple'
21
)->setPrice(
22
10
23
)->setMetaTitle(
24
'meta title'
25
)->setMetaKeyword(
26
'meta keyword'
27
)->setMetaDescription(
28
'meta description'
29
)->setVisibility(
30
\
Magento
\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
31
)->setStatus(
32
\
Magento
\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
33
)->setQty(
34
100
35
)->save();
Magento
$product
$product
Definition:
product_without_options.php:8
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125