Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

1
vote
1answer
25 views

Magento 2 UI form Multiple image upload

I have implemented multiple image upload using the following code. <field name="press_images"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
3
votes
1answer
30 views

Custom FilterList incorrectly sets Collection size in Layered Navigation

In order to add a custom filter to the Layered Navigation, I overrode the class Magento\LayeredNavigation\Block\Navigation\Category to load my own FilterList class instead of the one from core. My ...
1
vote
3answers
72 views

how to add negative qty product into cart in magento. 2

How to add a out of stock (less than 0 ) product in shopping cart in magento 2 In my backorders setting i have custom option as Allow pre-order when i select a custom option and saved a ...
1
vote
1answer
25 views

Find the block class instantiated into a phtml file

I need to modify a block class called in a phtml file, this is the customer.phtml file: <?php // @codingStandardsIgnoreFile ?> <?php if($block->customerLoggedIn()): ?> <li ...
2
votes
2answers
27 views

How to add a custom text block in shopping cart in magento 2?

How to add a custom text block in shopping cart in magento 2?
3
votes
1answer
34 views

Error while running bin/magento setup:di:compile

After running bin/magento setup:di:compile I get the following error. Errors during compilation: Vendor\Module\Ui\Component\DataProvider\OutfitProvider Incompatible argument type: Required ...
0
votes
0answers
10 views

Google indexing cookie message instead descriptive content

We recently push live a new website and as it has a global reach we enable the cookie policy warning to everyone in the first access. The issue is that Google is indexing it as the body content as you ...
0
votes
1answer
15 views

How to add MSI Integration in Magento 2.1

I am using Magento 2.1. I know Multi-store inventory is available in Magento 2.3. But now I need to add multiple sources for Magento 2.1. I couldn't find any blogs or information regarding this.
0
votes
1answer
34 views

In magento 2 how to override stock availability in product detail page in custom module

In magento 2 how to override stock availability in product detail page in custom module app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page ...
2
votes
0answers
16 views

Multiple Image upload restrict up to 10 images

How to add multiple image upload in magento 2 and restrict to only 10 <field name="images"> <argument name="data" xsi:type="array"> <item name="config" xsi:type=...
0
votes
1answer
50 views

Magento2 customer dashboard

