boldcommerce / magento2-ordercomments Goto Github PK
View Code? Open in Web Editor NEWAdd an order comments field in the default checkout for Magento 2.
License: MIT License
Add an order comments field in the default checkout for Magento 2.
License: MIT License
Is your latest version of an extension compatible with Magento 2.3.3?
Hi guys!
I created a new pull request to support the Magento 2.4, you need only to approved.
Hello, thanks for your extension. I works but my theme shows it with black background and blue font color. where can I change the css?
Also how can I change the collapsing text field to regular text field which is always shown?
Thank you!
After installing the plugin, it appears properly in the configuration of Magento 2, and also the textarea shows in the card. However, when I enter a value in the textarea, the order button does not respond anymore because the plugin requests a REST api call to validate the input, but this call returns a 404.
Hello,
I'm experiencing an issue where comments are only being saved for downloadable products when we use Apple Pay via Rootways Authorize.net CIM extension. It works properly with the credit card payment options. https://www.rootways.com/magento-2-authorize-net-cim-extension
Any ideas?
I have created the cart --> https://example.com/rest/us/V1/carts/mine
Added Products ---> https://example.com/rest/us/V1/carts/mine/items
Now, I want to add the comment so I used the below API:
PUT https://example.com/rest/us/V1/carts/mine/set-order-comment?cartId=841xx
Body JSON:
{
"orderComment": "The is test comment"
}
Response 200 OK []
Then I follow the process and place the order but when looking at the orders in the admin grid the comment is not there.
I have tested the comment through the website and it is working but it does not work through APIs.
In app\code\Bold\OrderComment\Model\OrderCommentManagement.php
Line 52 : $comment = $orderComment->getComment();
The $comment variable has a NULL value.
Magento 2.3.6
when i am using billdesk as my payment method the order comments are not getting saved
The comment isn't saved when using stripe payment.
Stripe Payment Module Version: 2.5.7
If the credit card (processed via Stripe) is used as the payment method, the custom validator order-comment-validator.js
validate
function is not invoked after order is placed.
Is it possible to display the comment in E-Mail Templates?
Add configuration to change the position of the comments input in the checkout.
I installed the module via composer and enabled it, but it is not showing in checkout.
I'm using Magento 2.3.5-p1
Hi Team,
I am trying to create an order using the REST API. But how do you include order comment on POST call? I have tried adding "bold_order_comment" into the extension_attributes and checkout_fields inside extension_attributes but did not work.
Hi, Plugin works fine and I see comments in magento backend.
What I have to write into the email template that the comment is shown in order confirmation email?
I try:
<h3>Order comment</h3>
<p>{{var getOrderCommentHtml()}}</p>
Yes I know, it is not correct, but is it possible?
All is in the title.
I cannot install php 7.3 because your composer.json require php 7.2
Let me make a PR
Hi Team,
Could you please let me know why we are using $this->_isScopePrivate = true; in app/code/Bold/OrderComment/Block/Order/Comment.php.
Do we really need this under this block?
Since this variable definition is different.
Please suggest
Hi,
Thanks for adding the API features of this module - Definitely helped with this business case.
However, I encountered an issue. Most businesses, don't have the Magento Admin panel open when processing orders and as such, they print out the Order, or Packing Slip PDF and give this to their delivery teams.
It would be nice to add these comments optionally onto the Order / Packing Slip PDF's
Let me know if this is a feature you're interested in completing. It would make this module fully usable for all cases, from integrations to companies that print off PDFs directly from Magento.
Thanks again for the module, it's great!
Robert
Hello guys,
thanks for your extension. Really helpful! We have noticed that at the production mode of the Magento (2.3.6), the extension generates a bug when we try to load the checkout page:
Uncaught TypeError: Cannot read property 'length' of null
Seems to us that the method initialize() at Bold_OrderComment/js/view/checkout/order-comment-block.js doesn't handle the NULL value of this action:
initialize: function() {
this._super();
var self = this;
this.comment = ko.observable(getExistingComment()).extend({maxOrderCommentLength: this.getMaxLength()});
this.remainingCharacters = ko.computed(function(){
return self.getMaxLength() - self.comment().length; // THE ISSUE IS HERE!!
});
},
Thanks
Is it possible to default the comments box to open? Currently it defaults to collapsed.
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 76.0 MiB
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/zaoorgan/public_html/vendor/boldcommerce/magento2-ordercomments/Block/Order/Comment.php on line 30
Magento 2.1.8
Can somebody help me with this??
Thanks
Hi,
I'm using /V1/carts/mine/set-order-comment in postman except I'm getting an empty array in return.
My body is:
{
"cartId": "102693",
"orderComment": "Dit is een test comment"
}
I'm using put and the bearer token of my account. When using it in postman I'm getting an empty array in return and nothing is happening after placing an order.
Please check csv file for italian language:
magento2-ordercomments/i18n/it_IT.csv
There are plus "+" in the file.
Hey guys,
i installed the module using composer require "boldcommerce/magento2-ordercomments" "~1.1.1"
,
magneto version 2.1.7
when i try to view order details from Sales -> Orders -> select view order
the page breaks and gives me this error :
Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Invoices Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Credit Memos Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Shipments Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Comments History Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Hi,
I was just curious if there is a variable I can use to get the comment for the transaction emails?
Thanks!
Ryan TeGantvoort
Just installed your plugin in a test environment, I can place orders without a comment but as soon as I add a comment the "Place order" button stops working. I tried a recompile and to clean and flush the cache but unfortunately that didn't work. I did get some errors in the chrome console, would those be helpful for you?
Could you provide a setting to have the comment textarea shown at the first step in the checkout. Preferably after entering the name and address.
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /app/code/Bold/OrderComment/Block/Order/Comment.php on line 30
Hi,
Thanks for this wonderful extension. Although I have few queries to extend the module. How can I achieve below
Do you have any comments regarding the order?
Thanks.
As in the subject - composer will not install this extension alongside PHP 8.2 (we're trying to upgrade Magento to 2.4.6 with PHP 8.2).
I've crated a pull request to make it possible.
When i try to open an order, i get the following error message :
Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
Blochain blocktrail
The following table shows the private content block(s) that have the _isScopePrivate variables configured making the block not cacheable.
vendor/boldcommerce/magento2-ordercomments/Block/Order/Comment.php
Do not use the _isScopePrivate property in your blocks. This property is obsolete and will not work properly.
Replace _isScopePrivate property by private content instead.
Reference our developer documentation for guidance:
Please submit a Magento Support ticket for assistance or feedback.
The _isPrivateScope variable is making block(s) not cacheable.
Since private content is specific to individual users, it is reasonable to handle this on the client-side (i.e., the web browser) instead of hitting the server for retrieving the same data on each customer request.
Always test in the Staging environment prior to making any changes to the Production environment.
Each request to Magento can trigger additional Ajax requests for non-cacheable blocks causing negative site performance.
Is it possible to download order comment using API?
I'm not an expert unfortunately, but the company that develops an application for me, claims it is not possible, making this module not feasible for my system.
Could you please confirm if this attribute is visible to API calls?
Many thanks!
Kate
Hello
I have a problem, when click "Place Order" (checkout) i get error:
Method Not Allowed
The requested method PUT is not allowed for the URL /pl/rest/pl/V1/guest-carts/ee9577cbbf710fd909783fdbff2a1f14/set-order-comment.
please help me
Best regards
Ran into a problem with you Module after an Upgrade to Magento 2.1.14.
For some reason, the Magento compiler in this version ignores PHP return values, while generating an interceptor. Because of this, the interceptor becomes incompatible to the original file and past orders can no longer be reviewed in the customer area.
Fix for me was to override Bold/OrderComment/Block/Order/Comment.php and remove the PHP return values. I'm not sure why they are there, so I did not sent a PR.
The fix is simple. Example
Change: public function getOrder() : Order
To; public function getOrder()
Only this file needs changing for Magento 2.1.14 to work.
Hi,
I've added translation strings for this module in my template/i18n/sl_SI.csv (Slovenian language) and it looks like it does not work.
Is there any other way I can override translation?
Best regards,
Matic
Whenever I am trying to give a comment and use WEBPAY, a 3rd party payment module, the comment is not saved.
Hi, please add also the greek translation. I have attached the corresponding file.
el_GR.csv
How can I use my translation in your module without placing it in vendor/module directory? If I place it there it will be overwritten in the next update. If you integrate it of course this will not be a problem
Hello,
please add Arabic translation
attached the translation file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.