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

0
votes
0answers
18 views

Magento Fatal Error on Running Installation

I am facing below Fatal Error on Magento Running installation, Fatal error: Uncaught Error: Class 'MagentoEavModelEntityAttributeSourceTable' not found in /var/www/magento/vendor/magento/framework/...
0
votes
0answers
12 views

Swatches customization in Magento2

I want to customize swatches as implmented on https://www.sweetpeaandwillow.com/brands/handmade-in-london/astrid-bed# it will showing swatches in popup as well change image on swatch value Any help ...
1
vote
2answers
29 views

How can i submit my form data in custom table magento2

my custom_tab1.phtml my custom form is here please help me how to submit form data in custom table in magento2.3 without using objectmanager
0
votes
1answer
33 views

How to show a advance inventory custom field value in sales order view page in frontend and backend in magento 2

How to show a advance inventory custom field value in sales order view page in frontend and backend in magento 2 Product edit page in admin Frontend: Backend: please someone can me help for this
0
votes
0answers
20 views

Magento2 order in customer panel

Want to show all sales/order/view/order_id/XXX into sales/order/history/ by default Magento shows view order items in another page. I want to show them all in main my-orders page
0
votes
0answers
11 views

How can I set header images sizes on Magento 2 and what is it recommended size?

I set almost every size but it did not come to mark! Will anyone recommend me their solution Look the attached Image.
0
votes
1answer
29 views

Need to change the `signin` name in header links in Magento 2

I am building a custom theme and I need to change the signin link name which is not contained in the layout file nor in the phtml file but only in the block class file. So should I build a module in ...
0
votes
1answer
23 views

Add onclick function to input

I want to add a js function to an input field located in a phtml page on my magento 2 I have write my function like below: <script> function qtyzn() { ..... }...
1
vote
1answer
26 views

Magento 2 : how to update <meta charset=“utf-8”>

I want to update <meta charset="utf-8"> tag which was added in header. I research in admin but not found anything related to that does anyone have an idea how to update it.
2
votes
1answer
22 views

Removing block from layout doesn't work

I want to remove the register-link from the header links, so I have wrote in the default.xml of the Module_Customer of my theme: <referenceBlock element="register-link" remove="true"/> The ...
1
vote
1answer
19 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:...
1
vote
0answers
16 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
64 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
24 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
21 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
32 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
8 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
14 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
29 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
46 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
10 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
17 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
27 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
28 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
24 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
21 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
24 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
12 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
13 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
31 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
30 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
16 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
14 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
11 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
20 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
15 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
9 views

Cart page update 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
18 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
29 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 ...
-2
votes
0answers
17 views

Make Model Method access anywhere

I have a class which has a static method. Now I want this method to be access from any module, any class (controller, model, block, etc). The class namespace is Vendor\Module\Logger\Log. On other ...
0
votes
1answer
47 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
54 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
44 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
47 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?