Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

How do I get the base object from within a plugin?

How do I get the object that my plugin is attached to from within an after plugin? I thought it would be the $subject parameter, but that doesn't seem to be it. My plugin is defined like this di....
0
votes
1answer
41 views

Show list of all categories with links, on all pages

There's a few posts regarding how to get a list of categories in Magento 2, but they all seem to require getting the current category. I'm looking for a php solution to show a list of all categories ...
0
votes
2answers
25 views

Can't login to account after migration 1.6 to 2.3

I have migrated all my Db from a Magento 1.6.0 to Magento 2.3.3 all the products are ok and I was able to create an Admin account. But when I tried to login using the old account. It was not able to ...
0
votes
1answer
32 views

All urls are not working, it is accidently deleted,

Yesterday, I accidentally deleted unnecessary backup files from the public_html folder and deleted other important files as well. Since then, the main home page of the website has been well displayed,...
0
votes
0answers
20 views

Magento 2 - How to hide/remove custom attribute from backend Account Information tab in customer page?

I have a custom attribute showing in the account information tab page. how can I remove them? Right now I can see the following
0
votes
0answers
14 views

How do I append an attribute field to the V1/products/attributes API call

When creating a product attribute, I have a custom property that can be assigned; it's stored as api_attribute_id. When making GET API calls to V1/products/attributes, I'd like for this data to be ...
1
vote
1answer
31 views

How to create an event in magento 2 mailchimp programmatically?

Basically I have successfully connected mailchimp with magento 2 and I am able to see my magento store data in mailchimp backend. Also I can see mailchimp in magento 2 backend and I have pulled the ...
0
votes
0answers
9 views

Magento 2 - Getting the shipping method: Curl issue

I am receiving this error message, on my local: URL error 77: error setting certificate verify locations: CAfile: /usr/local/etc/openssl/cert.pem CApath: /usr/local/etc/openssl@1.1/certs (see https:...
0
votes
2answers
19 views

₹ Symboles not supporting sales invioce pdf in magento 2.1.5

I have Magento 2.1.5 and that are not supporting ₹ symbols when we generate sales invoices. That pdf not showing ₹ symbols. Please check the screenshot. screenshot: https://prnt.sc/r0qi58 Please help....
0
votes
1answer
23 views

Magento 2 : Creating JS Mixins for anonymous functions?

I would like turn all my js overwrites into mixins. I'm trying to create a mixin for the following file: view/frontend/web/js/action/place-order.js But the function in there doesn't have a name ' ...
0
votes
0answers
30 views

Block class is not getting loaded in magento 2.3.4

I created a simple layout where I specify the block class and the template to be rendered. But it seems like the block and template is not getting rendered. Below is the code. I am trying the CRUD ...
0
votes
1answer
31 views

Magento 2 Get Value of Custom Attribute on Magento 2 Rest API V1/orders/items

I am trying to get the Custom Attribute I have in the sales_order_item to display on the rest/V1/orders/items API call. I was able to get the Attribute to display on the rest/V1/orders API call. Using ...
2
votes
1answer
53 views

Generating other classes beside the core ones

As described in https://devdocs.magento.com/guides/v2.3/extension-dev-guide/code-generation.html some classes are autogenerated on request (or at di:compile) based on some rules. For example if a ...
0
votes
0answers
33 views

AJAX Magento 2 Adding to the database in the background.How to add?

I want to add and output information from the form to the database using AJAX. How to do it right? I would appreciate your help! Here is my attempt: Controller/Index/Index.php <?php namespace ...
0
votes
0answers
19 views

Magento 2 - Get report of simple products inside bundle

In Magento 2 is there any way to get list of sold simple products that are included in bundles? Now Magento shows bundle SKU in the exported report
2
votes
0answers
25 views

Magento 2 checkout stuck on loading after filling billing information

Uncaught Error: Unable to process binding "foreach: function(){return $parent.elems() }" Message: Unable to process binding "template: function(){return getTemplate() }" Message: Unable to process ...
1
vote
1answer
21 views

Magento 2: getting error for all pages We can't create the Wish List right now

php bin/magento setup:upgrade Undefined index: wishlist in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152 display error on frontend We can't ...
1
vote
1answer
34 views

Magento 2 - How to create new product tag?

How can I add a new product tag like 'New', 'Promo'. And need to display it with the product edit page as a toggle. In category pages, it should be near to the product list.
1
vote
0answers
19 views

Does Magento 2 offer .tar.gz file handling?

Magento 2 offers \Magento\Framework\Archive\Tar to handle TAR files and \Magento\Framework\Archive\Gz to handle Gz archives. Does Magento 2 offer a solution to directly unpack .tar.gz files or do I ...
1
vote
1answer
29 views

Magento 2 - How can I show subtotal on checkout page

On checkout page I want subtotal, shipping and grand total in both "Shipping" and "Payment" steps. I have followed this https://magento.stackexchange.com/a/235329/31910 : In view/frontend/requirejs-...
1
vote
0answers
22 views

Disable a dropdown based on Date attribute

I have created a 2 date attribute which is Date_from and Date_to via back-end. Admin can add these dates and related time slots in another drop-down attribute which is choose_date. In the frontend, ...
1
vote
1answer
18 views

Should order async be enabled on production?

I work for a project and "dev/grid/async_indexing" is enabled on production, should it be and for what reason ? (It leads to an issue with "archive orders") Ty
2
votes
0answers
11 views

Magento2 : Change Customer name Prefix to Radio button from Dropdown on Checkout page, cant be at the Osc for mageplaza billing address

need to the Change Customer name Prefix to Radio button from Dropdown on the checkout page I followed this solution Magento2 : Change Customer name Prefix to Radio button from Dropdown on Checkout ...
0
votes
0answers
18 views

More products links on product page

Is it possible to achieve the functionality displayed in below image from any extension out of the box? 1) More blue suits 2) More georgette suits etc..
0
votes
1answer
20 views

