magento-2.0

Magento 2 Design Theme tab is missing

。_饼干妹妹 提交于 2019-12-10 15:17:53
问题 Hi, I am trying magento 2 and struggling to install the new theme. Because Design Theme is not showing under Stores > Configuration > Design. 回答1: It has been moved to Content/Design/Configuration 回答2: Yes It has been moved to Content/Design/Configuration. check screenshot for more clarification Then you can select specific store if you have multi store. click edit action and in new window you can find search engine robots setting. 回答3: In Magento 2.0.x, you can configure the theme in Stores

How to fix one or more indexers are invalid error in Magento?

送分小仙女□ 提交于 2019-12-08 07:06:28
问题 Sorry if my question was very basic or simple one. But i m trying to fix this issue from yesterday. i hope my problem also similar to this question. i m googling since yesterday and this is what the answer i got in every forums and search result. php bin/magento indexer:reindex but when i tried this in cmd.exe in Windows 7 this is what error i m getting. i m not familiar with windows command prompt & magento, used to work on Ubuntu terminal. So please again sorry if my question is very basic

How to fix one or more indexers are invalid error in Magento?

泄露秘密 提交于 2019-12-06 16:32:11
Sorry if my question was very basic or simple one. But i m trying to fix this issue from yesterday. i hope my problem also similar to this question. i m googling since yesterday and this is what the answer i got in every forums and search result. php bin/magento indexer:reindex but when i tried this in cmd.exe in Windows 7 this is what error i m getting. i m not familiar with windows command prompt & magento, used to work on Ubuntu terminal. So please again sorry if my question is very basic or stupid but please help me to solve this issue. please check magento dashboard error below : sorry

Magento 2 - Go directly to the checkout page when adding a product to the cart

心不动则不痛 提交于 2019-12-06 04:58:32
问题 I am writing an extension which allows to go directly to the checkout page when clicking on the add-to-cart button on the product page. I found a solution for Magento 1 here and I tried to adapt it to Magento 2. Here are my files: File etc/frontend/events.xml: <?xml version="1.0" encoding="utf-8" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="checkout_cart_add_product_complete">

Add/remove image programmatically to product Magento2

£可爱£侵袭症+ 提交于 2019-12-03 08:46:26
I am facing problem to add/remove image to product programmatically. Datta Yadav Use following code to add/remove image from product in Magento2. // Instance of object manager $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); *Remove Images From Product*/ $productId = ; // Id of product $product = $objectManager->create('Magento\Catalog\Model\Product')->load($productId); $productRepository = $objectManager->create('Magento\Catalog\Api\ProductRepositoryInterface'); $existingMediaGalleryEntries = $product->getMediaGalleryEntries(); foreach ($existingMediaGalleryEntries as

Magento 2 Redirecting to Payment Gateway Error

混江龙づ霸主 提交于 2019-12-02 04:30:09
i have convert my Magento 1 payment module using a converter. I guess i need to modify the codes to suit Magento 2. And I am stuck at the checkout process, redirecting to the Payment gateway. Below is my error when magento is trying to redirect to http://localhost:8083/mm/pdcptb/pdcptb/redirect/ There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 979987430 The console in the firebug shows: "NetworkError: 503 Service Unavailable - http://localhost:8083/mm/pdcptb/pdcptb/redirect/ " and below is the error log

How to add/Insert Extension in magento 2.0?

时间秒杀一切 提交于 2019-12-01 10:52:27
I tried to add the external magento-2 extension but I can't add it because I can't find magento-connect in admin side. I think the admin panel doesn't have magento-connect. Do you have any idea about this to share, or a good tutorial that could help? CedCommerce Installing Magento 2 extension is an easy task .. you just need to extract your extension zip file and place the folder inside your Magento 2 app/code directory so that the structure should be like app/code/namespace/module-name then you have to run some commands for registering your Magento 2 extension open terminal inside your

How to add/Insert Extension in magento 2.0?

江枫思渺然 提交于 2019-12-01 08:50:20
问题 I tried to add the external magento-2 extension but I can't add it because I can't find magento-connect in admin side. I think the admin panel doesn't have magento-connect. Do you have any idea about this to share, or a good tutorial that could help? 回答1: Installing Magento 2 extension is an easy task .. you just need to extract your extension zip file and place the folder inside your Magento 2 app/code directory so that the structure should be like app/code/namespace/module-name then you