If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / 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)

Started by jeffmic on 25 Jan 2013, 5:32 PM · Views: 975

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

Post #1 by jeffmic

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

jeffmic

Zen Follower

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

Post #2 by jeffmic

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

Jeff Michaels,
pres of Musical Creations Ltd.

25 Jan 2013, 8:33 PM
#3
jeffmic avatar

jeffmic

Zen Follower

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

Post #3 by jeffmic

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

jeffmic

Zen Follower

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

Post #4 by jeffmic

Attached is an image of the problem in checkout confirmation

Attachment 11832

Jeff Michaels,
pres of Musical Creations Ltd.

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

jeffmic

Zen Follower

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

Post #6 by jeffmic

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

design75

Totally Zenned

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

Post #7 by design75

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

Post #8 by jeffmic

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

jeffmic

Zen Follower

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

Post #10 by jeffmic

bummer :-(

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

thanks for your help

Jeff Michaels,
pres of Musical Creations Ltd.

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

design75

Totally Zenned

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

Post #11 by design75

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.