[Skip to main content](#vessel-content)

#   Send Notification Email ONLY After Payment

##

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 9 months ago -  2 years 9 months ago [\#358480](#358480) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358480 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")* was created by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")*

Hi there,

1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?

2) Also, how do I add the BRAND name in the emails?

Thanks!

Last edit: 2 years 9 months ago by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 9 months ago [\#358488](#358488) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358488 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1. Disable the "order admin notification" and the "order created notification" emails via the menu System&gt;Emails. Both are sent when the order is created. The "order status notification" and the "payment notification" emails are sent after the payment has been made.

2. The brand name of the products ? That information is not easily available there. It will require loading the data in the preload of the emails. So edit the emails via System&gt;Emails and in the preload area, before the line: Code:

$cartProduct['PRODUCT_NAME'] = $t;

you can add something like that: Code:

$categoryClass = hikashop_get('class.category'); $brand = $categoryClass-&gt;get($product-&gt;product_manufacturer_id); $t.='&lt;p class="brand_name"&gt;'.$brand-&gt;category_name.'&lt;/p&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 9 months ago [\#358546](#358546) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358546 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1) I just want to confirm.
If I disable the "order admin notification" and the "order created notification", when an order is made and paid for, what email(s) will the customer get, and what email(s) will the administrator get?

2) Thanks for the code. It worked, except it put the brand name after the product name, like this:
Poppy Floral Makeup Cosmetic Case Black Red Bag
Kate Spade

I would prefer it like this:
Kate Spade
Poppy Floral Makeup Cosmetic Case Black Red Bag

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 9 months ago [\#358549](#358549) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358549 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1. The customer will get the order status notification email and the admin will get the payment notification email.

2. You can add such CSS to the HTML: Code:

&lt;style&gt;.brand_name{display:block;}&lt;/style&gt;

and it should do it;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 9 months ago [\#358590](#358590) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358590 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1. Thank you. When is the "Order notification" used?

2) Sorry but that didn't work. Please see attached.

Thanks!

- [ ![Brand-2.jpg](/forum/attachment/58695) ](/forum/attachment/58695 "Brand-2.jpg") [ ](/forum/attachment/58695?download=1 "Brand-2.jpg")
- [ ![Brand.jpg](/forum/attachment/58696) ](/forum/attachment/58696 "Brand.jpg") [ ](/forum/attachment/58696?download=1 "Brand.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 9 months ago [\#358624](#358624) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358624 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1. When you use the "email" button of an order in the order details page of the backend.

2. Sorry I had read too fast your previous message and I didn't see you wanted to reverse the order.
In that case, you want to change the line: Code:

$t.='&lt;p class="brand_name"&gt;'.$brand-&gt;category_name.'&lt;/p&gt;';

to: Code:

$t='&lt;p class="brand_name"&gt;'.$brand-&gt;category_name.'&lt;/p&gt;'.$t;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 8 months ago [\#358703](#358703) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358703 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Thank you very much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")**
- [![MyWorld's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/862-myworld "View MyWorld's Profile") Topic Author
- [ Offline](/forum/user/862-myworld)

Less More

- Posts: 966
- Thank you received: 11
-
-

2 years 8 months ago [\#358775](#358775) by [MyWorld](/forum/user/862-myworld "View MyWorld's Profile")  Replied by *[MyWorld](/forum/user/862-myworld "View MyWorld's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358775 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Sorry to bother you again...

1) The Brand Name code does not work in the cpanel_orders.php. I tried both as per below. What would the proper code be or am I placing it in the wrong place? Code:

&lt;span class="hika_cpanel_product_name"&gt; $t.='&lt;p class="brand_name"&gt;'.$brand-&gt;category_name.'&lt;/p&gt;'; $t='&lt;p class="brand_name"&gt;'.$brand-&gt;category_name.'&lt;/p&gt;'.$t; &lt;?php echo $product-&gt;order_product_name; ?&gt; &lt;/span&gt;

2) Any idea why when I change "Only display categories with products" to Yes, it's still showing the empty categories?

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 8 months ago [\#358776](#358776) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Notification Email ONLY After Payment](/forum/25-install-update/907638-send-notification-email-only-after-payment#358776 "Hi there,  1) How do I set things up so that an email notification is sent to the administrator and the customer ONLY after an order has been paid for?  2) Also, how do I add the BRAND name in the emails?  Thanks!")*

Hi,

1. It's the correct place but you can't use the same code because the context is not the same.
There, in cpanel_orders the code should look like this: Code:

$categoryClass = hikashop_get('class.category'); $brand = $categoryClass-&gt;get($this-&gt;products[$product-&gt;product_id]-&gt;product_manufacturer_id); echo $brand-&gt;category_name;

2. I suppose that you're talking about the setting under the "Default parameter for categories". This only applies to new modules and menu items, or menu items and modules with the "Only with products" setting set to "inherit".
So if you don't see any change to the categories listing you're looking at, it means that the module or menu item displaying that categories listing has this "Only with products" setting turned off.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNzYzOC1zZW5kLW5vdGlmaWNhdGlvbi1lbWFpbC1vbmx5LWFmdGVyLXBheW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.198 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
