Forums / All Other Contributions/Addons / Allow Customer to add to Order Comments

Allow Customer to add to Order Comments

Views: 10,108

Results 1 to 20 of 45
17 Jun 2006, 12:24 PM
#1
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Allow Customer to add to Order Comments

This add-on allows your Customers to use a simple form to ask questions regarding their order. The questions are emailed to both your chosen email address and a confirmation sent to the customer. The customers comments are then appended to the order comments.

This is the support thread for this new add-on.

Absolute

[The add-on is soon to be released, but in the meantime PM me if you would like a copy for testing.]

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

4 Jul 2006, 2:03 PM
#2
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

Has anyone ported this back to V1.2.7d?

I've been in contact with Chris and he confirms that as far as he is aware the only file that will need to be changed is includes/templates/YOUR TEMPLATE/templates/tpl_account_history_info_default.php

I've attached copy of the updated 1.3x

I've tried to modify this myself but because of the massive changes between 1.2x and 1.3x I'm lost and Beyond Compare is of no use in this instance.:(

I didn't want to bother Chris if somebody else had already made the changes.

Thanks

Brent

8 Jul 2006, 8:50 AM
#3
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

This is the offending bit of code I need to convert to V1.2.7d format if anyone has any ideas. I know it will be easy but I just don't know PHP.

Very good at following instructions but useless when starting from scratch.

<!-- Start of Order Question Module -->
<?php
  if (ALLOW_ORDER_QUESTION == 'true') {
//		 '<a href="' .  . '"  target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", 
    echo '<div class="order_history_question" style="text-align:center;"><br />' . TEXT_ORDER_QUESTION_LINK . '<br /><br />' . 
		 zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=\'javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", "ask_question","toolbar=no,width=300,height=425")\' style="cursor:hand;"') . 
		 '<br /></div>';
	echo '<hr />';
  }
?>
<!-- End of Order Question Module -->
18 Aug 2006, 2:43 AM
#4
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

i have a couple questions..

i got your mod installed, its wonderfull, this is something that zen-cart really needed.

i had to manualy change the orders.php file, but its working.
however i notice some things that need to be changed.
the sized windows opens with both IE and firefox, but the box is too small so you cant see the button on the bottom.. you have to tab down to see it.....

How do you fix that? also you said something about container sizes, but i cant seem to find that option under moduals. I dont know if that is what i need to change, but i need to make the window for the questions larger....

also, i noticed a change in my admin orders where it says TEXT_MASK_CC or somthing... i never saw that before.

I clicked it, and it did ***** out some of the numbers, but how do you get them back so that i can read them? I need those becuase my customers just want me to charge them for the products they want.....

I also notice that in the email sent to the customer, it wants to show them the Order Number, however it only shows "Order#%s" how do we fix that?

help on this would be great.

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

18 Aug 2006, 3:04 AM
#5
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

sorry for the double post, but im wondering also if an email is sent when a customer updates his order history comments?

or do we have to go through and watch the comments boxes for all customers?

I did get the email when i sent a test question, but when a customer does this, there is no email sent to the admins....

is this going to be in the future?

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

18 Aug 2006, 4:55 PM
#6
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

well, i got all the problems worked out, except the email part....

I set the email address under MY STORE>>Email Options, in the format they ask for
"name [email protected]"

but i still dont get emails when a customer asks a question via this contrib...

is there somthing im missing?

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

16 Nov 2006, 4:14 PM
#7
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

Me too: I don't receive customers message

13 Dec 2006, 11:15 AM
#8
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

Absolute, have some update?

16 Dec 2006, 8:39 AM
#9
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

The strange thing is when customer update their order.
With this trick by Absolute:
change
$order_status = $check_status->fields['orders_status_id'];
in
$order_status = '4';
where 4 is id of update order status, in admin I can see the customer comment with green flag and only the name of status to update, but the real status of order is the same befor comment

16 Dec 2006, 3:30 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Allow Customer to add to Order Comments

Be careful of orders_id 4 for Update ...

This is also used to update an order that has downloads to reset the downloads again ... the orders_status changing from the /admin/orders.php is the trigger on this one ...

This may or may not be an issue on this add-on ... but do test carefully ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2006, 7:52 PM
#11
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

I've just add another update status id=10... I hope! :-(

19 Dec 2006, 6:40 PM
#12
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

No difference!
It's the same!
I'm trying to create order row by date_added (until Absolute give us new updated file), with no success because I've problem with select field in query. Is there somone to help me?

27 Dec 2006, 6:07 PM
#13
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

At this moment the best solution is:
in admin section-->email options-->Set "Order Question" Email Address-->delete all (blank);
so the customer comments notification email arrive to default admin email.
If you want another email address change this:
$send_to_email = EMAIL_FROM;
to
$send_to_email = '[email protected]';
on line 74 in order_question.php

27 Dec 2006, 11:03 PM
#14
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

Has anyone tried running this on 1.3.6?
Is it compatible?

29 Dec 2006, 6:18 PM
#15
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Allow Customer to add to Order Comments

There is a new release of this module due out next week. This will certainly be 1.3.6 compatible.

Many thanks

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

7 Jan 2007, 7:52 AM
#16
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Allow Customer to add to Order Comments

Hi all,

Is there a way I can adapt this module to include several form fields?

I would like to have a form that allows customers to include custom attributes at the end of the sale.

Many thanks

Goshawk

Time is but an illusion, there is only "now"!

12 Mar 2007, 2:09 PM
#17
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

I just installed this mod, and it looks good, except that from the customer interface, when i click on "Click here to ask your question now. " nothing happens. Looking at the rendered code, there is no onclick nor is there any <A> tag... so it makes sense that nothing would happen.

I suspect it has something to do with the code below:
NOTE: I am using CSS buttons. v1.3.7

<!-- Start of Order Question Module --> <?php if (ALLOW_ORDER_QUESTION == 'true') { // '<a href="' . . '" target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", echo '<div class="order_history_question" style="text-align:center;"><br />' . TEXT_ORDER_QUESTION_LINK . '<br /><br />' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=\'javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", "ask_question","toolbar=no,width=300,height=425")\' style="cursor:hand;"') . '<br /></div>'; echo '<hr />'; } ?> <!-- End of Order Question Module -->

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

12 Mar 2007, 2:10 PM
#18
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

One more question. When unzipping the contribution, there is a file order_question.php in the root (in the same directory as the sql patch. Where does this file go ?

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

12 Mar 2007, 3:27 PM
#19
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

Absolute:

There is a new release of this module due out next week. This will certainly be 1.3.6 compatible.

Many thanks

AbsoluteI can't seem to find this new release, anyone who has it?

13 Mar 2007, 5:06 PM
#20
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Allow Customer to add to Order Comments

I got it working in 1.3.7 as follows:

The order_question.php which is in the root of the unzipped folder goes to the root of your store.

Made the following edit in tpl_account_history_info_default.php:

Line 127 - 137:

<!-- Start of Order Question Module -->
<?php
  if (ALLOW_ORDER_QUESTION == 'true') {
//		 '<a href="' .  . '"  target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", 
    echo '<div class="order_history_question" style="text-align:center;"><br />' . TEXT_ORDER_QUESTION_LINK . '<br /><br />' . 
		 zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT, 'onClick=\'javascript:window.open("' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '", "ask_question","toolbar=no,width=300,height=425")\' style="cursor:hand;"') . 
		 '<br /></div>';
	echo '<hr />';
  }
?>
<!-- End of Order Question Module -->

Changed to:

<!-- Start of Order Question Module -->
<?php
  if (ALLOW_ORDER_QUESTION == 'true') {

    echo '<div class="order_history_question" style="text-align:center;"><br />' . '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ORDER_QUESTION . '?order_id=' . $_GET['order_id'] . '"  target="ask_question">' . zen_image_button(BUTTON_IMAGE_ORDER_QUESTION, BUTTON_ORDER_QUESTION_ALT) . '</a><br /><br /></div>';
	echo '<hr />';
  }
?>
<!-- End of Order Question Module -->

Hope this helps out someone else.

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.