Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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.
0
votes
Magento 2 : Add helper condition on layout file
In Magento 2 there are several ways of showing and hiding blocks conditionally.
If its visibility depends on a configuration settings value, use the ifconfig expression in your layout file
<refere …
3
votes
How to add validation in phone number to display in the form of 123-456-7890 at checkout pag...
Create a custom validation rule. app/code/Mital/Checkout/view/frontend/requirejs-config.js
var config = {
config: {
mixins: {
'Magento_Ui/js/lib/validation/validator': {
…
1
vote
Accepted
How to create a template for page content in custom module?
You have to add below code into your layout XML file
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Template" name="custom-content" template="JR2_MonthlySubsc …
3
votes
Magento2 : Composer Problem Could not find a matching version of package <name>. Check the p...
Add in 2 lines your composer.json file
"minimum-stability": "dev",
"prefer-stable": true
Do not forget to release your project from github https://prnt.sc/qigw57
Register or login on https://packagist …
0
votes
Magento 2 Customer name always “guest” for PayPal Express/User name not save
As Paypal not saving firstname and lastname in the order table so You can get name from the billing address.
<p class="greeting">{{trans "%firstname %lastname," firstname=$billing.getFirstname() lastn …
0
votes
2
answers
110
views
How to use click event on page load in knockout
<div class="free-sample" id="free-sample-component" data-bind="scope:'free_Sample_Component'">
<button id="get-free-sample" data-bind="click:getFreeSample">Get Free Sample</button>
</div>
Above w …
0
votes
Hide Ui column in grid on default load
Edit your code to
<column name="gridcolumn1" sortOrder="100">
<settings>
<addField>true</addField>
<filter>textRange</filter>
<label translate="true">Grid Column1</label>
…
0
votes
Accepted
Customer EAV attribute error: "Mobile Number" is a required value
Make required false when create attribute. Change From 'required'=> 1 to 'required'=> 0
$eavSetup->addAttribute(
\Magento\Customer\Model\Customer::ENTITY,
$this->attributeName,
…
0
votes
Magento 2 - How to add custom customer attributes to sales order API?
You will get customer_id from the order and from customer_id you can get customer attribute then set that attribute in order api.
Try this blog it will return your custom attribute in order API respon …
1
vote
Accepted
Magento 2 : Allow special character at the end in password
You can special character which you want to add.
^[ A-Za-z0-9_@.#&+-]*$
0
votes
How to use After order place event in Magento 2
first you need to create observer into events.xml
app\code\Vendor\Extension\etc\events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLoca …
1
vote
Accepted
How can I display category select dropdown on frontend
1.) Create a xml file which loads your Block and Phtml file.
For Example: custom_test_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaL …
3
votes
Accepted
How to display additional attributes in category page product item
You can override file vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
under app/design/frontend/vendor/theme/Magento_Catalog/templates/product/list.phtml
Option 1. Add the be …
0
votes
Magento 2: Customer not able to login on multi-website second website
You have to set customer account global.
Admin setting:
Store -> configuration -> Customer -> Customer Configuration -> Account sharing option -> Share Customer Account = Global
1
vote
Accepted
How to get Product Salable quantity by productId in magento2
You have to get sku from product id then you can get salable qty by sku
<?php
namespace Mital\InventorySalesAdminUi\Model;
use Magento\InventorySalesAdminUi\Model\GetSalableQuantityDataBySku;
use Ma …