Changing the Invoice E-Mail title

  • rickyh
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 2

rickyh created the topic: Changing the Invoice E-Mail title

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!
#224204
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Changing the Invoice E-Mail title

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

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224304
The following user(s) said Thank You: rickyh
  • rickyh
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 2

rickyh replied the topic: Changing the Invoice E-Mail title

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 :)
#224320
The following user(s) said Thank You: MarioPuco
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Changing the Invoice E-Mail title

Hello,

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

I'll look into your other topic now.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224322
  • rickyh
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 2

rickyh replied the topic: Changing the Invoice E-Mail title

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!
#224417
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Changing the Invoice E-Mail title

Hi,

Great ! Thank you for sharing this with the community!

Let us know if you have any other questions.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#224562
Time to create page: 0.067 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here