View Single Post
  #4  
Old 09-14-2011, 09:05 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Customer messages on invoices

Alternatively, if you are happy with the way the options are displaying on your invoice, but just want to change the display on the product page, you can use webmastermode to find the template that displays the product options and look at the $product_options array. For your version - it is a little harder to look at smarty variables, but if you go to the extra trouble - it makes things like this much easier. See this tip.

There will be a loop to display all the options as inputs for the form. It will look something like this: {foreach from=$product_options item=v}

Then you could name your options something like "message1" and "message2"

You can put an if/than statement inside that loop and look at the class (option name) and displays the option text as you want. Something like:


{if $v.class eq "message1" || $v.class eq "message2"}
<!-- Here is the message -->
<p>{$v.classtext}</p>

{else}
... display options as normal as inputs for the form for all options with other option names
{/if}

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote