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

All Questions

Tagged with
1
vote
1answer
23 views

Magento 2 products backend, product title in list not the same as what is in product

When I load the magento backend, the product title does not reflect the title that is in the actual product. For example, the product might say, "New jewelry ring set" and but in the actual product (...
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 ...
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
1answer
35 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(...
1
vote
1answer
26 views

Magento 2 how to create Single Time Picker

I know magento provides functionality like Single Time Picker: How to do it? I found how to create date picker and date-time picker. But for my task, i should to create single time picker...
-1
votes
1answer
37 views

addFieldToFilter in magento2 returning same data everytime

addfieldtofilter in magento2 behaving weirdly I have code foreach($userIDs as $singleUserID) { $userid=$singleUserID['user_id']; var_dump($userid);//...
0
votes
0answers
9 views

Problem inside price-box js setting old values

I have overridden the method wrapResult inside: \Magento\Catalog\Pricing\Render\FinalPriceBox.php Firstly the correct price is displayed but after a few seconds it changes the price. I've ...
1
vote
0answers
27 views

Can we backport Magento 2.3.x code to Magento 2.2.x and 2.1.x

I have an extension that works on 2.2.x and 2.1.x and 2.3.x. Magento recently has added MSI support in 2.3.x. I wanted to support this new feature in the extension. But some 2.3.x relate classes are ...
0
votes
0answers
70 views

Magento Theme Error vendor/composer/autoload_real.php on line 70

I am newbie and trying to install a theme with demo/sample data on server and getting error: vendor/composer/autoload_real.php on line 70. /home3/isureb0y/public_html/Magento/vendor/composer/....
-1
votes
1answer
31 views

How can I remove/disable edit button from Address Information Block from Admin sales order detail page

As per specific order status I want to restrict user to make changes in order address i.e I want to disable or remove the edit button from Billing & Shipping Address from Address Information ...
0
votes
0answers
31 views

How to get a custom order attribute value in cart api /V1/carts/mine?

I have created a custom Order attribute "delivery_date" in my sales_order table. Now I want to get this attribute value in my cart API so that I get the delivery_date along with the quote_id in ...
0
votes
0answers
49 views

How to Fix Base table or view not found: 1146 Table Magento 2.1.13 to 2.2

Recently I upgraded Magento 2.1.13 to 2.2 and getting this below while running bin/magento setup:upgrade. Please suggest the fix. Upgrading schema.. SQLSTATE[42S02]: Base table or view not found: ...
1
vote
0answers
58 views

Magento 2 Associate Developer Exam [closed]

I'm starting to prepare for the Magento 2 Associate Developer Exam. Can you help with some tips for this preparation? Some books, tests, sites or something else? Thank you very much.
3
votes
2answers
143 views

Run Magento 2 inside a Docker Container

Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided ...
1
vote
1answer
22 views

Enabling DHL Marketplace in Magento 2

How can I add DHL Market Place in my Magento 2 admin? Been searching on how to enable it but can't find any solution. Should I just copy the download file into the app folder? or do I need to go to ...
0
votes
0answers
11 views

Rest API to a Magento 2 Site

Is there a way to make a REST API call to a website built in Magento 2? The scenario is I have multiple site and the header of these sites are shared whether I go to website 1 or website 2. Now when I ...
0
votes
2answers
209 views

Magento 2 - get final prices include tax and round

I've custom block phtml in my old store and I need to be converted to Magento 2. Magento 1.9.x code: $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(...
1
vote
2answers
23 views

Get Category URL multistore and multisite

I have a 2 website. https://website.com (Default Website) https://site.website.com (Secondary Website) Now I'm accessing the admin panel using the https://website.com/admin/catalog/category... Now ...
1
vote
2answers
47 views

How to save stock taking by name product - update quantity by name product

I wrote update quantity product by SKU, but I also want to update quantity product by name. Only update by SKU or name. Look my form <3 My form My controller public function execute() { $...
2
votes
2answers
144 views

Loading a .phtml file within an Observer Magento 2

I'm trying to load my .phtml files in the template folder within my observer but I'm getting this error Invalid template file: 'VENDOR_MYModule::Category/index.phtml' in module: 'VENDOR_MYModule' ...
0
votes
2answers
156 views

Magento 2 - Get data attribute value and check if has value per product

I create one custom date attribute for my products in backend: I need to get the attribute value in the products list page and to check if the product have any data added for the product. I try ...
2
votes
1answer
208 views

I want hide Add New Customer button for specific admin roles

I want to hide "ADD NEW CUSTOMER" button on customer_grid page for certain admin roles, how to specify Specify ACL's for ui_components..?
0
votes
1answer
51 views

Unable to load the collection in DataProvider by matching values in array

I am trying to fetch Collection of specific ids by using filters in my custom DataProvider public function getData() { $id =$this->request->getParam('id');//returns 5 $answerids=$...
-1
votes
1answer
97 views

Implement Custom REST API end point returns list of best selling products

I have an assignment from clients to implement Custom REST API end point returns list of best selling products. Which I have done here Supports pagination, sort and filter can be filtered by date ...
1
vote
1answer
76 views

Area code not set: Area code must be set before starting a session. While doing upgrade to 2.2

I am upgrading my Magento 2.1.9 to 2.2.7 using these following commands composer require magento/product-community-edition 2.2.7 --no-update composer update Then when i'm doing php bin/magento setup:...
0
votes
0answers
100 views

Decode HTML Knockout JS - Minicart

I use HTML Code inside Custom Options. The Radio Option titles are for example <p class="style1">Option1</p> This way I can style my custom options in css, instead just plain text. ...
0
votes
1answer
150 views

Can not Place Order, Is it Migrate JS Error at Magento 2.2.7 Error?

I have installed Magento ver. 2.2.7 for A MarketPlace Site also Purchased MarketPlace Extension and Installed it Successfully. Before Order Place was working, But Now click on Order Place Button, The ...
0
votes
0answers
18 views

Magento 2: Set Additional options for grouped products

I am trying to add additional information on grouped products, but I am not getting results. I use following code which is working properly for other products but not working on grouped products. ...
0
votes
1answer
157 views

Magento 2 add row total column in simple grid

I have created Simple custom grid without use of UI Component. now, i need to display total end of the columns. anyone know how we can add total in custom grid??
0
votes
1answer
46 views

Lazy loading in Cart page

How to implement lazy loading in checkout cart page ?
1
vote
1answer
47 views

What are TYPE_ORDER and TYPE_PAYMENT transactions?

\Magento\Sales\Api\Data\TransactionInterface has several transaction types. While I do understand the association between authorization, capture, void and refund with the payment methods' commands, it'...
2
votes
2answers
512 views

Add event after user add the product to cart to update quantity

I am beginner in magento 2 and I am trying to create an event and observer that will update the qty of item to 2 from default which is 1 when user add the item to cart. For this I successfully created ...
0
votes
0answers
30 views

Tax issue with my site

I am having an issue where when I try to select that the tax calculation should be based on "shipping address", The tax is not being shown. If I select "Shipping Origin" the tax shows. I need the tax ...
0
votes
2answers
106 views

Failure reason: 'Unable to unserialize value, string is corrupted.' after upgrade magento 2.1.5 to magento 2.2.6

I have upgraded Magento 2.1.5 to Magento 2.2.6 but after that I am getting error in running upgrade command: Error converting field value in table quote_item_option where option_id=85330 using ...
0
votes
0answers
34 views

State/Province conditions not working on any of my rules

Any time I include a state/province condition on any cart rule the condition is totally ignored. Every other conditions is taken into account and working accept the state/province conditions. Can ...
4
votes
1answer
113 views

Cart Price Rules having issues

So I created a rule with these conditions: Everything is working fine except for the State/Province conditions. It seems the rule is not taking the conditions for the state/province section. My rule ...
2
votes
0answers
92 views

Error with Free Gift Extension [closed]

I am getting this error after installing an extension. "The configuration parameter "componentType" is a required for "ampromorule_top_banner" component." The error is shown whenever I try to add a ...
1
vote
0answers
37 views

How to display shipping and billing forms at same time on checkout page? [duplicate]

So I need for my shipping and billing form on checkout to display both at the same time. Right now only the shipping address is being shown and the billing address has a checkmark where it says "my ...
0
votes
0answers
14 views

Magento2 - Receive a POST Request parameter in Payment Model Capture function

I would like to get a post parameter in the capture function of my custom Payment Model class. How can I achieve this ? Do I need to inject \Magento\Framework\App\Request\Http $request object via a ...
0
votes
0answers
49 views

Magento site keeps coming down on random days

The site goes down at least once a week and when it does I get this error message: "Object DOMDocument should be created." Can anyone help? How can I stop this from happening. After it goes down all ...
0
votes
0answers
62 views

How to redirect on success page using controller in magento 2?

I am getting orders data after place order using Ajax and pass it to the controller and then save that data into a database. The data saved successfully in the database but unable to redirect to ...
1
vote
1answer
142 views

HELP needed with DOM error

jquery.min.js:206 Uncaught DOMException: Blocked a frame with origin "https://www.test.com" from accessing a cross-origin frame. Getting this error. Can anyone help?
1
vote
0answers
217 views

Magento 2 how to change url of attribute filter layer navigation?

I want to change color=red instead of color=18. I have change here : vendor\magento\module-catalog\Model\Layer\Filter\Item.php we have getUrl() function public function getUrl() { $query = array(...
0
votes
1answer
165 views

Magento 2 : No products displaying on sub category pages

On sub category listing pages there should be a grid view of all products in that sub catagory, however the page is not displaying any of the products. The parent categories are set to not show ...
1
vote
0answers
285 views

Magento2: Add Edit/Delete action link in separate Column in Admin Custom Grid using layout

I have created admin grid using layout. and i have added column generation code in app\code\Demo\Grid\view\adminhtml\layout\demo_grid_test_index.xml i am able to use below code for edit row, but i ...
1
vote
1answer
125 views

how we can get product name , image, price and url in magento 2 product factory collection

How we can get product Name, image, price url in magento2 product factory collection
0
votes
0answers
262 views

Address Information And Customer address are not showing in magento 2

I have upgrade m2.2.1 to m2.2.5 but address template or customer address are not working This is not only in order view, but also everywhere that displayed the customer address by the template and ...
0
votes
0answers
29 views

Magento 2 remove unwanted paramaters from category tree response

I have used magento 2 tree structure method to get the list of the category and it's sub categories. I need only Category name,category id and children only in response. How can i remove all this ...
0
votes
0answers
42 views

Billing Address issue on checkout

I need that every time a user visits my checkout page in Magento, for the user to see both Shipping and Billing Address forms fully opened and editable. Currently only the Shipping address is opened ...