Author Topic: Please Help me. Email for new account and new order  (Read 4031 times)

Offline g.b17

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Please Help me. Email for new account and new order
« on: June 02, 2018, 10:08:38 AM »
Hi, I'm Italian so excuse me for my English.

I'have my store with last version of AbanteCart and I have a problem.
When a new account is registered, an email is sent to the customer but white. No Object and no text, same for new orders. Why?

My e-mail address is info@compense and when a customer places an order I receive the email correctly. While those sent to the customer are empty. How can I solve?

I have MonnikaTemplate and in extension/monnika_template/storefront/view/template/mail there is account_create.tpl and is:

'; } if ($text_login) { echo $text_login.'
'; } if ($text_approval) { echo $text_approval.'
'; } if ($text_login_later) { echo '
'.$text_login_later.'
'; } if ($text_services) { echo '
'.$text_services.'
'; } ?>
 
'; echo $store_name.'
'; ?>


Is it correctly ??
« Last Edit: June 02, 2018, 10:18:17 AM by g.b17 »

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Please Help me. Email for new account and new order
« Reply #1 on: June 02, 2018, 02:10:59 PM »
Welcome to AbanteCart g.b17.

What you explain is very strange behavior. Admin get the same email (copy) as the customer.

This should not be related to MonnikaTemplate as the code sending email is not in the template.

Here is the file and line that takes care of attaching email HTML body to the sender.
You can check here.

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/checkout/order.php#L637

“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline g.b17

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Please Help me. Email for new account and new order
« Reply #2 on: June 02, 2018, 02:29:50 PM »
Can u tell me what is the file to modify ??

/storefront/view/template/mail

or in /extension/monnikatemplate/storefront/view/template/mail ???

In both there is order_confirm_text.tpl and order_confirm.tpl



Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Please Help me. Email for new account and new order
« Reply #3 on: June 02, 2018, 02:36:20 PM »
Template for HTML email body 'mail/order_confirm.tpl'
Template for pain text email body 'mail/order_confirm_text.tpl'
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline g.b17

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Please Help me. Email for new account and new order
« Reply #4 on: June 02, 2018, 03:52:11 PM »
this is my order_confirm.tpl :

<?php echo $text_greeting."\n\n";?>
<?php echo $text_order_id.' '. $order_id; ?>

<?php echo $text_date_added.' '. $date_added."\n"; ?>
<?php echo $text_payment_method.' '.$payment_method."\n"; ?>
<?php echo $text_shipping_method .' '. $shipping_method."\n"; ?>

<?php echo $text_email.' '. $customer_email."\n"; ?>
<?php echo $text_telephone.' '. $customer_telephone."\n"; ?>
<?php if ($customer_mobile_phone) {
     echo $text_mobile_phone.' '. $customer_mobile_phone."\n"; ?>
<?php } ?>
<?php if ($customer_fax) {
     echo $text_fax.' '. $customer_fax."\n"; ?>
<?php }
echo $text_ip.' '. $customer_ip."\n"; ?>



<?php echo $text_shipping_address."\n\n"; ?>
      <?php echo $shipping_address."\n\n\n"; ?>
<?php echo $text_payment_address."\n\n"; ?>
      <?php echo $payment_address."\n\n\n"; ?>


<?php echo $column_product ."                            ".$column_model."   ".$column_price."   ".$column_total."\n"; ?>

<?php foreach($products as $product){
   echo $product['quantity'].' x '.$product['name'] . '   (' . $product['model'] . ')   '. $product['price'] . '   '.$product['total']."\n";
   foreach($product['option'] as $option){ ?>
- <?php echo $option['name'].' '. ($option['value'] ? ': ' . $option['value'] : '')."\n";  } ?>
<?php } ?>

<?php echo "\n\n\n".$text_total."\n\n"; ?>
<?php foreach($totals as $total){   echo "\t\t".$total['title']."  ".$total['text']."\n"; ?>
<?php } ?>


<?php if($comment){ ?>
<?php echo $text_comment.": \n"; ?>
<?php echo $comment; ?>
<?php } ?>

<?php if($invoice){ ?>
<?php echo $text_invoice.": \n"; ?>

<?php echo $invoice; ?>
   <?php } ?>

<?php echo $text_footer; ?>


What's wrong ?? I repeat, I receive the email correctly. But customer receive without template and with some mixed code

How can I edit the text??? I want to insert my signature and other text.
« Last Edit: June 02, 2018, 03:56:54 PM by g.b17 »

 

Powered by SMFPacks Social Login Mod