How can I show last order view on my customer panel dashboard? by default it shows last orders... I want to show last order view(detail) on dashboard. finally i tried this code foreach ($_order->...
0
votes
1answer
14 views

Change Product Custom Attribute Id in Magento

I have mistakenly deleted custom product attribute. Now This attribute has been used on many places with attribute id value. I tried to create new attribute with same name but it is having auto ...
2
votes
0answers
17 views

What is the scope of source model extend and implement?

What is the scope of source model extend and implement between these two? \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource \Magento\Framework\Data\OptionSourceInterface Attribute options ...
0
votes
1answer
25 views

Add Continue Shopping button in checkout page Magento 2.3.1

Can anyone help me on how to add the "Continue Shopping" button? please see attached screenshot. https://imghostr.com/ySnHx3Cb
0
votes
2answers
30 views

In magento2 how to override a add to cart button in both product list and product details page in custom module

Product detail page: Category Product list catalog_product_view.xml <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
30 views

My orders in customer panel

Want to merge order view in my order Mean that, when I click on my orders tab, see all orders with detail not just orders number and view icon. how can I merge these two pages?
1
vote
1answer
40 views

Uncaught Error: Call to a member function dispatch() on null View\Element\AbstractBlock.php on line 652

help needed i am creating a factory in block and get data from model it give result in block but when i return this factory and use this block function in phtml file it give error " Fatal error: ...
1
vote
0answers
20 views

Product page and category page disappeared

Developed on developer mode and everything is OK, just set production mode, home page and admin panel is OK but category page completely disappeared and shows a blank page and also product page is ...
2
votes
1answer
27 views

Add UI component Field in Block form

I want to add an image field of UI component on traditional block form. I want to replace only this field with UI component. The reset field should be in Block class form. $fieldset->addField( ...
0
votes
1answer
32 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
0
votes
0answers
13 views

Magento2 Customer Session Issues

I am getting below error message in exception.log SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: UPDATE `customer_visitor` SET `customer_id` = ...
0
votes
0answers
14 views

Show Block class image upload to Ui form image upload

How can i change from this To this My Code to create image upload is below. I don't want to create the form with UI component but i want to make the image upload like it. $fieldset->addField(...
4
votes
1answer
33 views

Add product grid in custom module using ui component

I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this What i am doing wrong can any one help me on this. Edit Controller ...
1
vote
1answer
33 views

Swatch Thumbnail in Minibag

When selecting a swatch and adding an item to the bag the master product image is shown in the minibag. We would like the image of the selected swatch to be the thumbnail. Is there a script to do this?...
2
votes
0answers
17 views

How to display Vat Tax & Product Price separately on cart page in Magento 2

I'm using VAT tax as including in product prices, But on cart page in Subtotal section i want to show original product price + Vat tax as separately. I'm trying but i could not fix this issue. in ...
2
votes
0answers
21 views

How to reset life sales=0 in Magento dashboard?

I have run below-listed queries: SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE `gift_message`; TRUNCATE TABLE `quote`; TRUNCATE TABLE `quote_address`; TRUNCATE TABLE `quote_address_item`; TRUNCATE ...
0
votes
1answer
18 views

Magento 2 read custom xml file from third party server and load it in our magento site

I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible. Not any authentication set. <valley street name="jackson"> <item> &...
1
vote
0answers
13 views

Open Model containing Ui Listing

I have Two tables table1 has id and other fields and table2 which has id, foreign key of table1 and other fields. I have create a ui listing for table1 and added a button to go in table2 ui listing. ...
0
votes
1answer
22 views

How to Reload Magento2 Site after SSL Certificate Instalation

I discovered that our magento site SSL certificate expired before we were able to renew it causing the homepage to be defaced and leaving visitors with the option to have to manually bypass the SSL ...
0
votes
0answers
18 views

Magento2 Split Order Functionality

I am using b2b marketplace extension in my website. I need to split orders based on vendor id. I got one split order module https://github.com/magestat/magento2-split-order , which is splitting orders ...
0
votes
0answers
18 views

Magento 2 : Cart page “update” button is not working

While trying to update my product quantity in cart page it giving an error "something went wrong". Does anyone have any idea why it's happening?
0
votes
0answers
21 views

Cancellation of individual product from the order

Cancellation of individual product from the order, when a customer orders multiple products, not the complete order. Magento has such functionality to implement this or using any third party extension ...
0
votes
0answers
20 views

Magento2 Layered Navigation With Filtered count

In magento2 i am using layered navigation to filter my products. I have a clothing store which needs to filter the attributes. For example I have Material Attribute & Origin Attributes. I have 3 ...
1
vote
1answer
31 views

Difference between core_abstract_delete_after and core_abstract_delete_commit_after events in magento 2

Can anyone please explain to me what is the use of core_abstract_delete_after and core_abstract_delete_commit_after events in magento 2. For your information, it is declared in (Magento\Framework\...
0
votes
0answers
9 views

Get proper category url for Multisite

I have created a category for each website so one root category for website 1 and another root category for website 2. Now website 1 is set to a domain url of https://website1.com and this is the base ...
0
votes
1answer
53 views

How to set Shipping Tax Class in Magento2

I want to apply shipping tax class based on products in cart. How can i change the shipping tax class in magento programmatically. I tried below links but i am getting total tax amount. I need to ...
4
votes
1answer
68 views

Difference between SearchCriteria VS SearchResults Vs SearchCriteriaBuilder and when should we use it?

For searching in repositories we are using searchCriteriaInterface but i noticed sometimes we are using SearchCriteriaBuilder as well. In which case we should use searchCriteriaBuilder? What's the ...
0
votes
2answers
54 views

Error While Saving Order Data

I created one module for bank transfer which will collect data from customer. This is working fine when i placed an order. But when i edit an order from admin and try to add comments to order then it ...
0
votes
1answer
58 views

Magento 2 : How to put reorder link programmatically? show on particular order

How to put reorder link in magento 2 programmatically? I have find record and last column show reorder link how to in magento 2?
1
vote
1answer
35 views

Patch PRODSECBUG-2198 for Magento Enterprise Cloud

it has been some time after my last experience with Magento 2 and I've been asked to install a security patch, as in the title. My problem is due to the fact that I've never used a cloud ...
0
votes
1answer
36 views

Always show login form on checkout page [duplicate]

Currently, in Magento 2 the login form is visible only when I enter an email address, that only if there is an account on the system. I want to show the login form even if the user doesn't enter his ...
1
vote
1answer
21 views

How to add new custom language Magento2

Using magento from: -> Stores -> Configuration -> General -> Locale Options, i can select the language from my country(Angola-Portuguese). But using Magento command line for exemple: php bin/...
2
votes
1answer
27 views

Unable to access the PUT API service of Magento 2 through Python

I'm trying to update a particular product in Magento through PUT using python. I'm using OAuth1Service for authentication to Magento 2. GET products is actually giving me all the products in Magento ...
1
vote
2answers
38 views

Magento 2 : Get last five order information using DI on homepage?

I want to get last 5 order information on home page. Question : How to get last five order collection information on homepage? NOTE : Avoid giving answers using object manager. Any help would be ...
0
votes
0answers
16 views

how to get orders in table form? in magento 2 table form is Order #,Order Date,Order Total,Total Item,Action

How to get orders particle date vice. How to do this one form create and search button click & add date or order Id enter and the same page get all date of information purchase items to show all ...
2
votes
1answer
59 views

How to solve upgrading Magento 2.1.1 to Magento 2.1.17?

I am faced issue when I upgrade Magento 2.1.1 to Magento 2.1.17 I changed some values in composer.json "magento/product-community-edition": "2.1.1", =>"magento/product-community-edition": "2.1.17"...
2
votes
0answers
36 views

Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?

Get Favourite product in Magento 2 REST API with URL? And Add to Favourite in Magento 2 REST API with URL?
2
votes
0answers
48 views

Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE'

I am constantly getting this error/Notice on my system logs: Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE' is not allowed in /data/vhosts/edgars/web/lib/Zend/Pdf/...
0
votes
1answer
27 views

Auto-expand subcategories in product form

I have a category with subcategories, and I want to have the subcategory visible from the beginning, when the user opens the category selector. Currently, the user has to click the arrow next to the ...
0
votes
1answer
37 views

Magento 2 send data using ajax in custom form

How can i accomplish it? Here is my controller: public function execute() { $data = $this->getRequest()->getPostValue(); $resultRedirect = $this->resultRedirectFactory->create(...