People who code: we want your input. Take the Survey

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
0answers
3 views

There has been an error processing your request after complete payment - magento 2

hi i faced problem with my magento after the customers pay.. they faced this errors messages There has been an error processing your request Type Error occurred when creating object: Vendor\...
0
votes
0answers
3 views

error popper.js

I'm getting an error related to popper and I don't remember what this file was, has anyone been through this? I would be grateful if you would help me. It looks like this file doesn't exist, but I don'...
0
votes
0answers
6 views

jquery elements only work sometimes

I'm trying to use a jquery element but it only works sometimes, I put the following loading order but I don't know if it's right. <script src="js/jquery-ui.js"/> <script src="...
0
votes
0answers
7 views

How to increase fotorama zoom in Magento 2 fullscreen

I'm tring to edit the view.xml to incriese the image zoom at fullscreen mode. I need the zoom 4 times bigger compared with magento 2 default size, but I reaaly have no idea whats is the configuration ...
0
votes
0answers
12 views

Is it possible to load jquery and other js files into magento 2 footer?

Guys I would like to know if it is possible to load js files in magento 2 footer. For example using the tag . And how would I do that?
0
votes
0answers
9 views

Render PHTML Below Form on Submission

I am building a custom module that adds a form to the "My Account" section. In this form, a user inputs a range of prices, and upon submission, a list of products are returned. I currently ...
0
votes
1answer
13 views

how to initialize a jquery.js file from a .phtml file?

In I want to initialize my jquery.js file into a possible .phtml file? Which path do I have to use? i'm using a geito so far but it doesn't seem to work. I'm inside a template file and I want to ...
0
votes
0answers
7 views

Make mandatory authorization on the guest checkout if the account exists

At the moment, if guest checkout is enabled, then the user can make an order without logging into an account if he has one. Because of this, orders are not linked to existing accounts if the user paid ...
0
votes
0answers
8 views

Magento 2 file upload error

I have upload customer image using ajax.I have upload images jpg,png,jpeg etc extension is working fine.But i have upload pdf extension showing below error Notice: Trying to access array offset on ...
0
votes
0answers
2 views

Magento 2 : Apply Cart Rule to Base Price not Special Price

Good Day, Mates! I am using Magento 2.4.x and try to change its cart price rule mode, I simply want to calculate all discounts (percentage or fixed amount) on Base Price. For example, If a product has ...
0
votes
0answers
5 views

Child Theme is not working in Magento 2.4.2 Enterprise Version

I had created the Child theme in my Magento 2.4.2 Enterprise Version, The Child theme is created and it is showing in admin panel we also applied the Child theme using admin panel, and ran the ...
0
votes
0answers
3 views

Delete button not working in dynamic rows

I have added dynamic rows using generic block method. <?php namespace Vendor\Module\Block\Adminhtml\Blocks\Edit\Tab; use Magento\Backend\Block\Template\Context; use Magento\Config\Block\System\...
0
votes
0answers
5 views

Issue with catalog products Magento 2

I noticed a very strange error. Filter: https://prnt.sc/1569rkn Total results: 3573 records found Now I export products in csv with the same rule and I get only Exported 2423 items.: https://prnt.sc/...
0
votes
0answers
6 views

Magento2 how to prevent SKU duplicate

I using Magento2, when adding new product with same SKU (already into system) it prevent to add product, but in Magento2 it added with news sku as SKU-1. can we have prevention to add new products
0
votes
0answers
5 views

How to show different shipping option for backorder product NOT IN STOCK in Magento 2.4 on checkout page using popup

Hello There, I'm trying to show three shipping options for out-of-stock product backorder on the checkout page, but I'm new in this field and don't know how to do this. GATHERED Wait to send the ...
0
votes
1answer
16 views

How to show uploaded image in dynamic rows?

I have added image field in dynamic rows like below $this->addColumn( 'image', [ 'label' => __('Image'), 'renderer' => $this->getImageRenderer() ]); private function ...
0
votes
0answers
8 views

