All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Limit customer firstname and lastname in m2

How can we limit the character of first name and last name of customer. For example I want only 30 characters are valid to enter in first & last name. As of now there is no limit on character we ...
0
votes
0answers
11 views

How to get contact us email from get category content tab form select drop down attribute in Magento 2.3.1

How to get contact us email from get category content tab form select drop down attribute in Magento 2.3.1 form_select category custom attribute how to get contact us from there. app/code/Vendor/...
4
votes
1answer
2k views

Magento 2 save grid data from admin form

I added a grid in admin form using UI Component by following the answer given here How to create Grid in Tabs? Now when I save the data, I don't get the values of selected items in save controller. ...
3
votes
2answers
3k views

Magento 2 toggle switch (yes/no) in admin config of custom module using system.xml or in any programmatic way

I understand that we can create a toggle switch using form with ui_component. However, I want to create an admin configuration for my custom module using system.xml configuration. Is there any way ...
0
votes
0answers
5 views

Set all categories to use Config Settings for 'Default Product Listing Sort By' option via SQL

I want to set all of my Magento 2 categories to 'Use Config Settings' for the 'Default Product Listing Sort By' within the Category Display Settings. I don't want to do this manually as there are ...
1
vote
1answer
1k views

Sort by Price : Configurable products have wrong order

On category page, sorting by price return products in wrong order for configurable products. Lets say i have a product with 3 associated products with prices $10, $20, $30. The sort by price will ...
0
votes
0answers
5 views

How Magento Commerce Support Flash Sale

I using community edition, recently know commerce edition has the feature like Flash Sale, what are all the option available any docs related to this pls welcome.
0
votes
1answer
13 views

Toggle button in Magento2 in frontend Form

In frontent customer edit form, I need to show toggle button as below In admin it is showing using component JS.not able use HTML and component in frontend. Can anyone help me on this. Thanks.
14
votes
8answers
20k views

Salable Quantity is showing zero in product grid magento 2?

Actually in my case Salable Quantity is showing zero in product grid Magento 2.3. Due to this issue, products are not showing in frontend. If anyone has any idea then please tell me. For this re-...
0
votes
1answer
926 views

How to change background color of a link in magento 2.0

How to change vertical menu background color on hover in Magento 2 I want like this.
0
votes
0answers
13 views

How to add column in admin order view items ordered section

I want to add extra column in items order section in Magento Admin order view items ordered section. I have made changes in files as per this link But however this not working. Additionally, I have ...
0
votes
1answer
1k views

function displaying the number of found products in layered navigation filters in magento2

Which function is responsible for displaying the total count of products in the filters in the layered navigation. ie) i need to get the count (eg 50 ) in my custom filterable attributes as well. ...
5
votes
2answers
4k views

Magento 2 Import categories using csv

I have around 500+ categories in my csv. I'm trying to import only categories using csv. Can anyone knows how to import only categories in magento 2 using csv?
0
votes
1answer
23 views

How to validate condition rule based on custom attribute(SKU)?

Does anyone have an idea of how to validate function works on product attribute while creating custom condition rule !? I'm stuck in validating condition rule Here, in my scenario, I've to validate my ...
1
vote
2answers
4k views

how to get customer group name using customer id magento2

I am not able to get Customer group name using customer id in magento2. i have customer group id but i didn't get group name. <?php $customerObj = $objectManager->create('Magento\Customer\...
0
votes
3answers
879 views

Magento 2: How to set up varnish cache with out CSS and JS file

I have the varnish cache set up and working fast for me, but the only issue is i can't clean the CSS and JS cache. If and only if I restart the varnish cache. So I am looking for a solution that can ...
3
votes
2answers
5k views

Modify custom option of product in cart

I have this code in checkout/cart/item/default.phtml $allProductOptions = $_item->getProduct()->getTypeInstance(true)>getOrderOptions($_item->getProduct()); $productOptions = $...
0
votes
2answers
855 views

