Magewallet | Magento 2 Extensions, Themes & Solutions
Many of our users are business owners who often ask us for plugin suggestions. Having the right set of tools can help you take your business to the next level. These 100 Free Magento 2 Extensions will make all the difference on your online store. They offer better security, easier content management, higher conversion, and
Professional collection of the best responsive Magento 2 Themes of 2018 for creative designers, product showcases, brands and other creative businesses. Sonice – Best Responsive Magento 2 Theme SoNice is built with super clean, modern, product oriented design. SoNice will be perfect for Furniture, Jewelry, Electronics, Houseware and other Fashion stores. SoNice is a MultiPurpose
As we know, there’s a new kid on the block – a brand new version of Magento 2 eCommerce platform released for better eCommerce experience. Not to mention that so many developers, partners, merchants have been waiting for years to make this announcement!. If you want to make a Magento 2 store, or just want
In this post we will get the knowledge about how to enable Maintenance Mode in Magento 2 store so your visitors know that you’re working on your website. Magento uses maintenance mode while you’re maintaining, upgrading, or reconfiguring your site. In order to put your Magento 2 store in maintenance mode, you need to create
Having the right set of tools can help you take your business to the next level. These Top Free Download Magento 2 Extensions enhance your store’s checkout process. So, what do you need to transform your Magento 2 store into a feature-rich powerhouse? You need the best Magento 2 Extensions! Free Magento 2 Extensions Order
Unless you have been living under a rock, chances are that the soft pinge of a WhatsApp message rouses you from the depths of slumber and reaching out to your phone inadvertently. Everyone is well aware of what WhatsApp is and what it is used for, however, what people are oblivious to are the struggles
According to a survey by Alexa (an Amazon company), the biggest market share of ecommerce software is with Magento. And this is because it has gained a lot of popularity amongst ecommerce website owners and web designers for its flexibility, open architecture as well as the freedom of customization. Magento extensions add a Midas touch
“We’re committed to building upon the Magento platform enabling greater flexibility, performance and scalability to empower merchant growth.” – Roy Rubin, co-founder, Magento
You can create simple product programmatically using InstallData by using the below InstallData script.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
<?php namespace Vendor\Product\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; class InstallData implements InstallDataInterface { /** * @var string */ protected $productType = \Magento\Catalog\Model\Product\Type::TYPE_SIMPLE; /** * @var \Magento\Catalog\Model\ProductFactory */ protected $productFactory; /** * @var \Magento\Store\Model\StoreManagerInterface */ protected $storeManager; public function __construct( \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Store\Model\StoreManagerInterface $storeManager ) { $this->productFactory = $productFactory; $this->storeManager = $storeManager; } /** * {@inheritdoc} * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.NPathComplexity) */ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $data = [ 'name' => 'Test', 'sku' => 'sku001', 'price' => 456, 'weight' => 1 ]; $attributeSetId = 4; //Attribute set default $product = $this->productFactory->create(); $product->setData($data); $product ->setTypeId($this->productType) ->setAttributeSetId($attributeSetId) ->setWebsiteIds([$this->storeManager->getDefaultStoreView()->getWebsiteId()]) ->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED) ->setStockData(['is_in_stock' => 1, 'manage_stock' => 0, 'qty' => 100]) ->setStoreId(\Magento\Store\Model\Store::DEFAULT_STORE_ID); if (empty($data['visibility'])) { $product->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH); } $product->save(); } } |
Ref: http://magento.stackexchange.com/questions/166739/magento-2-how-to-create-simple-product-by-upgradeschema Enjoy Magento 2! Enjoy Magewallet!!
If you want to compile only theme (Package/Theme) with all that belongs to it, run the command:
1 |
php bin/magento setup:static-content:deploy --theme Package/Theme |
If you want to compile the theme only .less files, run the command:
1 |
php bin/magento setup:static-content:deploy --theme Package/Theme --no-javascript --no-css --no-images --no-fonts --no-html --no-misc --no-html-minify |
To understand how it works and to see how many compilation options exist, run the command:
1 |
php bin/magento setup:static-content:deploy -h |
Using the result of the above
Recently I installed Magento 2.1.3. The problem is that, when i am in the Component Maganer, and i Sync my account, it showns an infinite “please wait” loading, and i can’t install any extension at all. After some research and searching I found one solution as below. Please open your composer.json file and move to
In this article, we will explain how to upgrade your Magento 2 version from 2.1.x for 2.1.5 using Command-Line Interface (CLI). Then upgrade your Magento 2 by following these steps: 1) Access Your Server via SSH 2) Navigate to the Magento 2 Root Directory 3) Upgrade Commands
1 2 3 4 5 6 7 8 9 |
composer require magento/product-community-edition 2.1.5 --no-update composer update rm -rf var/di var/generation php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento setup:static-content:deploy |
4) Check your Magento version
1 |
php bin/magento --version |
Enjoy