Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Attribute display problem on Checkout Confirmation page (and possible emails too)

Attribute display problem on Checkout Confirmation page (and possible emails too)

Views: 970

Results 1 to 11 of 11
25 Jan 2013, 5:32 PM
#1
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Attribute display problem on Checkout Confirmation page (and possible emails too)

Hey guys,

I have radio button for 2 attributes with long text to the right. I decided to add a </br> and many   to get the extra text to flow nicer. They are hidden nicely on the product info page AND the shopping cart.

see example:
http://store4.musicalcreations.com/index.php?main_page=product_info&cPath=1_71&products_id=178000001

BUT, when I get to checkout confirmation, all the hidden code is appearing as text. In testing, I completed checkout and the code was hidden once again in all email confirmations :-).

Can anyone help me hide this hidden code specifically on the Checkout Confirmation page.

thank you,

Jeff
musicalcreations.com

25 Jan 2013, 8:32 PM
#2
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

Here is some interesting code I found in the checkout_confirmation page around line 136.
It even says 'one per line'. Can this be modified to appear like the shopping cart and emails?

<?php // if there are attributes, loop thru them and display one per line if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) { echo '<ul class="cartAttribsList">'; for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { ?>
  <li><?php echo $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); ?></li>
<?php } // end loop
25 Jan 2013, 8:33 PM
#3
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

sorry, but I can't figure out how to paste the code above into a separate box...

25 Jan 2013, 8:35 PM
#4
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

Attached is an image of the problem in checkout confirmation

Attachment 11832

25 Jan 2013, 8:44 PM
#5
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

it is <br /> and not </br>

25 Jan 2013, 8:55 PM
#6
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

thank you Design75

I replaced the break with both <br /> and <br/> and neither of them replaced the problem I see in the Checkout Confirmation page.

Which IS correct by the way?

jeff

25 Jan 2013, 9:27 PM
#7
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

yes, both notations are correct.

I just made a test account , to see for myself what was happening. it looks like the html caracters get converted

this is what i see in the source code```html

<ul class="cartAttribsList"> <li>: MP3 DOWNLOAD</br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EPAN-8001 - G/D - 1:30 (EDITED LENGTH)</li> <li>Key Transposition: (none)</li> </ul> </td> ```
25 Jan 2013, 9:39 PM
#8
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

wow - you are correct.
Is this something that was missed in all the UTF-8 upgrading?

Is there still a way for me to 'code' a fix for it on that page?

thank you,
Jeff

25 Jan 2013, 10:31 PM
#9
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

No, it is standard ZC behaviour. The Option value field is not mend to contain html content, so it is converted to text. I am not sure how to fix this quickly.

25 Jan 2013, 10:58 PM
#10
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

bummer :-(

I'll take that code out and decrease the size of the font to make it fit again.

thanks for your help

26 Jan 2013, 9:05 AM
#11
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Attribute display problem on Checkout Confirmation page (and possible emails too)

Just had a thought,

At the other pages (shopping cart and product) the code shows okay, so maybe there is something in the checkout confirmation code that can be changed.