All Questions
28 questions
0
votes
1
answer
35
views
Add fee to Payment method
I'm trying to add an extra fee to the order when the payment method is Cash on delivery and the shipping country is Greece.
I have created the following files:
app/code/HectorCustom/CodFee/...
1
vote
1
answer
800
views
Magento 2.4 - PayPal Smart Button Style
I want to change the button style of the PayPal Express Checkout, but is not work, I have create a module to rewrite the PayPal but how I can add my changes there?
I create di.xml file on following ...
0
votes
1
answer
383
views
Magento 2.3 - Moving the payment option in the checkout to the first step
Is there an easy way to move the payment options out of the second step (Payment and Review) and into the first step (Shipping Address)? I have searched far and wide and there is almost zero ...
0
votes
1
answer
907
views
Magento “Place Order” button redirection to custom Page before Order Succes Page
Basically I want to display custom module page after "Checkout Page" and Before "Order Success Page".
I created the module manually and want to add a page between checkout page and ...
1
vote
0
answers
223
views
Magento 2.3.3 - additional_options on Product being Returned as "null" when Using Stripe or Paypal
I'll expand a little more on the title. I have an in-house Magento 2 module that connects to our local gift card service to facilitate the use of in-store gift cards on Magento, in addition to in-...
0
votes
2
answers
1k
views
Can i save every order placed with custom payment method to order status complete?
I have integrated Custom payment module. I want to save every order placed with custom payment selected should be set to complete.
( If the selected payment mode is with MYPay ) Order Status -> ...
0
votes
1
answer
619
views
Magento 2.3: How can I add PayPal Express Checkout integration on custom page?
I'm new to magento.I'm working on magento 2 custom checkout module due to integration with client ERP system.
All of my checkout process are using custom table like custom_order_table and ...
1
vote
0
answers
597
views
Add message on Checkout Page in Magento 2
Already add my custom module to Disable Payment method on the Checkout Page based on Product Attribute in Magento 2
Now I want to show the message to customer on Checkout Page if COD is Inactive by ...
1
vote
1
answer
481
views
Magento 2 - Missing js files in a certain store view
In Magento 2, is there a way to disable a module for a single store view only in front-end, like Magento 1? Because that's what happened to me.
I have this module named Vendor_XXX that loads several ...
0
votes
2
answers
563
views
Magento 2 :- how to get email address in sales_quote_address_collect_totals_before events
How to get email address in sales_quote_address_collect_totals_before events guest user email address.
<?php namespace xxxxxx\xxxx\Observer;
use Magento\Framework\Event\ObserverInterface;
...
4
votes
5
answers
8k
views
Magento 2 : We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer your_db_user@% does not exist
I have migrated a Magento 2 site to a new server and getting the below error when placing order
We cant place the order :
SQLSTATE[HY000]: General error: 1449 The user specified as a definer
...
1
vote
0
answers
50
views
Where is this text coming from at the end of my checkout URL?
I'm adding a "buy now" button to my site. I'm using the code from here.
When I click the button, my site tries to go to example.com/checkout/#93=4, which then results in it going to example.com/...
2
votes
0
answers
144
views
Do not make Customer Default Shipping Address while creating an Order
When User Go To Checkout Page, And if he has already added the address, I do not want it to be preselected. it always shows unselected.
Like This
2
votes
2
answers
314
views
Adding Space in Checkout Form
I've used Bodak Module :https://github.com/sbodak/magento2-checkout-custom-form
And I changed the checkout to my liking.
How can I add the spaces between the text "If you don't have the code, you ...
0
votes
2
answers
3k
views
Magento 2 How to hide price from front end with custom module?
I have created one module and it has system configuration on the admin side, where the admin has the functionality to enable/disable the module. As per system configuration, I need to hide the price ...
2
votes
2
answers
1k
views
Magento 2 How to override "\vendor\magento\module-checkout\view\frontend\web\js\view\billing-address.js" in our custom module?
I want to disable "New Address" option from billing address drop down. here i got the code to disable it.
we just need to comment the below code : addressOptions.push(newAddressOption); and it will ...
0
votes
1
answer
2k
views
Magento 2 How to send order email copy to custom email address with custom module when order placed?
I have one module where i can set email address in back end. When order placed i want to send that order email copy to my custom email address which is set in backend.
I want to add an observer when ...
0
votes
2
answers
3k
views
how to add city dropdown on checkout page instead of typing the city(M2)
I need to get rid of this company text field and Country drop down since the store serves locally.
Important :
How I can overide the city (text area) to a drop down with my own custom city list.?
3
votes
2
answers
2k
views
Constr is not a constructor on layout.js line 137 error custom module
I have gone through this posts and tried to implement the answers and suggestions
Magento2 getting 'Constr is not a constructor' error for custom theme && Error in layout.js, cart ...
2
votes
0
answers
84
views
Magento 2: Can't place the order corectly after return back from payment (3ds page)
I'm developing a payment module for Magento 2 and stuck at some point.
and I already checked the similar questions,
I send a callback URL with the post of data to PSP to get the customer back to it ...
2
votes
1
answer
2k
views
How to extend the checkout Success block?
In module-checkout, there are 2 blocks as below. I am working to show a custom success page so which one we have to override?
what is the correct way?
Magento\Checkout\Block\Onepage\Success
and
...
9
votes
2
answers
6k
views
Validation of the terms and conditions (custom module)
I've made a custom module which enables me to have the T&C checkbox moved beneath the payment methods and the place order button inside the summary div, like so:
Now, whenever I select a payment ...
16
votes
4
answers
17k
views
How to show a custom attribute in the admin Shipping Address box?
I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
2
votes
0
answers
756
views
Magento 2 : Display custom field (customer attribute) in "checkout register" form [duplicate]
I want to add new field (customer custom attribute) to the checkout register form.
Items already created:
Customer attribute
Source model for customer attribute
Display field in adminhtml customer ...
1
vote
1
answer
2k
views
Add script in header in checkout page
I want to add some custom JavaScript in the header of the checkout page.
I tried to follow the layout structure..
I created a module and places my custom JS file is in app/code/Roman/hello/view/...
0
votes
1
answer
483
views
How to extend rest API request or check request from web or rest API?
I have created a module for checkout payment methods event.
But I need to check request is getting from web or rest API.
I mean something like:
if(request from rest API)
{
echo "REST API";
}
...
2
votes
1
answer
1k
views
Add new checkout step to force user registration
I want to add a new checkout step, and It checks whether the user is logged in or not. If yes, the user can skip this step and go to next step (shipment step), if not, the user needs to register in ...
1
vote
1
answer
9k
views
Magento 2: New Checkout step – Shipping Method prices not showing
I would like to add a new Checkout step to the Checkout page but would like to place it between the customer's shipping details (name, address, email) and the shipping methods radio buttons. To do ...