How to adding sender's name to order comments in Magento2 admin?

How to adding senders name to order comments in the magento2 admin panel. I don't know how to implement this task. Can you please help me? The below screenshot is my required output screenshot.https://...
1
vote
1answer
835 views

Install Magento EE 2.0.9 Sample Data

I have a Magento EE v2.0.9 instance running. The install works fine, the site loads all areas fine. I'm trying to install the sample data and I keep running into this issue when running bin/magento ...
1
vote
2answers
40 views

Execute method is not calling in controller Magento 2

I am facing issue with newsletter. it suppose to subscribe user in newsletter and send them email which seems not working execute method is not even calling. on direct accessing the url or using ...
0
votes
0answers
24 views

Customer data not showing after login in magento 2.2.9 rest api

I am using Magento 2.2.9 rest /V1/customers/me it didn't respond. steps 1. Use rest/V1/integration/customer/token Response Get: bf03bdurbv7pelhgtjnw5yu7kqkr6pbd http://prntscr.com/vfxtsx Steps 2: ...
0
votes
0answers
6 views

wysiwyg custom category attribute value not getting in magento 2

I have try to get wysiwyg attribute value in forntend this is my code :- InstallData.php <?php namespace Attribute\Categorybanner\Setup; use Magento\Framework\Setup\InstallDataInterface; use ...
0
votes
2answers
2k views

Get product review stars

On the homepage I have a section where I load some products of a certain category. I want to display the review stars of a product below the title if the product has review. Normally I do this with ...
2
votes
2answers
781 views

Magento 2.1.7 - Create a new product tax class

How to create a new product tax class in magento 2.1.7 and create two different tax rates for same region. I am unable to find "Add new tax class" button under additional settings when creating new ...
0
votes
0answers
10 views

Overwriting block is not used in 2.4.1

I'm simply trying to overwrite the following method with a preference, but I can't get it work after over 3 hours of trying and scratching my head at the sheer amount of effort required to do such a ...
1
vote
1answer
978 views

Magento 2 - How to remove catalog.leftnav only from category pages with 2columns-right.xml

I have created a Magento 2 module which has some customization for the category pages. I would like to remove catalog.leftnav when the category is using the "2 columns with right bar" layout. Is ...
1
vote
1answer
815 views

Insert Custom Option values via SQL?

I have a product with 8 custom options. Each custom option is a range value in increments, meaning there are ~180 values per option (8 * 180 values to input manually!). I'd really like to insert these ...
2
votes
2answers
2k views

add preload for fonts in magento 2

I want to add below in the head of Magento 2 via default.xml, unable to get the exact syntax for same <link rel="preload" href="https://example.com/static/version1580127835/frontend/theme/...
1
vote
2answers
797 views

Magento 2 Set Shipping Method Programatically

