Zen Cart Logo
Forums / General Questions / Email Order Acknowledgements: Attributes on separate lines

Email Order Acknowledgements: Attributes on separate lines

Locked

Views: 2,797

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
26 Sep 2006, 7:45 PM
#1
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Email Order Acknowledgements: Attributes on separate lines

My copy of the order confirmation emails show all the attributes for an item all on one line. Since I sell an package containing 12 items, and give the customer the choice of colors for each, I have twelve color attributes. The line gets way to long in the email and extends well beyond the normal right margin.

I would like to have the attributes appear on separate lines below the item description like this:

1x Non-Slip Hospital Slipper Socks 12-pack (TSSS-12FS) $52.80
Color first pair Black
Color second pair Black
Color third pair Red
etc. etc.

It seems all I need is a <BR> coded in the right place (or possibly <BR>   )

Anybody have an idea where this would be done?

Thanks, Ron

27 Sep 2006, 12:54 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

The following may be related.
Order Confirmation how to fix

.

27 Sep 2006, 4:39 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

I was typing a reply to you earlier and all of a sudden I lost the screen when I bumped the keyboard. If you get two replies I apologize.

Thank you for pointing me to the other thread discussing attribs being listed in in a single line in the order confirmation emails.

The original poster expressed exactly the same problem I was having and wanted to have the attribs appear on separate lines (that's what I want, too).

Someone wrote with a solution and the original poster said that fixed it.

I tried the same solution but only saw a partial correction of the problem. The attributes still appear as a single string, but now, instead of extending beyond the normal width of the email, they word-wrap and stay within the borders of the email.

That is a big improvement, but not quite what I am shooting for.

I studied the code in includes/classes/order.php and can see that it would be difficult to separate the attributes since the programmers had chosen to combine all attributes into a single string much earlier in the code.

I can live with the fix as it stands now, but hopefully someone will come up with a fix in the future. (I don't have the programming skills to do it). I'm using v1.3.02 and just got my site online. Perhaps when I upgrade to V1.3.5 this problem will have already been addressed.

I appreciate your pointing me to the relevant posts. At least now, if I decide to persue the fix further I have a starting point. I would never have thought to look in the classes files!

Thanks again,
Ron

15 Oct 2006, 2:49 AM
#4
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

Has anyone found a fix for this? I'm having the same issue with no luck. v1.3.02.

Has this been fixed in v1.3.5?

15 Oct 2006, 11:45 AM
#5
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

Please refer to the below topic again, I had updated the info.
Order Confirmation how to fix

Hope it helps. :smile:

.

15 Oct 2006, 12:44 PM
#6
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

THANK YOU SO MUCH!

I was up half the night trying to figure this out.. I can't thank you enough. :)

15 Oct 2006, 12:51 PM
#7
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

You are welcome! :smile:

And hope that the change don't create another problem. :P

.

15 Oct 2006, 2:48 PM
#8
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

seethrou:

And hope that the change don't create another problem. :P

Sorry, it need update again. :blush:

Please follow the other thread for further update. :smile:

15 Oct 2006, 3:09 PM
#9
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

No problem! Thanks again! :)

15 Oct 2006, 7:03 PM
#10
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

SEETHROU

Thanks for the updates. The latest update fixes the problem and provides for the html version of the order confirmation emails to list the product attributes on separate lines.

To help those reading so they don't have to jump back and forth between topics to get the code, here is SEETHROU's final code to fix this problem:

It replaces the line in includes/classes/order.php around line 809 that reads:
$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . $attributes_values->fields['products_options_values_name'];

$this->products_ordered_attributes .= "\n\t" . '<br />' . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']); 

Again, **Thanks to SEETHROU for this fix!:D **

31 Oct 2006, 2:35 PM
#11
mteicher avatar

mteicher

New Zenner

Join Date:
Oct 2006
Location:
Mechanicsburg, PA
Posts:
33
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

How would one place the attributes on the same line.

For example:

1 x Shirt Large Blue MF-xxxx

actually I am looking for a way to add the attribute to the end of the style number

1 Shirt MF-<model number> - L - BLU

any help would be very much appreciated

31 Oct 2006, 5:39 PM
#12
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

mteicher

What you suggest makes a lot of sense for some sellers.

You would likely need to create another field in one the attributes tables in the database to hold a mnemonic code for each attribute value (like BLU for blue, BLK for black, LS for long sleeve, etc.). The idea being that the new attribute code would be applied as a suffix to product_model numbers when displayed or in printouts.

Having this info in the packing slip simplifies order fullfillment for the stock pickers when shelf/bin tags in the warehouse are similarly labeled.

Not every seller will find this useful in their business, but those who do will benefit significantly in simplifying the fullfillment process. Those not needing the feature simply do not enter attribute codes.... no on/off option switch needed in admin.

The new code need not even be mnemonic. It could match option numbers assigned by the manufacturer. Whatver works... it can be very flexible.

Hopefully somebody sees the value of this approach and can come up with a contrbution to make it work.

Ron

1 Nov 2006, 12:38 PM
#13
mteicher avatar

mteicher

New Zenner

Join Date:
Oct 2006
Location:
Mechanicsburg, PA
Posts:
33
Plugin Contributions:
0

Re: Email Order Acknowledgements: Attributes on separate lines

Yes, it would simplify the packing slips tremendously and reduce shipping mistakes especially for the packer who doesn't always look at the order, just the SKU. The workaround I implemented was to place the three letter code into the attribute itself.

For Example when a customer selects BLUE - the attribute reads 'BLU - BLUE', not the most graceful way to get it in there, but it works for now