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
0
votes
1answer
13 views

Redirecting to setup page problem

I'm trying to access my already existing website that was clone from our repository. Now upon access it keeps on redirecting me to the Setup page. I'm not sure what happen but I already some suggested ...
0
votes
1answer
18 views

Extend custom button and trigger mage.catalogAddToCart

I created a custom button. What I want is for it to trigger the Add to cart function. Aside from the default add to cart button I want a new add to cart button that will do the same thing. How can I ...
1
vote
2answers
24 views

validate-product.js being loaded twice

I added the validate-product.js in my custom module. But when I refresh the page it's loading 2 instance of the validate-product.js. The first one is the js file from my custom module the second one ...
0
votes
1answer
31 views

Pause add to cart function after ajax

I'm generating a filename via AJAX Jquery. Now I need this filename to be saved. My current process is to call a controller that will do the image saving and it will return a filename/filepath back. ...
1
vote
1answer
46 views

Delete CMS Block programatically

I just created a CMS Block but I want to remove this programatically. So whenever I run bin/magento setup:upgrade it will delete the block first. Then after that recreate. I decided to do it this way ...
0
votes
1answer
16 views

Call block action using Ajax

I would like to call an Action from a custom block that I created which is extending the \Magento\Catalog\Block\Product\View class. Now the idea here is that I will be clicking on the Add to cart ...
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 (...
0
votes
0answers
32 views

Why would you add the modules array in app/etc/config.php to source control?

As of Magento 2.2 it's recommended to add config.php to your source control to facilitate pipeline deployment. I have some questions and issues with this. I'm hoping somebody can share their ...
0
votes
0answers
16 views

How to change color of website dynamically in Magento 2?

I have installed Marketplace extension in Magento 2 and I have overridden default luma theme. In the Marketplace system, every vendor has a different domain or subdomain of the vendor's shop, every ...
1
vote
2answers
29 views

Adding Magento_Catalog to Custom Module

I wanted to override the content of addtocart.phtml which is located in vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml Now I want to modify the content of this ...
0
votes
0answers
8 views

Add custom widget to created block in install magento

I wanted to add my custom widget to a block that I will be creating under install function. But I can't find any tutorial on this. Right now I have copied the code from here so it creates a block. But ...
3
votes
1answer
18 views

Display custom widget to specific product

I created a custom widget. Now I want it to display into the specific product page. Example I have Product 1 and Product 2. I want my custom widget to display in Product 1 but not in Product 2. How ...
1
vote
1answer
35 views

Unable to process binding click: function()

I'm trying to implement a click event in one of the button I added under the Magento_Checkout module specifically under payment.html view. Now I added the below code File location: app/design/...
1
vote
1answer
15 views

JS Scripts triggers Cart/Delete

I want to know what JS file and where can I find the JS file that triggers the cart->delete. I'm using Magento 2.3 and upon searching I found a file in vendor/magento/module-checkout/Helper/Cart.php ...
4
votes
2answers
259 views

Magento 2 - Slick slider function not working

Slick slider function is not working after ajax response, This is the order of my code. Firstly I got a product collection response, Then I wrote a slick slider function. but slider function is not ...
0
votes
0answers
6 views

Customize Frontend Menu in Admin

Is there a way or what should I do if I want to use the Frontend Menu generation? The idea is to use the menu generation in the frontend and use it in the Admin area. I have an observer that listen to ...
3
votes
2answers
137 views

Magento 2 - Get Collection using custom product Ids and also sort them as the same order as product Ids passed

I need to get the collection using custom product Ids but it should sort the collection based on the sequence product Ids given Here is what I am doing now, but it is not sorting in sequence $...
0
votes
0answers
65 views

User Login not Working after Migration 2.2 into 2.3.1

I have Just Migration Magento 2.2 store in 2.3.1 Version but Customer User login not working after that. Give me below error. The account sign-in was incorrect or your account is disabled ...
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
43 views

Magento 2.3 removed Webservicex and Yahoo Finance Exchange

What i see in magento 2.2 and 2.3 is that Webservicex and Yahoo Finance Exchange are removed. Why are they removed? What are the alternative to them? How can i add them back?
1
vote
2answers
121 views

Magento 2 - Controller with parameter

I want to create the controller which get the parameter like http://example.com/manufacturerpages/index/id/497 When I do this, It goes to 404 error plus I am also not able to get the id in ...
1
vote
1answer
44 views

Magento 2 - Category page `addAttributeToSort` not working on custom product attribute

I used the following code for sorting on category page. if($this->getCurrentOrder() =="latest_products") { $collection->addAttributeToSort('significance', 'DESC')->getSelect()->...
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(...
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...
0
votes
2answers
124 views

Magento2: WYSIWYG / TinyMCE Editor every time removing <a> tags in CMS blocks

I am adding HTML in CMS block editor but it keeps removing <a> tags from Html. Does anyone have a solution for this? Thanks
-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);//...
3
votes
2answers
87 views

Braintree charging twice when order is shipped

We are facing an issue that the transaction is being created twice on Braintree and our clients have been charged twice. What we found is that the TransactionTime on Braintree is the same for when ...
1
vote
1answer
77 views

Magento 2 checkout login with mobile number or email

I want to allow the customer to Log in using email or mobile number on the checkout page and the login page. Note: Mobile number is customer eav attribute.
0
votes
0answers
20 views

magento 2 admin system message twice

Just updated to 2.3.0 and after deploy in admin section i had the following bug: How can i solve this?
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
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
19 views

How to add custom less file for particular page (product listing page)

I am building a custom theme in Magento and Luma theme is my parent theme. I am trying to customize the product listing page with my own style. Here is what I did I copied list.phtml from module ...
0
votes
0answers
33 views

Compile email-inline.less not working

I created a header.html located in the app/design/frontend/{VENDOR}/{MODULE}/Magento_Email/email/header.html not within this header.html I added a div tag that has a class of custom-border. <...
2
votes
1answer
68 views

Which tables are updated in data migration tool Map step

In Magento data migration tool, we have a map step which migrates catalog and sales data. As I only want to migrate sales data, I need to ignore the unwanted tables in map.xml that are related to ...
1
vote
0answers
60 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
1answer
139 views

Create shipment and invoice in mass action

I want to create shipment + Invoice using mass action in order grid. Can anyone tell me the approach to do this? Share code if possible otherwise approach would be good. Thanks.
2
votes
1answer
86 views

Magento 2.2.5 After Upgrade To 2.3 CLI commands don't work

I upgraded magento version by documentation, after upgrade this happens: When running php bin/magento cache:flush or any other bin/magento command error appears There are no commands defined in the "...
2
votes
4answers
133 views

Magento2 : How to add custom link in footer inside newsletter block?

To add custom link in newsletter block magento 2 ??
0
votes
1answer
84 views

How can i add custom button (not add to cart) in product page in Magento2?

I want to add a new button to the product page , in which file can I add or should I create a module for this?
2
votes
1answer
53 views

How to change tab position sorting order from admin catalog product Magento 2

Need to change sorting order up/down tab product add/edit from admin catalog product.
1
vote
0answers
67 views

Missing required argument

Just updated to 2.3.0 and when i try to open Stores -> Configuration -> Sales -> Payment Methods i get following error: Exception #0 (BadMethodCallException): Missing required argument $version ...
3
votes
2answers
86 views

Unlink and link product to category

Need a script where current existing products needs to unlink and link to other categories. let me know the process also
1
vote
0answers
133 views

Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio()

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer, string given, called in /Users/mpxq2/Projects/server/...
1
vote
2answers
483 views

We can't find products matching the selection

I just updated to 2.3.0 and when i try to open any category page -> instead of filters i'm getting "Compare products" and "My wishlist" + . instead of product list getting message "We can't find ...
0
votes
1answer
73 views

2.3.0 store not found while reindex

php bin/magento indexer:reindex ... ... Catalog Search index has been rebuilt successfully in 00:00:20 The store that was requested wasn't found. Verify the store and try again. ...
0
votes
3answers
57 views

Undefined variable: modelRepository

Notice: Undefined variable: modelRepository in /home/server/web/server.dev.vendor.com/public_html/app/code/TemplateMonster/FilmSlider/Block/Widget/FilmSlider.php on line 121 public function ...
5
votes
2answers
10k views

Magento 2 - I need to create simple custom report with date range and other column filter (filter should be outside of grid)

I need to create custom report which is just like magento default reports. I go through the Internet I found this https://github.com/degdigital/magento2-customreports but In this report data is ...
2
votes
1answer
100 views

Declaration error during compile

Just update to 2.3.0, use setup:di:compile and get following error: Warning: Declaration of Iksanika\Productmanage\Model\ResourceModel\Search\Collection::_getSelectCountSql($select = NULL, $...
2
votes
2answers
195 views

PHPUnit_Framework_TestCase not found

just made upgrade to 2.3.0 and while compilation get this error: server@server:~/web/server.dev.company.com/public_html$ /usr/bin/php7.1 bin/magento setup:di:compile Compilation was started. ...
2
votes
2answers
238 views

Order Status Processing after Shipment and Generate Invoice also Invoice status showing pending in Magento2

Shipment completed and generate invoice but order status showing Processing and invoice is in pending. Also invoice showing a Capture button. why? Anyone Know?