X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   how to replace text in product_options in order_data.tpl (https://forum.x-cart.com/showthread.php?t=46153)

Ginestra 03-10-2009 03:06 AM

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)

Ginestra 03-15-2009 11:14 PM

Re: how to replace text in product_options in order_data.tpl
 
some ideas?

JWait 03-17-2009 07:50 AM

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?

Ginestra 03-18-2009 03:11 AM

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.


All times are GMT -8. The time now is 12:28 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.