Prevent scroll bar from not moving at the top

How can i prevent my scroll bar to not move at the top on click event. Visit https://wazoodle01.wsisites.net/knowledge-base/order-information/wholesale-faq.html# and click on any option listed below....
0
votes
1answer
27 views

Magento2.3.2 to Magento2.3.3 update deploy error

After Magento2.3.3 upgrade got some error like below statement. php bin/magento setup:static-content:deploy -f Deploy using quick strategy frontend/Magento/blank/en_US 3148/3247 ...
0
votes
3answers
40 views

How to change Swatch Image on click swatch options in Magento 2?

I have configured several products so that their images change according to the color selection, however nothing works. I recently installed an extension to be able to modify the sku of my ...
0
votes
0answers
24 views

Magento 2 : ko observable variable checking in template file

I have created a custom payment method using knockout js. I want to display a form only for selecting a drop-down value "Add new card". I have created a KO variable and assign the value initially as ...
0
votes
0answers
28 views

Sorting is not working in magento 2

I modified 2columns-left layout in magento 2 design.After that sorting is not working <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
42 views

Product does not show on Magento2 categroy page

My Product does not show on Magento2 category page.My category page show blank . any body help me.
0
votes
0answers
14 views

What are the functions of Magento resource model? [closed]

Do you have any ideas of Magento Resource Model? What are the functions of resource models?
0
votes
0answers
14 views

Magento 2 Mass Delete Cannot read property 'total' of undefined

I tried to perform mass delete on my custom UI grid but it gives me error in console "Cannot read property 'total' of undefined" i don't understand whats wrong with my code, my gride code is given ...
0
votes
2answers
57 views

How to fetch data from a custom table in magento2 and show in home page

I have created a custom module with a custom table, now I need to fetch the data from the table and display in the home page. I achieved it by applying object manager I know it's not the correct ...
0
votes
0answers
26 views

How to get product stock info in product list rest API in magento 2.3?

To get product details i am using the following rest api. {{magento_base_url}}/rest/V1/products?searchCriteria[page_size]=4&searchCriteria[currentPage]=1 In default it does not return stock_item ...
0
votes
0answers
15 views

Asking for login to see Color and Sizes in Magento 2.3 [closed]

