Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Please Help me. Email for new account and new order

Started by g.b17, June 02, 2018, 10:08:38 AM

Previous topic - Next topic

g.b17

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 ??

eCommerce Core

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

g.b17

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



eCommerce Core

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

g.b17

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.

Forum Rules Code of conduct
AbanteCart.com 2010 -