Questions tagged [magento2.2.2]
It should be used for questions about Magento 2.2.2
624
questions
0
votes
1
answer
58
views
Use Custom Module collection in other custom Module magento 2
I want collection of one module in other module. I am doing it like
use Test\CompanyAddresses\Model\CompanyAddressFactory;
class ReformatTelephoneField implements DataPatchInterface
{
protected $...
1
vote
1
answer
488
views
how to Magento 2 create_at date format set same format in api
how to in API create_at time change. because when I am set local India/Kolkata then place an order after that created_at properly show sales order admin grid and view page. but in postment api is not ...
1
vote
0
answers
76
views
Magento 2 : Coupon code couldn't be applied. Too many coupon code requests
Magento 2: coupon code couldn't be applied. Too many coupon code requests, please try again later
Sales rule API :
Request: http://localhost/demonew/rest/V1/salesRules/1
Body:
> { "rule": {
> "...
0
votes
2
answers
202
views
How to add a label to simple & Bundle product price?
I need to add the Saving percentage label to the product after the price on the category listing page and product details page.
I managed to do this for configurable products by adding the below code ...
0
votes
3
answers
502
views
Magento 2.2 How to trigger billing address form validation programatically
I created a custom credit card payment method and I want to trigger the validation of billing address fields when "Place order" button is clicked.
0
votes
1
answer
27
views
Magento website backups
Sorry for the low level of this question; I'm a beginner, and I'm kinda unaware of the extent of my own ignorance at this point.
I need to back up my Magento 2.2.2 website before upgrading to v2.4.
So ...
0
votes
2
answers
2k
views
magento 2 error - "Fatal Error: 'Uncaught Error: Cannot instantiate interface
I have a custom module to expose an API to get the best selling products & most viewed products separately.
This module is working fine in my localhost and staging server. When i moved the same ...
0
votes
1
answer
59
views
How to get ordered products withing a date range in magento 2 programmatically?
I want to get the products ordered within a date range for a report.
As the result, I need like, product, product type, product Qty.
I tried to load all orders and get the sum of products, it want ...
0
votes
1
answer
274
views
How to remove ?___from_store=default from other store code url of my magento 2 website?
I have 2 stores on my Magento 2 website.
one for Srilanka & the other for Australia.
I am redirecting my customers based on customer's IPs to relevant sores.
Whenever I am redirecting the customer ...
0
votes
1
answer
509
views
Magento 2.4.2: SyntaxError: Unexpected token: name (url)
I'm following the instructions to get advanced JS bundling done. I have been doing this over a year without much difficulty. This time around, I find the error below and I would like to know if there ...
0
votes
3
answers
1k
views
How to remove or edit "Grand Total to be Charged" in order email in magento 2
As I mentioned in the headline I need to alter the Grand Total to be Charged section in the order email. My store is running in LKR as Base currency and AUD as another currency.
If I place an order in ...
0
votes
2
answers
517
views
How many years Magento 2 certificate is valid?
How many years Magento 2 certificate is valid?
How much time it will take to prepare for Magento 2 exam?
If Magento upgraded to magento 3 4...then the certificate is acceptable or not?
0
votes
1
answer
969
views
Magento 2 Product Image are not showing on cart page and checkout page
Product Image are displaying fine on the category page or list page and product description page but it's not showing on cart page and checkout page.
I have tried following command:-
php bin/magento ...
0
votes
1
answer
1k
views
Magento2- How to validate coupon code to cart before apply
How to validate Coupon Code to Cart before apply in Magento 2?
Is it possible?
0
votes
1
answer
168
views
How to change "You can create an account after checkout" label on checkout page?
How to change "You can create an account after checkout" label on checkout page?
0
votes
0
answers
65
views
Stopwords not working in Magento 2.3 for ElasticSearch 6.0+
I want to implement stopwords functionality in Magento 2.3 but it is not working.
I am overriding the file stopwords.csv using a custom module.
Someone, please suggest the solution.
Thanks,
Rashi
1
vote
1
answer
359
views
Magento2.2.2 Order email confirmation after switched back on sends old order confirmation email
Order email Communications has been switched Off for long period of time as the emails was being sent outside of magento.
However I notice while testing that if switched back On Old order emails ...
2
votes
0
answers
64
views
Reset admin password via REST API
How can reset admin password using rest api. I want to reset admin password using rest api in Magento 2
0
votes
1
answer
356
views
Magento 2.2.8 and Paypal error 500
I have some problem since several month, with Google Chrome Browser, when someone want to make a checkout, paypal return us an error 500. The error given are "POST [lang]/paypal/transparent/...
0
votes
1
answer
270
views
Show Multiple Quantity + Product Price on Product Detail Page in Magento 2.3
How we can show quantity table + product prices as given below screenshot on product Detail Page. If someone have idea, Please guide me i want to implement like this. These prices should be change ...
0
votes
1
answer
527
views
Youtube Video Added in Product Gallery - Magento 2
I am getting error when i am trying to add Youtube link in product media gallery. Youtube API is already added. But still i am getting error. can you please describe me, How to i can fix this error ? ...
0
votes
1
answer
831
views
Add Upsell Product On Checkout Cart Page -Magento 2.3
How to we can add upsell products on checkout cart page as crossell products in Magento 2.3.5 ?
Thanks
1
vote
1
answer
380
views
Magento 2 Not Removing Product Special Price by importing CSV
I am trying to remove the special price of my product by the import CSV. Tried Several Ways.
By adding "0" in the column. Also tried to import with Empty Column. But nothing happened.
1
vote
2
answers
2k
views
Magento 2 Custom GET REST API ready store code from url
I have a custom REST API url:
<route url="/V1/vendor/module/id/:Id" method="GET">
<service class="Vendor\Module\Api\ModuleRepositoryInterface" method="get"/>
<resources&...
0
votes
1
answer
131
views
Magento2.2.2 SOAP API Create Partial Invoice
Partial invoice doesn't seem to be working correctly for SOAP requests when multiple item has been ordered.
POST URL: http://dev.test.com/soap/all?services=salesInvoiceOrderV1
SOAP BODY:
<?...
1
vote
1
answer
3k
views
Add custom menu links only to mobile menu layout
I am using Magento 2.2.2 and I am trying to add some custom menu links to magento in the mobile menu layout.
I tried adding a custom block with menu links by referring catalog.topnav block
default....
1
vote
3
answers
1k
views
How to auto remove items from cart after 1 day - Magento 2.2.4
Guest / Logged-in user:
Auto removes items from the cart after 24 hours.
Canceling and returning from the payment page auto-remove cart after 24 hours.
1
vote
0
answers
138
views
Magento 2 add new checkout step under Shipping Step
How to add new step under shipping step not new step progress bar, the same as Shipping Method step is under Shipping Step progress bar?
like the screen shoots:
Magento Doc tells you how to add new ...
0
votes
1
answer
286
views
Magento 2 Payment Method Billing Address Country
Can one only show/allow specific countries in the billing address form in countries drop down ?
See screen shot attached. I need only/available in E.G: United Kingdom
0
votes
1
answer
270
views
Magento 2 overwrite html file in custom module
I would like to overwrite the following file row_incl_tax.html in my custom module:
vendor/magento/module-weee/view/frontend/web/template/checkout/summary/item/price/row_incl_tax.html
app/code/...
0
votes
1
answer
62
views
Magento 2 is not showing product in categroy pages
I use Magento 2.2.2 and since yesterday I can't see any products in category pages. products are available individually but not available in any category pages
I've done these solutions but still, it'...
0
votes
0
answers
48
views
Delete Order associated Invoice, Shipments, Creditmemos
public function execute()
{
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
echo "=========================<br/>";
$request = $objectManager->get('Magento\...
0
votes
0
answers
528
views
Magento 2 form xml visibility fieldset conditional
I have added a new fieldset tab on the Cart Price Rule.
But I would like to hide on a conditional, I've tried:
...<fieldset name="custom_rule" sortOrder="100">
<settings>
...
0
votes
1
answer
174
views
Magento 2 new fieldset/field in cart price rule show unwanted Currently Active Tab
This is in my custom module xml sales_rule_form.xml:
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1
answer
287
views
Magento 2 How to apply filters for layered navigation Using REST API
I want to apply filters for layered navigation using REST API. If I send color=5 then in category page it is displaying 2 products so how to get that data in API response?
0
votes
2
answers
906
views
magento 2.3.3 review not showing on product page
I migrate Magento 1.9.4 to Magento 2.3.2 everything is working fine but review not showing on the product page, even its total number of reviews on the product and the stars as well, also show in the ...
0
votes
1
answer
43
views
Magento 2 notify shopper when reach $x to spend $y to get Z item for free
Is there any extension out there about a promo rule that if they reach $90 in their basket notify with a pop up or place banner etc... that if they spend $100 they'll get X item for free etc...?
...
0
votes
1
answer
357
views
Magento2 - In eav_attribute_option_swatch table New option value not inserting
I have 400+ visualswatch options, whenever I add new one, It will insert in eav_attribute_option_value but the Admin value which is supposed to be inserted in eav_attribute_option_swatch is not being ...
0
votes
2
answers
2k
views
Integrity constraint violation 1062 duplicate entry - Magento 2.3.0
I'm facing this error in during when i run this setup:upgrade command. Can you help me regarding this issue, how to i'll fix this error ?
Thanks
1
vote
1
answer
504
views
Magento 2.2.2 Plugin how to add custom field in request api
I've create a plugin to listen to api POST /V1/order/:orderId/refund
and I would like to receive custom field. I've added a field for testing like: name:['test']
Body E.G:
{
"items": [
...
0
votes
1
answer
84
views
Magento 2.2.2 Custom Api
I have created a custom api and add some getters and setter, I'm looking to find out if it's possible to pass key pair values in the post without having to set the setters. When I call the api I get ...
0
votes
0
answers
52
views
Magento 2.3 - After adding product to cart - But Cart Page, Mini Cart and Chekout showing Empty
I'm facing this issue on my live server, when I'm adding product to cart the ajax requests from (1) to (0). I'm getting this message (Product added successfully) But mini cart, cart page, and checkout ...
0
votes
0
answers
39
views
Rebuild Customer grid index not working - Getting Error
anyone can help me about this issues, i'm getting this error. I'm trying to fix it, But i could not found any solution.
{"0":"Notice: Undefined index: PK_CUSTOMER_ENTITY in
/vendor/magento/module-...
0
votes
0
answers
110
views
Magento2.2.2 admin URL shows 404 at local server
I have setup a Magento2.2.2 store from LIVE to LOCAL.
Now frontend is working but admin login URL shows 404 Not Found error.
Not Found
The requested URL was not found on this server.
What I have ...
1
vote
0
answers
628
views
Magento 2.2.2 order refund REST API Before Plugin get item order to refund
Vendor\Module\Plugin\Order\Plugin.php:
namespace Vendor\Module\Plugin\Order;
class Refund
{
/**
* Create refund for invoice
*
* @param int $invoiceId
* @param \Magento\Sales\...
1
vote
1
answer
1k
views
Magento 2 credit memo API observer/plugin
I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund
ref:https://devdocs....
2
votes
1
answer
3k
views
Notice: Undefined index: default in vendor/magento/module-catalog/......BatchSizeCalculator.php
I got this error when try to reindex catalog_product_price
php bin/magento indexer:reindex catalog_product_price
Notice: Undefined index: default in
/public_html/vendor/magento/module-catalog/...
1
vote
0
answers
452
views
Default store as empty value in customer creation page
I would like to set default store value to empty value or 0 in stores dropdown list near field "Send Welcome Email From", in customer creation page.
I like also to receive an error when user keeps ...
1
vote
0
answers
215
views
Cart showing minimum order amount error
My cart has a total order amount greater than $1.00 still it shows an error Minimum order amount is $1.00
As the cart has an order total of $2.62 even after applying a discount which is greater than ...
0
votes
1
answer
1k
views
Call store Switcher in phtml file directly in Magento 2
I want to call Store Switcher in phtml file directly.
I tried to call directly but its not working.
Kindly review.
$this->getLayout()
->createBlock('Magento\Store\Block\Switcher')
...