Linelabox Support

Hello there! Welcome to Linelabox Support Forum. Post your question and our support specialists will help you. Look for the solution in the F.A.Q. first. Our support team is available for any questions or issues in the following working hours: Monday - Friday: 10:00 - 18:00.

Adjust mail to shopper Issue

Martin
Martin
Offline
Hi,

When the shopper orders a product and confirms his order, a mail is send with order information and product information. However, when I change the order status again a mail is send with all the information about the order and the product. For some shoppers this is confusing. They want to receive a mail with only information about the order status.

I tried to make a change in mail_html_shopper.php (made a copy in template/ultimelab2/html/com_virtuemart/invoice). I deleted the rows after <?php echo Text::sprintf('COM_VIRTUEMART_MAIL_OothinRDER_STATUS',JText::_($this->orderDetails['details']['BT']->order_status_name)) ; ?>, but nothing changed in the mail to the shopper. Probably I have to make the change somewhere else.

Do you have a suggestion how to accomplish this?

Thanks.

Regards, Martin
Responses (5)
  • Accepted Answer

    Saturday, October 04 2014, 10:29 AM - #permalink
    0
    Hi, Please check VirtueMart configuration > "Checkout" tab > Default Order Status to send email to shopper.
    The reply is currently minimized Show
  • Accepted Answer

    Martin
    Martin
    Offline
    Saturday, October 04 2014, 02:39 PM - #permalink
    0
    Hi,

    I don't understand exactly what you mean.

    I have attached a screen print of the checkout tab (unfortunally it is dutch :p ).

    Regards, Martin
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Martin
    Martin
    Offline
    Monday, October 06 2014, 09:22 AM - #permalink
    0
    Hi,

    I think I am not clear about the issue :)

    What I want to accomplish is to send a mail for several default order statusses to the customer. But for one order status (when he makes an order) the default mail must be send to the customer. For the other default order statusses a custom mail must be send to the customer (this mail consists only of the mail header and the changes order status. Nothing more).

    I guess I have to make an override of mail_html.php in public_html/templates/webstore/html/com_virtuemart/invoice. I tried to make a condition for the order status with something like this:

    if ($this->orderDetails['details']['BT']->order_status_name == 'Confirmed by customer'){
    // LoadTemplate of the template parts I want to show
    }

    But this doesn't work. I guess $this->orderDetails['details']['BT']->order_status_name isn't correct for the condition I wanted.

    Can you help me out here? I think I am close...

    Regards, Martin
    The reply is currently minimized Show
  • Accepted Answer

    Martin
    Martin
    Offline
    Tuesday, October 07 2014, 09:30 PM - #permalink
    0
    Hi,

    Do you have a suggestion how to accomplish the customized shopper mail as descibed above?

    Thanks in advance.

    Regards, Martin
    The reply is currently minimized Show
  • Accepted Answer

    Martin
    Martin
    Offline
    Wednesday, October 08 2014, 08:38 AM - #permalink
    0
    Hi,

    I have discovered the solution myself. I needed to test the static variable, not the value of it.

    if ( ($this->recipient == 'vendor') ||
    ($this->recipient == 'shopper' && $this->orderDetails['details']['BT']->order_status_name == 'COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER'))

    Regards, Martin
    The reply is currently minimized Show
Your Reply

VirtueMart Admin Theme

VMADMINLAB

Responsive VirtueMart 3 Administrator Template

Download
JOIN NOW!

New Joomla! 3 Template

REVOLAB

Responsive Joomla 3 Template / VirtueMart 3 Theme

Template Demo
JOIN NOW!

Recent Discussions

In all Download Folders from my Download Arrea are only the html and the images ...
1 week ago 5
Dobrý den, mám u Vás zakoupený proff. package, vytvořil jsem si šablonu, ale pok...
1 week ago 1
Hi I get the following warning on the product page when using the Simple File Up...
1 week ago 1
Password proctected content
2 weeks ago 2

Who's Online

We have 187 guests and no members online

Linelabox.com is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Copyright © 2014 Linelabox.com - Joomla! 3 / VirtueMart 3 Templates. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License. All other marks are the property of their respective owners.
LINELAB WEBDESIGN