I am using Magento 2.3 On products page it is asking for login to see Products Colors and sizes. Is there any setting for this. I want this to be visible. See http://www.tsme.net/tsme/1701r-adult-...
1
vote
1answer
28 views

Magento2.3 - What is the benefit of Declarative DB Schema over Traditional installation schema for DB management?

At the Magento Imagine Conference, Magento announced the next noteworthy release on the Magento platform – Magento 2.3. It has enormous features, back-end enhancements, and optimizations. So I just ...
0
votes
0answers
16 views

Magento2 - Error on checkout page while adding Configurable product to cart

I am using a custom module, where I want to redirect to checkout page once a product is adding to cart. For this I have created an observer controller_action_postdispatch_checkout_cart_index. For ...
0
votes
0answers
21 views

Use Magento UI Form Component Outside Of Form? (Product Category Selector)

I need to use the Product Category Chooser: But not inside of a usual UI Component form. Is this possible? Basically I want to call it from a .phtml file for a custom admin page I'm building.
2
votes
1answer
31 views

Multiple form in admin form Magento 2

I'm using magento 2.3.4, I have a database structure like this: //event |event_id | name | +---------+-------+ | 1 | Art | | 2 | Expo3 | // score | event_id | judge | score |...
0
votes
0answers
14 views

Magento 2 bulk catalog update not running

Since updating to 2.3.4, when trying to mass update attributes for products, I get a "Pending in Queue" message that isn't being acted on. Crons are installed and working, I have tried deleting ...
0
votes
1answer
27 views

Magento2 - WYSIWYG uploader missing folders

I would like to know why folders are not appearing in the WYSIWYG image uploader. In image1 below, only "test" folder appears (pub/media/test), but I have another folder "test+" that is not appearing ...
0
votes
0answers
19 views

Magento 2.2.4 Porto Theme Patch [closed]

I have upgraded from 2.1 to 2.2.4 but we are now having problems with what appears to be the Smartwave Porto theme. I have looked on Google for hours where you get the Smartwave Porto patches from ...
0
votes
1answer
32 views

Magento2 - Successfully add new column and field for registration. But where does the data save for new field?

I have successfully added new field for the registration form. But the problem I'm facing right now is where does the data save? In which table in database? I tried looking in the customer_entity ...
0
votes
1answer
20 views

Add block from Luma parent into child theme

I'm using a custom child theme with Luma as the parent, I have a custom page layout xml file and I'd like to include a block that's defined in the parent theme: <block class="Magento\Theme\Block\...
0
votes
1answer
20 views

Magento Cloud - how to set my key for magento

How do I setup New Relic license key for my magento on the magento cloud? I don't use Magento CLI often magento-cloud variable:set php:newrelic.license AAAAAAAAAAAAAAAAAAAAAAAAAAA I execute above by ...
0
votes
0answers
17 views

How do I create a new instance of a dependency, instead of using the existing singleton instance?

I'm trying to get all configurable options of a simple product by calling linkManagement->getChildren() in a plugin which runs after Magento\ConfigurableProduct\Block\Product\View\Type\Configurable....
0
votes
1answer
18 views

When I click on Invoice/Ship in Magento 2 Backend, It shows like this

Magento 2 backend shows screen like this, all messed up, when I click Invoice or Ship Button.
0
votes
0answers
13 views

magento 2 tier price is not showing with tax on listing page but its showing perfect on product page with tax

<?php if($_product->getTierPrice()){ $tierPrice = $_product->getTierPrice(); foreach ($tierPrice as $key => ...
0
votes
1answer
18 views

Data Migration Tool - /app/etc/local.xml not have crypt key!

I have a problem for magento migration 1.9.2.1 to 2.3.3.. I need the magento 1.9.2.1 encryption key, but my app/etc/local.xml not contain key string! It's just don't have the line! How it is ...
0
votes
0answers
17 views

Magento 2 after apply Free shipping cart rule shipping price show null instead of zero

I apply free shipping cart rule if subtotal is greater than or equal to 150, rule is work perfectly,but when i go to checkout page, in cart summery shipping price show blank instead of zero. How can ...