Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am asking whether is is possible that after a user chooses the variants, we want that for each item, we would like to add some text with an item.
Also, when a user submits an order, we would like also to have some notes with that specific order that user submits.
Something like the below:
Thank you for your help.
Each line item in the basket has an ExtendedDataCollection. You can add the individual line item notes to that collection.
For the invoice, you can add a note through CheckoutManager.Extended.
So that you have all of the notes in the back office, you could replace the task
<task type="Merchello.Core.Chains.InvoiceCreation.CheckoutManager.AddBillingInfoToInvoiceTask, Merchello.Core" />
<task type="Merchello.Core.Chains.InvoiceCreation.CheckoutManager.ConvertItemCacheItemsToInvoiceItemsTask, Merchello.Core" />
<task type="Merchello.Web.Workflow.InvoiceCreation.CheckoutManager.AddCouponDiscountsToInvoiceTask, Merchello.Web" />
<task type="Merchello.Core.Chains.InvoiceCreation.CheckoutManager.ApplyTaxesToInvoiceTask, Merchello.Core" />
<task type="Merchello.Core.Chains.InvoiceCreation.CheckoutManager.ValidateCommonCurrency, Merchello.Core" />
<task type="Merchello.Core.Chains.InvoiceCreation.CheckoutManager.AddInvoiceNumberPrefixTask, Merchello.Core" />
<!-- REPLACE THE FOLLOWING TASK WITH ONE THAT CONCATENATES ALL YOUR NOTES TOGETHER -->
<task type="Merchello.Web.Workflow.InvoiceCreation.CheckoutManager.AddNotesToInvoiceTask, Merchello.Web" />
Here is the code for that task:
Thank you Rusty for your help.
So the notes that I add to the ExtendedDataCollection will be visible somewhere in the umbraco CMS, once the order will be placed, or somewhere where there are the Customer Basket?
They will show up on the sales overview:
But that of the Sale/Order.
The notes for the items in the order, where will be shown? (The ones that I will add notes in the ExtendedDataCollection)
That is why you would write your own custom task to replace the default one...
iterate through the line items and look for notes (with an extended data key you define specifically for your application) and either concatenate them all together as a single note ... or add a bunch of individual notes.
If you want the note to appear under the line items (in the items list) you would need to write a custom Angular directive and put it into the sales overview page. This is something we have thought about as a future feature, but have not made it a priority thus far. If you do it that way it'd be great to get a pull request.
I’m going to be working in this area, I think I have worked out what I need now, but I think I could do this if I tried hard enough, maybe if I can get of a hand getting started I’ll give you a pull request:-)
Ok Got it.
Thanks very much.
Hi Simon and Rusty,
Did this feature or pull request ever make it in?
Thanks in advance guys.
The notes are in there - the custom directive would be part of Simon's solution (not sure if he did it that way - Simon?) but there was never a feature add or pull request.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted