Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

how to replace text in product_options in order_data.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-10-2009, 03:06 AM
 
Ginestra Ginestra is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 81
 

Default how to replace text in product_options in order_data.tpl

line 11 and 12

{include file="modules/Product_Options/display_options.tpl" options=$products[prod_num].product_options options_txt=$products[prod_num].product_options_txt is_plain="Y"}

how I can do a replace in this text?this is the content of the email

for the content of the last page of the checkout I've do a replace in /skin1/modules/product_options/display_options.tpl in this way for string "Code"

$options_txt|replace:"\n":"<br />"|replace:"Code:":""

But I need the same replace in the email content.. some ideas?
I need also to remove "Code" from the cart (first page, when add a product to cart)
__________________
4.1.10 Gold
Reply With Quote
  #2  
Old 03-15-2009, 11:14 PM
 
Ginestra Ginestra is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 81
 

Default Re: how to replace text in product_options in order_data.tpl

some ideas?
__________________
4.1.10 Gold
Reply With Quote
  #3  
Old 03-17-2009, 07:50 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: how to replace text in product_options in order_data.tpl

What is it you are trying to do? From what you posted it looks like you want to replace the option that the customer ordered with some other text, is that correct?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 03-18-2009, 03:11 AM
 
Ginestra Ginestra is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 81
 

Default Re: how to replace text in product_options in order_data.tpl

Quote:
Originally Posted by JWait
What is it you are trying to do? From what you posted it looks like you want to replace the option that the customer ordered with some other text, is that correct?

Example of product_options

Date: January 2009
Time: 8.00
Where: Rome
Code:

I want to replace the text "Code:" with an empty string -> "", because this is not necessary on the public store (and so try to hide this string) but I need this field in the xcart admin.
__________________
4.1.10 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:03 PM.

   

 
X-Cart forums © 2001-2020