Jump to content

Email.inc.php problem


queenniara

Recommended Posts

I have a problem with the Order Completed & Dispatched email. I tried changing it once in the email.inc.php file and after that it started sending out the emails with the order breakdown like this:

Order Inventory:Product: Test ProductOptions: Quantity: 1Product Code: 9033345Price: $0.10

It should look like this

Order Inventory:

Product: Test Product

Options:

Quantity: 1

Product Code: 9033345

Price: $0.10

No matter how i change the language file or even copy it from the original email.inc.php. It would not change. I want to change it back to how it should look. Any advice anyone? Please note: my store is heavily heavily modded.

I went to my database and this is what is looks like in the Cubecart_lang table for email.inc.php.

a:1:{s:5:"email";a:34:{s:14:"coupon_subject";s:22:"Your gift certificate!";s:11:"coupon_body";s:348:"Dear {RECIP_NAME},

{SENDER_NAME} has sent you a gift voucher worth {AMOUNT} which can be redeemed against any items in our store!

~~~~~~~~~~~~~~~~~~~~~~~~~~

Message: (from {SENDER_NAME} <{SENDER_EMAIL}>)

{MESSAGE}

~~~~~~~~~~~~~~~~~~~~~~~~~~

Voucher Code: {COUPON}

~~~~~~~~~~~~~~~~~~~~~~~~~~

Why not spend it now?

Goto: {STORE_URL}";s:14:"downloads_body";s:379:"Dear {RECIP_NAME},

Thank you for your order no: {ORDER_ID} placed on {ORDER_DATE}

Below are the links you need to access the digital products you have ordered.

IMPORTANT these links will expire on {EXPIRE_DATE} and you have {DOWNLOAD_ATTEMPTS} attempts to download them. If you have any problems please contact us stating your order number.

~~~~~~~~~~~~~~~~~~~~~~~~~~";s:16:"downloads_body_2";s:76:"{PRODUCT_NAME}

DOWNLOAD LINK:

{DOWNLOAD_URL}

~~~~~~~~~~~~~~~~~~~~~~~~~~";s:17:"downloads_subject";s:28:"Downloads Access: {ORDER_ID}";s:17:"order_breakdown_1";s:761:"Dear {RECIP_NAME},

Thank you for your order no: {ORDER_ID} placed on {ORDER_DATE}

Your order has been processed sucessfully. Once your items are shipped we will send you an email with your shipment tracking number.

~~~~~~~~~~~~~~~~~~~~~~~~~~

Name: {INVOICE_NAME}

Subtotal: {SUBTOTAL}

Shipping: {SHIPPING_COST}

Tax: {TAX_COST}

Grand Total: {GRAND_TOTAL}

~~~~~~~~~~~~~~~~~~~~~~~~~~

Invoice Address:

{INVOICE_NAME}

{INVOICE_ADD_1}

{INVOICE_ADD_2}

{INVOICE_CITY}

{INVOICE_REGION}

{INVOICE_POSTCODE}

{INVOICE_COUNTRY}

Delivery Address:

{DELIVERY_NAME}

{DELIVERY_ADD_1}

{DELIVERY_ADD_2}

{DELIVERY_CITY}

{DELIVERY_REGION}

{DELIVERY_POSTCODE}

{DELIVERY_COUNTRY}

Payment Method: {PAYMENT_METHOD}

Shipping Method: {DELIVERY_METHOD}";s:17:"order_breakdown_2";s:34:"Your comments: {CUSTOMER_COMMENTS}";s:17:"order_breakdown_3";s:48:"~~~~~~~~~~~~~~~~~~~~~~~~~~

Order Inventory:";s:17:"order_breakdown_4";s:23:"Product: {PRODUCT_NAME}";s:17:"order_breakdown_5";s:26:"Options: {PRODUCT_OPTIONS}";s:17:"order_breakdown_6";s:82:"Quantity: {PRODUCT_QUANTITY}

Product Code: {PRODUCT_CODE}

Price: {PRODUCT_PRICE}";s:23:"order_breakdown_subject";s:26:"Order Complete #{ORDER_ID}";s:27:"admin_pending_order_subject";s:25:"Pending Order #{ORDER_ID}";s:24:"admin_pending_order_body";s:275:"{CUSTOMER_NAME}, has recently placed order #{ORDER_ID}. This order is pending payment and as a result it should not be fulfilled until you have received the funds in full. Please follow the link below to view this order:

{ADMIN_ORDER_URL}

Logged IP Address: {SENDER_ID}";s:29:"order_acknowledgement_subject";s:33:"Order Acknowledgement #{ORDER_ID}";s:26:"order_acknowledgement_body";s:416:"Dear {CUSTOMER_NAME},

This email confirms that you have successfully placed a new order #{ORDER_ID}. Once payment has been received we will issue your goods at the first possible opportunity.

You can view the status of your order at any time, via our website by following the link below:

{ORDER_URL}

Please feel free to contact a member of staff if you have any questions or problems with your purchase.";s:19:"reset_password_body";s:323:"Dear {RECIP_NAME},

Your password has now been reset. Please find your new access details below:

~~~~~~~~~~~~~~~~~~~~~~~~~~

Email Address: {EMAIL}

Password: {PASSWORD}

~~~~~~~~~~~~~~~~~~~~~~~~~~

To login, please follow the link below:

{STORE_URL}

~~~~~~~~~~~~~~~~~~~~~~~~~~

Requester's IP Address: {SENDER_IP}";s:22:"reset_password_subject";s:12:"New Password";s:21:"profile_mofified_body";s:329:"Dear {CUSTOMER_NAME},

This email has been sent to confirm that your personal information has been updated successfully. If you feel that your account has been updated by someone other than yourself please contact a member of staff immediately.

This email was sent from {STORE_URL}

Visitor's IP Address: {SENDER_IP}";s:24:"profile_mofified_subject";s:21:"Personal Info Updated";s:15:"new_reg_subject";s:20:"Your Account Details";s:12:"new_reg_body";s:428:"Dear {CUSTOMER_NAME},

For your records the following account has been setup so that you can login to our site. Once logged in you can view the status of your orders, make repeat orders efficiently and update your profile.

Your access details are:

~~~~~~~~~~~~~~~~~~~~~~~~~~

Email: {EMAIL}

Password: {PASSWORD}

~~~~~~~~~~~~~~~~~~~~~~~~~~

This email was sent from {STORE_URL}

Registration IP Address: {SENDER_IP}";s:16:"tellafriend_body";s:232:"Dear {RECIP_NAME},

{MESSAGE}

~~~~~~~~~~~~~~~~~~~~~~~~~~

To view this product please follow the link below:

{PRODUCT_URL}

~~~~~~~~~~~~~~~~~~~~~~~~~~

This email was sent from {STORE_URL}

Sender's IP Address: {SENDER_IP}";s:19:"tellafriend_subject";s:36:"Product Recommended by {SENDER_NAME}";s:13:"fraud_subject";s:36:"Order {ORDER_ID} Failed Fraud Review";s:10:"fraud_body";s:840:"Dear {RECIP_NAME},

We regret to inform you that payment for your order {ORDER_ID} did not pass security checks performed by either our staff and processing center. If you have any further questions concerning this please refer to your orders notes by following the link below or contact a member of staff quoting your order number.

{ORDER_URL_PATH}

Typical reasons for this:

- The country selected may not have matched that of where the card was issued. This is a common accident.

- The security code which can be found on the back of the card may have been entered incorrectly.

- You may be purchasing the order in a country other that the one where your card was issued.

If you wish to create a new order please feel free to do so. No card or account has been charged for this order.

This email was sent from {STORE_URL}";s:24:"payment_complete_subject";s:31:"Payment Received for {ORDER_ID}";s:21:"payment_complete_body";s:404:"Dear {RECIP_NAME},

We would just like to inform you that payment for order number {ORDER_ID} has been processed and you should receive a confirmation of your order shortly.

You can check the status of your order and print a confirmation receipt by logging into your account and clicking on your order number.

Thanks for shopping with Miss & Plus Lingerie!

This email was sent from {STORE_URL}";s:25:"payment_cancelled_subject";s:26:"Order {ORDER_ID} Cancelled";s:22:"payment_cancelled_body";s:368:"Dear {RECIP_NAME},

Order number {ORDER_ID} has been cancelled. More information concerning this may be in the order notes which can be found by following this link:

{ORDER_URL_PATH}

N.B. Orders can be cancelled by the customer during purchase or staff member. If you wish to raise a new order please feel free to do so.

This email was sent from {STORE_URL}";s:21:"admin_reset_pass_body";s:315:"Dear {RECIP_NAME},

You, or somebody pretending to be you has requested your password to be reset.

Your new access details are:

~~~~~~~~~~~~~~~~~~~~~~~~~~

Username: {USERNAME}

Password: {PASSWORD}

~~~~~~~~~~~~~~~~~~~~~~~~~~

This email was sent from {STORE_URL}

Requester's IP Address: {SENDER_IP}";s:24:"admin_reset_pass_subject";s:24:"New Admin Access Details";s:18:"new_review_subject";s:26:"New Product Review/Comment";s:15:"new_review_body";s:320:"Authors Name: {AUTHOR_NAME}

Authors Email: {AUTHOR_EMAIL}

Authors IP Address: {SENDER_ID}

Product Reviewed: {PRODUCT_NAME}

Rating: {RATING}

Review Title: {REVIEW_TITLE}

Review Copy:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

{REVIEW_COPY}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Approve: {APPROVE_URL}

Decline: {DECLINE_URL}";}}

Link to comment
Share on other sites

Although I never modified the email.inc.php file, my order confirmation emails have the Product and Options on one line. Quantity, Code, and Price are listed on their own lines.

The only modifications I made were to some of the text in the email copy (order_breakdown_1). I made the changes through the Languages interface in the Admin screen. What's interesting is that the Product and Options texts are listed separately (i.e. - order_breakdown_4 and order_breakdown_5), and there shouldn't have been anything I could have done to cause them to be listed on the same line.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...