Webkul Magento 2 Multivendor marketplace seller wise product URLs [closed]

I have Webkul's Magento 2 multivendor marketplace extension installed and configured. I want product URLs to be sellers based. The current product URLs is www.domainname.com/product_name_1.hmtl I want ...
0
votes
1answer
19 views

How to add custom style from _prepareArrayRow(\Magento\Framework\DataObject $row) function?

I have added a color picker in dynamic rows using below code: protected function _prepareToRender() { $this->addColumn( 'color_code, [ 'label' => __('Color Picker'), 'renderer' => $this->...
0
votes
0answers
2 views

Magento2 MultiStore Set Image as small, base and thumbnail programmaticaly not working

Requirement:- Upload multiple images from external url and mark them as thumbnail/small or swatch images. Using multi website, multi store. Issue:- When i tried to do this by custom api in that case, ...
0
votes
2answers
14 views

How to specify which page js module is included on

I am following this tutorial https://devdocs.magento.com/videos/fundamentals/add-a-javascript-module/ At the end of the tutorial it says Now we’ll go to any product view page, and we should see the “...
0
votes
0answers
10 views

Magento 2 - how to obtain list of order ids where status is processing

How to obtain list of ids or simply list of orders where the status = processing using objectManager ? (in external script)
0
votes
2answers
13 views

Magento intallation error 500

I'm trying to install Magento 2.4.2-p-1 but I'm getting Internal Server Error 500 Note(I've already tried all these options but No progress) Please guide me it's my first time to start work on Magento ...
0
votes
0answers
12 views

How to call javascript function in magento 2

<div class="block social-login-authentication-channel account-social-login"> <div class="block-content"> <div class="actions-...
0
votes
0answers
9 views

Clear cron status message not in database or log files

I'm running Magento Enterprise 2.4.1 and I'm seeing a message on admin screens for more than a month that says "Update attributes for 3 selected products"; 1 item(s) have been scheduled for ...
0
votes
1answer
10 views

There has been an error processing your request: “0”:“Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded”

I am attempting to set up my local environment for Magento. When I try to view the front end, I get the following error on the page: There has been an error processing your request Exception printing ...
0
votes
0answers
14 views

Create order with configurable product magento 2.3.2

I am creating order programmatically for configurable product but not able to create order with color and size option. getting error "PHP Fatal error: Uncaught Error: Call to a member function ...
0
votes
0answers
9 views

Not getting email when creating shipment through API in magento 2

I am using API call to create order shipment. $ch = curl_init("https://store-url/index.php/rest/all/V1/order/17168/ship"); It creates the shipment but not sending shipment email. Please ...
0
votes
0answers
10 views

Promotion Rule not getting set as required

I need to set following scnerio. If cart total > 89, 1 free product is added to cart from 5 product option (If this is applied then no other rule should be applied like 5% off) only 149 should be ...
1
vote
1answer
48 views

Is there is a way to apply automatic coupon code in Magento 2 if total is greater than 1000?

I have a Magento 2.4 Store in which i want to auto apply coupon code when the total of the product is greater than 1000. Like i don't want to enter that in discount box Like here i don't want to ...
0
votes
0answers
6 views

Magento 2 - Copy Related Products input select code, to add checkbox on productpage

We would like to copy the method of the related products, that a customer can check a specific input and when then click the add to cart button. We would like to use a specific sku that is connected ...
0
votes
0answers
11 views

Magento 2 adding you own custom RSS Feeds

I want to create Rss Feed for my Custom Content (Ex. journal, Blog). I am using extension for Custom Content. I found the same my question here Custom Rss Feed In Magento2 But no answer for my ...
0
votes
1answer
15 views

Magento 2 PWA Get product reviews

How I query magento 2 to get the ratings for the particular product. Any one can help me.
0
votes
0answers
4 views

Magento 2 - Braintree Googlepay button missing in checkout

I am trying to add braintree google pay payment method. But getting error in checkout page and google pay button is not showing any content. When I first enabled, it worked for few minutes then it ...
0
votes
0answers
29 views

save custom fields on add to cart button click

Hi i am trying to save custom field on the click of add to cart button to quote and sales_order table. below is my upgradeschema.php class UpgradeSchema implements UpgradeSchemaInterface { public ...
0
votes
1answer
16 views

How to migrate the custom product attribute created in test environment to production?

I have created many (more than 5) custom product attributes in a new attribute set in dev environment, do I have to create them manually ? or is there an easy way to migrate them to other environments ...
0
votes
1answer
31 views

Unable to send form data to a different controller using AJAX

I am trying to build a custom module that adds a form to the My Account page. The page where a user inputs data is in the productrange page while the output should be shown on the result page. I am ...
0
votes
0answers
15 views

Images missing after upgrade

I have updated my site to Mage2.4.2, after the upgrade some of the products missing the images, instead of the original image it's loading no image.Is there any way like MySQL query or code that will ...
0
votes
0answers
11 views

M2: How to validate checkout if certain region is selected?

I need to know how to validate if certain region is selected and prevent placing orders. The thing is that the carrier told us that certain regions are out of their services so if the customer select ...
0
votes
1answer
7 views

How to verify an encrypted module admin configuration from my database?

When a module configuration is saved in an encrypted mode I just see dots in the admin panel, as the image below shows. When I check in the database via Magerun the result is that below. n98-magerun2 ...
0
votes
1answer
25 views

Custom Tab in My Account Page Not Showing Up

I am currently trying to add a tab called "Product in Range" under the My Account section. The tab is showing up on the My Account page but once I click, I get a page not found error. Can ...
0
votes
0answers
4 views

Magento2 - extend Category API save functionality

I am trying to extend the save() functionality on magento2, when it handles an Catalog / Category API call. I do not want to extend any events, as I figure they're being handled globally which is not ...
0
votes
0answers
9 views

Magento 2 add custom field in checkout place order

Need to add new custom validation on the checkout page before place order. The place order should work only when the calculation shown above is correct and also to show different values to sum. I ...
0
votes
0answers
12 views

Hide Default all Tab in product Edit except one custom

I want to hide the products tab and show only one tab in the product add time for a particular admin role for this I used the below code. Admin di.xml <?xml version="1.0"?> <config ...
0
votes
0answers
11 views

Hide Out of Stock Products On Category Pages but show for swatches

Magento 2 has an option to set "Display out of stock products" and that is working perfectly to show all swatches, but this also has as affect that all category and search pages are filled ...
0
votes
0answers
9 views

Magento 2: Invalid header value detected

On opening a certain product page, we are getting the following error "exception":"[object] (Zend\\Http\\Header\\Exception\\InvalidArgumentException(code: 0): Invalid header value ...
0
votes
0answers
11 views

Content staging for different magento installations

We currently have an integration and a production stage for our magento shop. The goal is that we configure and create content (products, cms, ...) on the integration stage and deploy them on the ...
0
votes
0answers
9 views

Show Tire Price In Descending Order

Is there way to show magento 2 tire price in descending order?Like in picture.The maximum Disocunt row come at top .
0
votes
0answers
13 views

Magento 2 API - Category creation error

Trying to create a category through API. But i'm getting an error { "message": "Could not save category: %1", "parameters": [ "The \"Is Home ...
0
votes
0answers
7 views

Magento 2 base_tax_amount with 4 decimal places

When getting order details from Magento, the base_tax_amount currently gives the price with only 2 decimal places, i.e 1.23, is there any way of getting the price with 4 decimal places? i.e 1.2345 ...
1
vote
0answers
9 views

What is the use of “hasForcedCanCreditmemo” method in magento 2?

I have found this method in Magento2/vendor/magento/module-sales/Model/Order.php if ($this->hasForcedCanCreditmemo()) { return $this->getForcedCanCreditmemo(); } ...

1
2 3 4 5
873