Questions tagged [magento2.2.2]
It should be used for questions about Magento 2.2.2
625
questions
1
vote
0
answers
14
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
0
answers
19
views
Issue on hiding payment method in magento 2?
I have a customer requirement to hide CASH ON DELIVERY.
I followed the below steps.
events.xml
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0
answers
8
views
How to get the values of additional_options values to updatecart.phtml file for edit in magento 2
I have a form on the product details page that collects some values to print the initials on the cufflinks of the shirts. Saved as additional_options and retrieved in orders in backend. Flow is ...
0
votes
0
answers
15
views
How to override updatecart.phtml in custom module?
I have a custom form in addtcart.phtml and collecting some custom options. I need to show the collected values on the edit cart page too.
I tried to override the file like below in the custom module.
...
0
votes
0
answers
32
views
How to get the attribute options on category page header as list in magento 2
I want to show all available options of attribute size in Magento 2 as a list on the category page.
This will show only the available product size, which has stock like Magento 2 layered navigation.
...
0
votes
1
answer
31
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
57
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
21
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
289
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
38
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
0
answers
19
views
Requested store is not found in magento 2 website loading
I have my Magento 2 website.
If I type the URL like https://emerald.lk it's working fine.
If I add the www to the URL website is not loading and giving the following error.
There has been an error ...
0
votes
1
answer
59
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
181
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
651
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
221
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
534
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
609
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
74
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
41
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
176
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
37
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
266
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
134
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
358
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
525
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
0
answers
180
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
916
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
108
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
2k
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
731
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
83
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
168
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
146
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
50
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
22
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
265
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
70
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
205
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
665
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
28
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
232
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
1k
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
219
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
69
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
46
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
37
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
87
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
391
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
2k
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/...