I am trying to set Shipping Method Progrmatically but getting following error. The shipping method is missing. Select the shipping method and try again. foreach ($quote->getAllAddresses() as $...
0
votes
0answers
6 views

How to refresh summary articles in checkout

I made a module (override Discount.php in Magento_SalesRules) which adds a free product when entering a specific coupon code. So far it is working and in the summary the totals are all correct and ...
1
vote
1answer
1k views

magento 2 get block by alias

Can I retrieve a block instance using it's alias (as="alias") within a template? I'm aware this can be done for the block name, for example: $block->getLayout()->getBlock('BLOCK_NAME'); I'm ...
1
vote
2answers
859 views

Magento 2 Migration : Destination fields are missing

1.9.2.0 to 2.2.5 Migration i am getting bellow error any idea how to resolve it? [2018-07-17 20:23:36][ERROR]: Destination fields are missing. Document: catalog_product_entity_decimal. Fields: ...
0
votes
1answer
770 views

How to get payment method selected magento 2

I need to get the 'Cash On Delivery' payment method if it is selected. I Cannot get the payment method name. The getMethodInstance() and getTitle() are not working. See the code I used below: <?...
1
vote
2answers
900 views

Magento and Authorize Suspected Fraud Credit Memo

When using authorize.net as payment gateway, why does it set transaction_id to null on the invoice generated when authorize.net returns a suspected fraud code. Later when the transaction is approved ...
0
votes
0answers
9 views

HOW TO UNSELECT SHIPPING ADDRESS ON CHECKOUT

I would like to know, how can I unselect default shipping address that load when I go to the first step on checkout. My problem is when I'm trying to add new address, I need to unselect any address ...
0
votes
0answers
10 views

Product Page not responsive in mobile (Porto Theme)

i created a child theme for Porto theme responsiveness is working on desktop, but not in mobile. can anybody help me? could i be missing the viewport metatag only in product page? i`m a newbie to ...
2
votes
1answer
952 views

Knockout js child components

I am making a custom module before adding a product on cart with 3 options : The upload option should display an upload form like : My initial idea was to make two knockout components : ...
0
votes
1answer
27 views

Magento 2 require.js:166 Uncaught Error: Script error for: jquery-ui-modules/widget

I recently installed Magezon Pagebuilder plugin. It works perfect and everything, however when I add Sliders or Carousel I get this 2 errors: require.js:1895 GET http://dev.emall.com.mx/pub/static/...
3
votes
1answer
1k views

Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect) magento rest api error

Error message below Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect) {"messages":{"error":[{"code":401,"message":"oauth_problem=internal_error&message=Mage ...
0
votes
0answers
8 views

can i use one product collection for multiple attribute filtering?

I have a product collection based on category. Can I use addFieldToFilter (color) for both equal and not equal. Color with given value as one set of collection and color which is not equal to given ...
1
vote
1answer
16 views

does .magento/services.yaml file exists in magento 2 open source?

i am trying to figure out how i can install elasticsearch plugin with magento open source, i foudn this page https://devdocs.magento.com/cloud/project/services-elastic.html#elasticsearch-plugins but i ...
1
vote
1answer
7 views

where I can find all the order numbers from the Database table?

where I can find all the order numbers from which Database table? I did some research, but I don't see sales_flat_order in my database. Please help
1
vote
1answer
1k views

Adding Google Customer Reviews to Magento Success Page

I'm trying to add the google customer reviews opt-in survey to my order confirmation page using the code below. The script appears to be working, pulling the correct order information. However, ...
0
votes
0answers
8 views

Magento 2 - Add custom cart attribute?

In Magento 2 I need to add a custom checkbox in cart to create "loyalty card". If this checkbox is checked : I create a loyalty card for customer when order is placed. If this checkbox is ...
1
vote
1answer
950 views

Estimate shipping methods by address id Error REST API : Magento 2

I am trying to call this magento 2 built in API : POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id In Body : {"addressId": 194} But I got this error: { "...
0
votes
0answers
5 views

Add JS on condition

I'm want to add a dynamic js remote file in my website. So far, I've added CSS file thanks to this, but I can't achieve to add CSS files. I've an observer with that. <event name="...
0
votes
0answers
13 views

Magento 2.4 with ElasticSearch - include category name in index?

Is there a way to get Magento 2.4 with ElasticSearch to also index the category name alongside the product? For example, I would like someone searching for "wine" to find not only products ...
0
votes
1answer
1k views

Change Images shown in slider

I'm working on a Magento site for the first time so my knowledge is very limited. I'm trying to change some of the images used in a slider from a product: The slider is generated from the media.phtml ...
0
votes
0answers
4 views

Load icon spinning at new loaded product's detail page

I have an outstock furniture theme, so i customize it and turn it a techno store.But when i add a new product, i can not access its detail page, page waiting as loaded but load icon doesn't stop ...
3
votes
1answer
2k views

Special Price with Configurable Products in Magento 2

We have been converted some Configurable products from Downloadable products. But have an issue in there, we can't be set Special Price(link open the modal set Advancing Pricing is hidden) and very ...

15 30 50 per page
1
2 3 4 5
2099