MS2 Reports...
Hi.
I need to edit the order number that's shown after a sale (currently is something like #1305/1) — How would I go about changing to include the customers initial (to something like JOE-1305/1)?
Also, Is it possible to email the details or summary of the orders (on the orders page)?
I need to edit the order number that's shown after a sale (currently is something like #1305/1) — How would I go about changing to include the customers initial (to something like JOE-1305/1)?
Also, Is it possible to email the details or summary of the orders (on the orders page)?
Комментарии: 40
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
2. Yes, see snippet msOrder, it set various placeholders to the email chunk.
By default you must receive emails with order information right after MS2 installation. And new emails, when changing order status.
I'm referring to a summary or a report that contains a list of all the orders for a particular time — eg for the past month. Is it possible to email such a report to the admin, or to a given email address?
P.S. Joseph, try to answer to the comments — i will receive email notofocation about you reply. Press link "ответить" under needed comment.
Thank you so much for your patience… I'm sure you can tell, I'm quite new at the development side of ModX, and your support has been a great help.
One last query: I need to add some fields to the tpl.msEmail.new.user email, and tried adding the following, but only got the labels — what do I need to add to it — or am I using the wrong names?
Thank you
Name: [[+name]]
Email Address: [[+email]]
Phone: [[+phone]]
Alternate Phone: [[+phone1]]
ID: [[+id]]
Address:
[[+room]], [[+building]], [[+street]]
[[+city]]
[[+region]]
[[+index]]
Thank you
So, where can I modify this?
Thank you
If you want to change this — you need to overload function changeOrderStatus() in your order class. See annoucement of MS 2.0.1.
I've managed to update the placeholders below — thanks for the guidance.
I'm having a problem changing the recipient email address — where do I make the changes? or, rather, where do I find the function changeOrderStatus()? (I've got MS 2.0.1 on my local machine)
I know these questions are pretty basic, but I'm learning from it, and really do appreciate the help.
But i have a idea. You can disable email notification to buyer on status «new» and notice about it will receive only site manager.
Then he check all what he need and switch status to «Verified» — and on save of order will be sent email to buyer.
On each status you can set separate chunks for admin and manager.
I think — this a decision.
If you were here i would
kissshare a bottle of vodka with you!Thank you, sir.
You can see all fields of objects in scheme of component. Here is visualizer.
Except comment. I've tried +order.comment and address.comment — but nothing comes through…
the field I'm trying to capture is
I've really tried solving it by myself but I can't find what i'm missing…
Why it field is hidden? If you are hiding it from user and want to write a default parameter, you need to do change it:
By the way, you must see this comment in manager, when viewing the order. It will be at the bottom of address tab.
In manager, I don't get any comment either… All the other address fields are populating…
So, in the database, Country and Comment are «Null»
Any ideas?
I think it is because form not submitting trough ajax, but fields saving when changed.
Try to add needed fields manually by plugin on event msOnSubmitOrder:
I have tried the code, but I can't get it right.
This obviously gives me the literal words "+address.comment" in my email. how do I reference a particular field's value? that's all I need then I can close this project…
Thanks for your patience
Here you can check any user data, session, cart, any what you need and save it in comment field in order.
Understand?
Forget comment in frontend form, you do not need it if you want to save some technical data.
How did you get «No Sales Agent» in the comment field on frontend? You set it by some snippet or what?
Since I couldn't add a custom field and save the data, I've been trying to use Comment.
I'm sure there is a more elegant method of doing this, but I don't have the skills to do it…
You just need to add selected info to order by ajax request. You can use this method in javascript
Just try to bind this command on select.
Plagin need to modify order on server side after user send it. If user manually adds data — we need to save it in order by ajax request.
By default MS2 saving all input and textfield automaticle, but i do not think about select =)
You will see the magic!
This changes the values fine, but I still can't save it (or add it to the email).
Also tried this:
Still no go.
This may sound strange, but could it possibly be linked to not actually typing anything in the field? Everywhere else where we type, it works, but with the select or javascript filled textfields, it fails… I know it shouldn't matter… but it's the only connection I can find.
Is there any way you can help?
Try this code:
is there something I need to tweak? Could the comment not be coming in the email because of type?
Value must be in msOrderAddress.
Give me adress of your site, i will look on it.
justimaging.co.za/lava
should I email you the credentials?
Also, we need to save «No Sales Agent» immediatly after page loads, and then on change of select. So, the final result is:
Ms2 is an awesome product, and your support has been excellent. Thank you.