All Questions

Filter by
Sorted by
Tagged with
78
votes
22answers
85k views

Required parameter 'theme_dir' was not passed

What is the error message: Required parameter 'theme_dir' was not passed Is it related to in Magento 2? And how can this problem be fixed?
27
votes
4answers
25k views

Magento 2 - Create order using REST API

I need to use the Magento REST API to create an order from a mobile client. In my case, mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
44
votes
17answers
70k views

Magento 2: Safe and easiest way to disable Compare products & Wishlist Module

I am building Magento 2.0 only to sell 2 of my products online. The compare products and wishlist module is irrelevant for me. How I safely and easily remove those modules? I dont want to hack the ...
47
votes
3answers
13k views

Magento2: what is the basic difference between plugin and preference?

I used both Plugin and Preference in Magento2 tutorial and both are working fine but what is the basic difference between them. Code for plugin: 1.1) Add a plugin declaration into di.xml: <type ...
45
votes
5answers
117k views

How to get all items in cart currently?

I want to get a collection of all the items in cart currently. How can I do this ? Any suggestions will be appreciated.
25
votes
2answers
15k views

Magento2 translating Javascript (KO) template text

I am trying to add a translation for the text <!-- ko i18n: 'Store credit available' --><!-- /ko --> present in vendor/magento/module-customer-balance/view/frontend/web/template/payment/...
22
votes
2answers
15k views

Creating new completely custom reports

Most Magento Report building forums, blogs, tutorials, etc all seem to focus on taking an existing Magento Report and either copying or extending it. Most of these are grids which link to a specific ...
29
votes
5answers
22k views

Different storeviews or websites in subfolders

A client wants his multistore shop to be set up like this: http://www.domain1.org/de/ -> website 1, store view 1 http://www.domain1.org/en/ -> website 1, store view 2 http://www.domain1.ch/de/ -> ...
22
votes
2answers
19k views

Magento 2: Implement UI Fileuploader

I recently implemented the FileUploader Ui Component in my form on Magento 2.1.7. The code for it is here (app/code/Vendor/Blog/view/adminhtml/ui_component/vendor_blog_form.xml): <field name="...
26
votes
4answers
63k views

Magento 2 - How to get all items in cart?

At checkout page (chekout/cart) I want to edit the checkout button url destination based on cart items (link.phtml). How can I get all items in cart? I want to do this without using the API. Thanks.
24
votes
3answers
22k views

Magento 1.9.1 configurable product attribute sorting

As i already mentioned, there seems to be a problem with magento 1.9.1 and the sorting of attributes of configurable products. The options of a configurable product now ALWAYS depend on the product ID ...
18
votes
2answers
13k views

Detect inventory change

I need to detect whenever the inventory level of a product changes. I've had some success using the cataloginventory_stock_item_save_after event which is triggered when inventory is changed in the ...
35
votes
5answers
16k views

Solution to Magento Downloader 1.9.2 unknown cipher list

We fixed this by commenting out line 377 in downloader/lib/Mage/HTTP/Client/Curl.php //$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1') There may be a setting that lets this pass through but ...
18
votes
3answers
11k views

Creating Custom Option on Product Save

I'm working on creating a custom option for my products automatically any time a product is created. What I've got so far is an observer that fires on the catalog_product_save_before event and runs ...
1
vote
4answers
14k views

How to create a custom form for sending email with file attachment in magento 2

How to create a custom form for sending email in Magento 2 Fields are like First name Last name Address City State Zip code Email Phone Product type: checkbox Option like (1) One (2) Two File upload ...
29
votes
4answers
38k views

Magento2 -How to get data from system configuration [duplicate]

Fields added through the system.xml and default values populated with config.xml, how do we fetch the data in Magento2
25
votes
4answers
30k views

Magento 2 remove “Estimate shipping costs and tax” from cart

I want to get rid of the "Estimate Shipping costs and Tax" block in the cart. The devdocs tell Disabling a component is the way to go, so I tried the following: <body> <referenceBlock ...
9
votes
4answers
3k views

Magento Observer Events - order of operations

I am attempting to inject functionality into the catalog_model_product_duplicate event. Part of this module will be to ensure that the stock status of the duplicated product is also duplicated; ...
8
votes
1answer
4k views

Magento2: How to include third pary module through composer.json in custom module

