TOPIC:

Changing the Invoice E-Mail title 2 years 11 months ago #224204

  • Topic Author
  • rickyh
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 2
Hey there,

I´ve successfully customized the Notification aswell as the E-Mails being sent by the system after an order.

The only thing I can´t figure out is how to change the title of the E-mail, which currently is "Receipt for your order # 2018-03-15-92662470".

Where is the template located to edit this?

Thanks in advance!

Please Log in or Create an account to join the conversation.

Changing the Invoice E-Mail title 2 years 11 months ago #224304

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 557
Hello,

This string is added inside this file :

administrator/component/com_breezingcommerce/classes/CrBcCart.php on line 3799
$subject = JText::_('COM_BREEZINGCOMMERCE_RECEIPT_FOR_YOUR_ORDER') . ' ' . $order->order_number;

Also depending on your language you can translate the string itself inside ( COM_BREEZINGCOMMERCE_RECEIPT_FOR_YOUR_ORDER ) administrator/language/en-EN and administrator/components/com_breezingcommerce/language/en-GB/site

Hope this helps.

Regards,
Mario
The following user(s) said Thank You: rickyh

Please Log in or Create an account to join the conversation.

Last edit: Post by MarioPuco.

Changing the Invoice E-Mail title 2 years 11 months ago #224320

  • Topic Author
  • rickyh
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 2
Modifying the .ini didn´t work at all, maybe because I have multiple languages - I have no idea why.

What did work is altering the CrBcCart.php though I had to remove the else statement. Apparently the function JTEXT is not really compatible in combination with another Textoutput in plain text. Now it works.

For anybody else reading this: The code below works, but it takes out the cancellation header, which I didn´t need. In the end the part starting from line 3794 looks like this:
        if($email){
            
            $subject = '';
            
            if(!$cancelled){
                $subject = "YOUR INVOICE TITLE HERE" . ' ' . $order->order_number;
            
            }
            
            $body = $contents;


Thanks Marko for your help :)
The following user(s) said Thank You: MarioPuco

Please Log in or Create an account to join the conversation.

Changing the Invoice E-Mail title 2 years 11 months ago #224322

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 557
Hello,

Thank you rickyh!
Glad you managed to resolve this :)

I'll look into your other topic now.

Regards,
Mario

Please Log in or Create an account to join the conversation.

Changing the Invoice E-Mail title 2 years 11 months ago #224417

  • Topic Author
  • rickyh
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 2
Ok, last update for future readers:

I got the .ini solution to work aswell. I had to delete all the jommla-files in the "override" section under languages and replaced the original .ini. Also make sure to place the file in both folders and erase any type of cache that you can get your hands on ; ) .

P.S.: The .ini solution is cleaner and should be preferred!

Please Log in or Create an account to join the conversation.

Last edit: Post by rickyh.

Changing the Invoice E-Mail title 2 years 11 months ago #224562

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 557
Hi,

Great ! Thank you for sharing this with the community!

Let us know if you have any other questions.

Regards,
Mario

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!