Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML in PHP text?


arames

Recommended Posts

HI there all OSC Team,

 

I am trying to send an email to customers that wish to pay via Western Union.

 

I went into includes\languages\english\modules\payment

 

and wanted to cahnge the module moneyorder.php

 

but when I opened it found:

 

  define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Bank Money Order/Western Union');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To:?' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br><br>Send To:<br>' . nl2br(STORE_NAME_ADDRESS) . '<br><br>' . 'Your order will not ship until we receive payment.');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Make Payable To: ". MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nSend To:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');

 

Which I didnt find it wasy at ALL with all these \n\n codes ect ....

 

 

 

How can I simply change this text in Description to show this text instead:

 

Thank you for ordering with Domain Name.

A SALE REPRENSENTATIVE FROM DOMAIN SHOULD CONTACT YOU WITH THE WESTERN UNION DETAILS FOR YOUR PAYMENT. (<-- Can this text be in BOLD)

If you have ANY questions or need assistance with our services please do not
hesitate to contact us at anytime:
CONTACT_URL (contact_us.php)

We also highly appreciate all suggestions in how we can improve our service. 

Best regards,
Domain Sales Department

-------------
All rights reserved. http://www.domain.com/shop/privacy.php

 

 

Please please your help is very appriciated since I have spent over 1 hour trying to understand how this ?HP code works ....

 

Thank you in advance,

Arames

Link to comment
Share on other sites

This is easy, what you want to do has nothing to do with php, it is html, so do like this:

 

define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Bank Money Order/Western Union');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To: ' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br><br>Send To:<br>' . nl2br(STORE_NAME_ADDRESS) . '<br><br>' . 'Your order will not ship until we receive payment.');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Make Money Orders Payable To: ". MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nSend To:\n" . STORE_NAME_ADDRESS . "\n\n" . '
If you wish to pay with Western Union:<br>
<strong>A SALE REPRENSENTATIVE FROM DOMAIN SHOULD CONTACT YOU WITH THE WESTERN UNION DETAILS FOR YOUR PAYMENT.</strong><br>
<br>
If you have ANY questions or need assistance with our services please do not <br>
hesitate to contact us at anytime: <br>
<a href="http://www.yourdomain.com/contact_us.php">E-Mail HERE </a><br>
<br>
We also highly appreciate all suggestions in how we can improve our service. <br>
<br>
Best regards, <br>
Domain Sales Department <br>
<br>
------------- <br>
All rights reserved. Read Our Privacy Policy <a href="http://www.yourdomain.com/privacy.php">HERE  <br>Your order will not ship until we receive payment.');

 

This should do what you want--of course you have to change the text some--enjoy! :thumbsup:

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

This is easy, what you want to do has nothing to do with php, it is html, so do like this:

 

define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Bank Money Order/Western Union');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To: ' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br><br>Send To:<br>' . nl2br(STORE_NAME_ADDRESS) . '<br><br>' . 'Your order will not ship until we receive payment.');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Make Money Orders Payable To: ". MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nSend To:\n" . STORE_NAME_ADDRESS . "\n\n" . '
If you wish to pay with Western Union:<br>
<strong>A SALE REPRENSENTATIVE FROM DOMAIN SHOULD CONTACT YOU WITH THE WESTERN UNION DETAILS FOR YOUR PAYMENT.</strong><br>
<br>
If you have ANY questions or need assistance with our services please do not <br>
hesitate to contact us at anytime: <br>
<a href="http://www.yourdomain.com/contact_us.php">E-Mail HERE </a><br>
<br>
We also highly appreciate all suggestions in how we can improve our service. <br>
<br>
Best regards, <br>
Domain Sales Department <br>
<br>
------------- <br>
All rights reserved. Read Our Privacy Policy <a href="http://www.yourdomain.com/privacy.php">HERE  <br>Your order will not ship until we receive payment.');

 

This should do what you want--of course you have to change the text some--enjoy! :thumbsup:

 

 

Thank you so much Rabbit,

 

do you know any program that can help me with all this?

 

I mean transfer text into this /n/n and <br> ?

 

Thanx for your help

Link to comment
Share on other sites

Thank you for this Help.

 

1 question remains though ...

 

I wanted to add a link to

http://www.mydomain.com/shop/contact_us.php in the text sent by email

 

So I thought to make

' . (FILENAME_CONTACT_US) . '

 

 

unfortunately in the email sent as well as in the text shown, it shows only

contact_us.php

 

there is no reference to www.mydomain.com

 

Any help there?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...