I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file { "name": "packagename/mymodule", "description": "N/...
5
votes
2answers
6k views

Customer created_at Date off by months

I'm working on syncing my customers with a third party application and have discovered that many of my created_at dates are way off. Today is 2014-04-08 yet I have several records with a created_at ...
11
votes
2answers
8k views

default state of custom option for simple products

I have a series of products with custom options of type checkbox. However I cannot set from the setup of the product the default state of that particular option. I need at least one of the ...
9
votes
2answers
28k views

Adding custom attribute to customer registration form

I needed to create two new customer attributes. I have followed the guide from: http://www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes to create these ...
4
votes
3answers
9k views

Magento 2: How to set Max Length for Street Address?

I would like to set Max Length for Customer's Street Address 1 to 50 Characters & Street Address 2 to 100 Characters. Changes will be applied on Frontend only, where we can find Street Address. ...
21
votes
5answers
15k views

Why does PATCH_SUPEE-6788 appear to have no effect on a 1.7.0.2 installation?

Note: This issue appears to apply to all versions of Magento which received the SUPEE-6788 patch. You'll see in my answer that both .htaccess and .htaccess.sample need to be restored for the patch ...
18
votes
1answer
20k views

SQLSTATE[42S22]: Column not found: 1054 unknown column 'e.status' after 1.9.2 Upgrade

We have just updated from 1.90 to 1.92 and the following error is showing... Any idea how to fix it? SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.status' in 'where clause', query was: ...
9
votes
4answers
7k views

How to create admin theme for Magento2

This method works for Magento 1 but not for Magento 2 (version 0.42.0-beta10): http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/using_custom_admin_theme_templates
7
votes
4answers
2k views

Upgrading compromised Magento from 1.7 to 1.9

I've been doing some research but there appears to be multiple solutions, and I want to get it right. I need to upgrade my Magento from 1.7.0.2 to the latest (1.9) being that our server was ...
2
votes
1answer
902 views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
1
vote
5answers
398 views

Any help - Magento 2.3 - After migration Add Product via admin return Fatal error, any help for this error

Installed Magento 2.3.4 using Github Installation, After migration from Magento version 1.9.2.3 to 2.3.4 If click Add Product i am getting the following error, Errors: System.log : [2020-09-18 10:37:...
5
votes
3answers
777 views

Security Patch (SUPEE-6285) – Install Immediately In Magento 1.9.0.1

How To Resolve New Magento Security Patch (SUPEE-6285) – Install Immediately In Magento 1.9.0.1 please find the below image I have tried this code passthru("/bin/bash PATCH_SUPEE-6285_CE_1.9.1.1_v2-...
4
votes
1answer
5k views

Magento 1.9.3: every product is displayed in the search in full text mode

When searching for a product in 1.9.3, every product comes up in the list in fulltext mode. How do I fix that issue ?
0
votes
1answer
721 views

How can i add custom multi option Attribute in sales order grid like select warehouse and able to edit on the grid itself

I need to add custom multi selection option for admin purpose, like the ordered products currently available in which location warehouse. Its display like both inside of the order page and Sales->...
37
votes
6answers
42k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
35
votes
4answers
33k views

Get original image file from a cache URL

Is there any function that given a cache image product file return the original one? Example : => Cache URL: {BASEURL}/media/catalog/product/cache/2/image/9df78eab33525d08d6e5fb8d27136e95/a/l/IMAGE....
34
votes
3answers
23k views

How to update admin routers of custom module for patch SUPEE-6788

I'm not sure how to update custom modules to work with the SUPEE-6788 patch, the instructions are not very clear. Based on Alan Storm's tutorial, I created a simple module in the generator www....
32
votes
11answers
43k views

Magento 2 - What is the correct way to change default Order Id?

Magento 2. After fresh install the new Order id will be 100000001, 100000002 and so on. What is the correct way to change that increment id so it would be a higher number? For example 155555552, ...
22
votes
7answers
4k views

Can anyone suggest more technical resources for Magento 2?

I was able to find few articles on Magento 2 from http://magenticians.com/ http://www.thienphucvx.com/ If anybody know some other resources can you please share it here? (links, Ebooks, blogs etc)
33
votes
3answers
39k views

How can I disable cache for particular section or block

I have developed a top bar cart functionality for store front that displays latest three products added to the cart this works great when cache is disabled but when i enable the cache it showing weird ...
15
votes
3answers
5k views

How to create custom Module Development in magento 2 from Scratch?

How to create Custom Module Development from scratch in magento 2 with following point. 1.How to Create Module 2.How to Install and Upgrade Database 3.How to Create Module,view and Controller ...
29
votes
2answers
62k views

How to use jquery library in Magento 2?

I am creating a Magento theme where I need to include jQuery. When I add this <link src="js/jquery-1.7.1.js"/> in head. It is working but Magento javascript functions are not working. How to ...
25
votes
2answers
26k views

product attribute to quote item and order item

What is the correct way in Magento to have a product attribute be automatically persisted to quote an item and then finally to order item? Is it as simple as a little config XML or is it a manual ...
22
votes
7answers
39k views

Redirect all http:// request to https://

Earlier i have posted this question : https://stackoverflow.com/questions/36104047/how-to-redirect-all-http-requests-to-https-on-magento but didn't get any reaction. Here is my site URL : www.trendy-...
35
votes
6answers
43k views

Why Magento 2 is extremely slow?

I used Magento 1.9 and it was okay.It wasnt as fast as a simple joomla site but i had many customers with no problem. Now i wanted to upgrade my site to Magento 2,i bought a new host (same as i ...
26
votes
5answers
20k views

Get product attribute in cart in Magento2

I'm trying to grab a product attribute in the cart template. But I just does not work! The attribute is set to Visible on Catalog Pages on Storefront = yes and Used in Product Listing = yes I use a ...
23
votes
2answers
8k views

Add Category tree in custom extension

I am trying to add Category tree to custom extention, the category tree which is in one of the tab of edit product page
20
votes
4answers
56k views

How to enable Developer Mode in Magento 1.7

I am trying to enable Developer Mode on a site using Magento 1.7. So far I've added : SetEnv MAGE_IS_DEVELOPER_MODE "true" to the .htaccess file and : ... if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'...
28
votes
7answers
23k views

Clear Theme/CSS Cache in Magento 2

When I am theming a Magento 2 store, what is the suggested way to clean the caches? I edit the .less files and then I currently do rm -rf pub/static/frontend/* var/view_preprocessed/ var/*cache/* ...
28
votes
2answers
9k views

Magento 2: Plugin vs Observer

In Magento 2, what are the pros and cons of using a plugin vs an observer to achieve something? I understand that observers are subscribed to events whereas plugins can jump in before and/or after a ...
13
votes
3answers
16k views

Magento2 - How to stop a product from getting added to cart programmatically?

What I want to do is if my custom attribute is set in quote then i do not want any product to be added in cart. My custom attribute is being set correctly. To stop product from getting added to cart,...
11
votes
3answers
8k views

Add custom block on listing page : Magento2

I want to add my custom block on listing page[Magento-2] but without any modification on list.phtml or any .phtml file. Is there any possibility by using xml file ? Any help will be appreciated.

15 30 50 per page