All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
33 views

Magento2.3.3 :Get Value of Custom Product Attribute on Magento2 Rest API V1/orders/

I am trying to get the Custom Product Attribute (uom). I want to get the Attribute value to display on the rest/V1/orders API call. m using this https://magento.stackexchange.com/a/303780/68018 app/...
1
vote
1answer
25 views

How to setup specific tax rule for a specific website in magento 2

As per We required to set up a specific tax rule for a specific website. to set website-specific tax rules. Please give me a suggestion or link or any programmatic script so I can do this ASAP Thank ...
0
votes
1answer
35 views

Integrity constraint violation: 1062 Duplicate entry for key 'EAV_ATTRIBUTE_GROUP_ATTRIBUTE_SET_ID_ATTRIBUTE_GROUP_NAME'

I've created a custom module that includes a script (InstallData.php) that adds a new attribute to an existing attribute group (Product Label): 'group' => 'Product Label' However, when I enable ...
1
vote
1answer
20 views

Magento 2: Custom customer attribute not saving on DB

I have added a custom customer attribute on_account. It is displayed as expected in the admin forms: to create a new customer or to edit an existing one, also when creating an Order with a new ...
1
vote
0answers
24 views

Connection closed by remote host [closed]

I am getting Connection to 79.951.791.91 closed by remote host error while migrating from Magento 1 to Magento 2. What is the solution ?
1
vote
1answer
30 views

Unable to send the cookie with cookieName

when i execute this code after purchase with 3 products or more $cartManagement = $objectManager->create(\Magento\Quote\Api\CartManagementInterface::class); $orderId = $...
1
vote
0answers
11 views

What real world items do ShippingAssignment objects correspond to

I've been looking at the class \Magento\Sales\Model\Order\ShippingAssignment and I have absolutely no idea what it represents. The OrderInterface has a shippingAssignments attribute set through ...
1
vote
1answer
19 views

Is it possible to load data from the server using a HTTP POST request within a Magento Module js file?

Is it possible to load data from the server using an HTTP POST request within a Magento Module js file? File located in app/code/MyVendor/myCustomModule/view/frontend/web/js/mycustom.js Example ...
2
votes
1answer
19 views

How do I properly debug the root cause of 503 errors produced by Varnish?

I'm using Magento 2.3.5 with Apache 2.4 and Varnish 6 and seeing constant 503 errors ("Backend Fetch Failed" or sometimes "Service Unavailable") in the browser's network panel when ...
2
votes
2answers
19 views

Need help with shipping charges

I am running a client store and they want to give free shipping in India and shipping charges 2000 for all other countries how to achieve this?
2
votes
0answers
10 views

Show/Link variation

Just want to start by saying thank you for taking the time to read this. I'm wondering if there is any possible way to link or show variation/simple products tied to a configurable product? Like when ...
2
votes
1answer
15 views

How to Upload Profile Picture with my REST API in magento2?

Hello I add one custom attribute of profile_picture to save the profile picture of customer but when i try to call the http://domain.com/ecommerce_app/rest/V1/customers API with following JSON Request:...
1
vote
1answer
22 views

sort attributes images alphabetically

I want to sort alphabetically the manufacturers images list. I'm using this code and it generate the order that I have on magento admin get(\Magento\Catalog\Api\ProductAttributeRepositoryInterface::...
2
votes
1answer
35 views

how to get which filter is applied first in layered navigation

I need the order on which the filter is applied.for example if we select red value in color attribute and then we select L value in size attribute means I need that order ie)color and then Size not ...
1
vote
0answers
6 views

Attribute with this code is not super in row(s) - Confirmed global setting and assigned to attribute set

