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

#   Email issue

##

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

Less More

- Posts: 32
- Thank you received: 0
-
-

12 years 8 months ago [\#146654](#146654) by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")  *[Email issue](/forum/27-checkout/866344-email-issue#146654 "Hi,  I'm having a minor issue with some of the emails being sent out by hikashop during the checkout process. If a successful payment is made on worldpay then i receive the email in screenshotA (attached). Notice how in the first line of text after the &quot;Hello&quot; line, that the order status seems to be missing. Furthermore, If a payment is cancelled on worldpay then i receive the email in screenshotB (attached). Notice how in the first line of text after the &quot;Hello&quot; line, that the order status seems to be missing again. Where can i edit these files to put in the missing text (which i assume is coming from the database)? I have checked in the backend of hikashop (under &quot;system-&gt;emails&quot; but i definately dont see those emails being generated there.  Thanks")* was created by *[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")*

Hi,

I'm having a minor issue with some of the emails being sent out by hikashop during the checkout process. If a successful payment is made on worldpay then i receive the email in screenshotA (attached). Notice how in the first line of text after the "Hello" line, that the order status seems to be missing. Furthermore, If a payment is cancelled on worldpay then i receive the email in screenshotB (attached). Notice how in the first line of text after the "Hello" line, that the order status seems to be missing again. Where can i edit these files to put in the missing text (which i assume is coming from the database)? I have checked in the backend of hikashop (under "system-&gt;emails" but i definately dont see those emails being generated there.

Thanks

- [ ![h4174572.jpg](/forum/attachment/15748) ](/forum/attachment/15748 "h4174572.jpg") [ ](/forum/attachment/15748?download=1 "h4174572.jpg")
- [ ![h2b23aa9.jpg](/forum/attachment/15749) ](/forum/attachment/15749 "h2b23aa9.jpg") [ ](/forum/attachment/15749?download=1 "h2b23aa9.jpg")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 8 months ago -  12 years 8 months ago [\#146669](#146669) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Email issue](/forum/27-checkout/866344-email-issue#146669 "Hi,  I'm having a minor issue with some of the emails being sent out by hikashop during the checkout process. If a successful payment is made on worldpay then i receive the email in screenshotA (attached). Notice how in the first line of text after the &quot;Hello&quot; line, that the order status seems to be missing. Furthermore, If a payment is cancelled on worldpay then i receive the email in screenshotB (attached). Notice how in the first line of text after the &quot;Hello&quot; line, that the order status seems to be missing again. Where can i edit these files to put in the missing text (which i assume is coming from the database)? I have checked in the backend of hikashop (under &quot;system-&gt;emails&quot; but i definately dont see those emails being generated there.  Thanks")*

Hi,
I just checked the code of the HikaShop **WorldPay Business Gateway** payment plugin, and I think that you should edit the file "*plugins\\hikashoppayment\\bf\_rbsbusinessgateway\\**bf\_rbsbusinessgateway.php***" and change this line : Code:

switch ($vars['transStatus']) { case 'Y': $payment_status = 'Authenticated'; $order_status = $this-&gt;payment_params-&gt;verified_status; $history-&gt;notified = 1; break; default: $payment_status = 'Unknown'; $order_status = $this-&gt;payment_params-&gt;invalid_status; $order_text = JText::sprintf('CHECK_DOCUMENTATION',HIKASHOP_HELPURL.'payment-rbsworldpay-error#pending')."\r\n\r\n".$order_text; } $mail_status=$statuses[$order-&gt;order_status]; $email-&gt;subject = JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER','Worldpay Business Gateway',$payment_status,$dbOrder-&gt;order_number); $body = str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','Worldpay Business Gateway',$vars['payment_status'])).' '.JText::sprintf('ORDER_STATUS_CHANGED',$mail_status)."\r\n\r\n".$order_text; $email-&gt;body = $body;

By : Code:

switch ($vars['transStatus']) { case 'Y': $payment_status = 'Authenticated'; $order_status = $this-&gt;payment_params-&gt;verified_status; $history-&gt;notified = 1; break; default: $payment_status = 'Unknown'; $order_status = $this-&gt;payment_params-&gt;invalid_status; $order_text = JText::sprintf('CHECK_DOCUMENTATION',HIKASHOP_HELPURL.'payment-rbsworldpay-error#pending')."\r\n\r\n".$order_text; } $mail_status=$statuses[$order-&gt;order_status]; $email-&gt;subject = JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER','Worldpay Business Gateway',$payment_status,$dbOrder-&gt;order_number); $body = str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','Worldpay Business Gateway',$order_status)).' '.JText::sprintf('ORDER_STATUS_CHANGED',$mail_status)."\r\n\r\n".$order_text; $email-&gt;body = $body;

Last edit: 12 years 8 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NjM0NC1lbWFpbC1pc3N1ZT90bXBsPW1hcmtkb3du) 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.050 seconds

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