I created the parent (super) and used the 'create configuration' to choose the attribute and create the children. My skus are long, could this be causing the problem (i.e. 083-000022-Chartreuse Lime ...
1
vote
0answers
15 views

Magento 2 - Save data of customer from a form in database

I wish I could create a form with several inputs dedicated to the customer's attributes in my first custom checkout step. This form will have to save the data in the database, in the customer ...
1
vote
1answer
19 views

How to show a loader before the page fully loads?

I want to show the loader before my website fully load as the customer is trying to click the some of the links before the page gets loaded. To show the order, where I have to update? Any help will be ...
1
vote
0answers
10 views

Find filter definition

I am looking to the file Magento\LayeredNavigation\Block\Navigation\FilterRenderer (a preference actually but that's not the point). This class defines public function render(FilterInterface $filter) ...
2
votes
0answers
19 views

Pass order success url redirect url to a payment gateway

I would like to pass to an order payment a variable containing the success url that a customer should get redirected to when the payment goes fine on the payment gateway page. So basically I have a ...
1
vote
0answers
11 views

How to stop abandonment cart emails to get fired when restoring quote data in cart page in Magento 2?

I am facing an issue after restoring Quote items on the cart page. For restoring Quote I used below code $this->_checkoutSession->restoreQuote(); I have abandonment cart email functionality, ...
1
vote
2answers
24 views

How to change the scope of product Quantity from Global to Website level?

I am using Magento 2.2.6 Open Source Edition, a single product has been selected for 3 websites in Product in Websites section, I would like to have different quantities of the product for each ...
1
vote
1answer
20 views

rest api magento 2 get attribute code by attribute id

I need to get the attribute code by attribute id with rest api. This is needed for configurable product. I get the configurable product data: "extension_attributes": { "...
2
votes
0answers
15 views

Get the quote/order ID that the user checked out?

I need to get the actual order id that the customer is using creating an order. Tried with this that works fine, but returns me the previous order id, I need to get the actual one: $...
2
votes
0answers
8 views

What is the function of Magento\Payment\Gateway\Command\CommandPool and how to use it properly?

I installed a custom extension for my Magento 2.3 payment gateway, then i want to process the order payment in another extension, then i come across this code within the extension: <virtualType ...
2
votes
0answers
17 views

Select country through Jquery in Origin Address of Shipping Settings

I am trying to set Country for Origin address using jQuery in Shipping Settings of Sales (Store Configuration). The issue is, on change of country option using jquery, the ajax to fetch region is not ...
1
vote
1answer
25 views

Magento 2 PWA custom router

How to Create custom router page content? What I've tried added Route to routes.js: import React, { Suspense } from 'react'; import { Route, Switch, useLocation } from 'react-router-dom'; import { ...
3
votes
0answers
17 views

Item not added to the Wishlist if the user is not logged in Magento 2.3.4

Item is not adding to wishlist if user is not logged-in. Scenario: User is not logged-in Click on Wishlist Button Redirect to login page and showing error message to login. After login customer ...
2
votes
0answers
14 views

Magento2: I want to apply tax on specific products, not entire products

I am using Magento ver. 2.3.2 and I have configured the tax rules and tax rate in admin. Tax applied successfully on the products on cart page. But now I want to apply tax on some specific products, ...
0
votes
1answer
25 views

Custom module enable disable functionality

Hi i have a custom module where am trying to add enable/disable functionality but its not working can anyone suggest me a possible solution am sharing my code below system.xml <?xml version="1....
1
vote
0answers
13 views

Magento 2 move tax section in to grand totals in cart page

I want to move the tax in between the order total incl tax and order total excl tax in the cartpage. The Tax section is in the vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/tax....
3
votes
0answers
28 views

How to run php function directly after a specific Magento 2 CLI command?

For the sake of simplicity, let's say I want to echo out "Hello World" (in reality i want to do a lot more) directly after anyone runs php bin/magento setup:di:compile. In the latest version ...
1
vote
0answers
18 views

How to stop Magento 2 using cookies like recently_viewed_product?

According to the GDPR and recent court decisions, technically unnecessary cookies may only be set after the user has given his active consent. Cookies that are not technically necessary are widely ...
2
votes
0answers
24 views

Magento 2.3 delete wishlist items not working

I am trying to delete wishlist items , using the below code but its not working, error is- INNER JOIN `catalog_category_product_index_store0` AS `cat_index` ON cat_index.product_id = main_table....
1
vote
2answers
31 views

how to SET FOREIGN_KEY_CHECKS = 0 in phpMyAdmin [closed]

I am trying to truncate some mySQL tables from phpMyAdmin web interface, but for foreign keys constraint I am not able to do it. Is there a way to SET FOREIGN_KEY_CHECKS = 0 in phpMyAdmin?
2
votes
0answers
21 views

The catalog price rules cause error when re-indexing in Magento 2

When I created a Catalog Price Rule in the admin and click Save, I got the error below but it's still saved. Then I tried to re-index via SSH and got the same error message. Fatal error: Uncaught ...
0
votes
0answers
7 views

Arabic JOD Price Magento 2

When i switch to Arabic view, price of the product is displayed as described : JOD 999.00 is being displayed as 9.99.00 دينار أردني I check this page but it's not working with me: How to change ...
1
vote
1answer
16 views

How to Display Cross Sell Products on Products Details Page Under tab Section?

I am trying to add cross sell products under product details page tab section, and using below code but not working in magento 2.3.5 <block class="Magento\Checkout\Block\Cart\Crosssell" ...
1
vote
0answers
21 views

Magento2 Invoice PDF issue

I have added extra data to be display before subtotal in INvoice PDF but not display properly Following is my code I added foreach ($invoice->getAllItems() as $item) { if ($item->...
1
vote
3answers
37 views

get orders by date using REST endpoints

I'm trying to get all orders on a specific date, as an example, I'm trying to get all orders at 28th of June 2020. But my problem is that I get a total count of 0 even though there's orders at that ...
2
votes
0answers
19 views

Share inventory between my 3 stores (MSI disabled - Same Environment)

I have 3 stores that share the same stock for products. The stock is being handled by an external system, and in order for everything to work properly, they have been recommended to disable MSI (...
1
vote
1answer
13 views

magento grid search is not triggered if both search term and filters unchanged

In magento grid setting, by default the search request call (ajax call) is not triggered if search term and filter remain unchanged since last search. How can I force it to send out search request ...
1
vote
1answer
24 views

magento 2 in category multi select attribute in option is not show?

:InstallData <?php namespace Vender\Extension\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\...
0
votes
1answer
23 views

How to Inject a new Class to Overridden Class using Preference

I want to override __prepareLayout function from 'Magento\Sales\Block\Order\History' so I used the preference. In my di.xml <preference for="Magento\Sales\Block\Order\History" type="...
1
vote
0answers
18 views

Magento 2.3 - LEMP - Nginx hosts - Backend & frondend url 404 error

My LEMP localhost URL : 192.168.1.64:8087/giri I want to stup multiwebsite so that i have configured url like www.giri.local by using follow steps, Nginx : etc/hosts 192.168.1.64:8087 www.giri.local ...
1
vote
0answers
9 views

How to get paypal partner name and vandor name for credit card from paypal pro setup in magneto 2

I am trying set up paypal pro in magneto 2 with sand box credentials.Here for paypal pro it need partner ,user,vendor,password.Can any please tell me that from paypal account, from where can i get ...
1
vote
1answer
20 views

Magento search is not working after upgrade to latest version

Does any one know how i can solve my problem ? . becuase my search is not workinig after upgrade magento version
1
vote
0answers
27 views

Urgent - Magento 2.3.4 - “One or more indexers are invalid. Make sure your Magento cron job is running.”

I am creating a store with Magento, but the products are not appearing, I believe it is due to the error "One or more indexers are invalid. Make sure your Magento cron job is running.". I've ...
1
vote
1answer
18 views

Magento catalog price rule grid not working

I'm unable to create catalog price rule and existing price rule too is not working in site. In console, I could see below error. uncaught TypeError: Cannot read property 'select' of undefined at g....
1
vote
0answers
14 views

Cannot whitelist htaccess blocked admin URL

Trying to whitelist the blocked admin URL for the outside world from htaccess but not working. The below code worked in Magento 1. I have added this in my root_directory/pub/.httaccess. RewriteCond %{...
1
vote
2answers
47 views

Add Wysiwyg attribute to Product in Magento 2

How to create Magento 2 Product Attribute with Wysiwyg editor Programmatically.

15 30 50 per page
1
3 4
5
6 7
2035