Post by John_b » Thu Apr 05, 2012 10:29 pm

Hi Guys,

I was wondering if anyone will be able to help me with a simple solution to my problem.

What I want to do is, as soon as a items sells and the customer has paid, there should be an automated email sent to the supplier with the customers delivery details, items purchased and the quantity. What makes it a little easier, is that I'm only dealing with one supplier and not multiple ones.

I'm not sure if it makes a difference, but the only payment option will be PayPal.

Any help would be greatly appreciated.

Thanks.

Newbie

Posts

Joined
Wed Jun 01, 2011 6:54 am

Post by OpenCart Addons » Thu Apr 05, 2012 10:56 pm

Hey John,

You could always add the supplier to the email notifications.

Add your supplier email in:
Admin CP > System > Settings > Edit > Mail > Additional Alert Emails

Regards,
Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by labeshops » Thu Apr 05, 2012 11:06 pm

Wouldn't that send the dropshipper all orders though? Even ones that are not paid, didn't complete, bogus ones, etc????

What I did, though it isn't automatic was edit admin/view/template/sale/order_info.tpl

Under

Code: Select all

<div style="margin-top: 10px; text-align: right;"><a id="button-history" class="button"><?php echo $button_add_history; ?></a></div></td>
added

Code: Select all

<tr><td><a href="mailto: ?subject=New drop ship order to <?php echo $shipping_lastname; ?> &Body=Hi:%0d%0a%0d%0aPlease ship:%0d%0a%0d%0a

<?php foreach ($products as $product) { ?>
		  <?php echo $product['quantity']; ?> of <?php echo $product['model']; ?> <?php echo $option['value']; ?>, <?php echo $product['name']; ?> %0d%0a%0d%0a
<?php } ?>
			  
%0d%0a%0d%0aTo:%0d%0a%0d%0a

<?php echo $shipping_firstname; ?> <?php echo $shipping_lastname; ?>%0d%0a
<?php if ($shipping_company) { ?>
<?php echo $shipping_company; ?>%0d%0a
<?php } ?>
<?php echo $shipping_address_1; ?>%0d%0a
<?php echo $shipping_address_2; ?>%0d%0a
<?php echo $shipping_city; ?>, <?php echo $shipping_zone; ?>  <?php echo $shipping_postcode; ?>%0d%0a
<?php echo $shipping_country; ?>%0d%0a%0d%0a

%0d%0a%0d%0aOur PO for this order is <?php echo $order_id; ?> . Please reference it when contacting us.

%0d%0a%0d%0aPlease acknowledge this order and let us know if anything is backordered/discontinued as soon as possible. Please send me the tracking number once it has shipped.%0d%0a%0d%0a

Thanks again!">Vendor Dropship Email</a></td>
What it does is gives me a "Vendor Dropship Email" link at the bottom of the order info form that when I click on it, opens an email in my default email program with the order and product details filled in. I just edit anything I need to for that particular order (like express shipping or remove products if not for that vendor), fill in the email address for my vendor and send. It also gives me a record of having sent that order to my vendor in my email programs sent folder which I find very convenient.

You might need to tweak the code as this is a portion of mine. I have standard emails I send to customers encoded in similar links so just pulled this part out for you. I removed my signature from the bottom as well - I have my name, company name etc after the "Thanks again!" part :)

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by John_b » Fri Apr 06, 2012 7:22 am

Thanks for the suggestion and think I might have to use it as a last resort. But could really use a automated one, since I'm at work during the day and don't always have time to check my emails. So I want to make sure the supplier gets the email as soon as possible, to reduce the delay in getting things out to the client.

Newbie

Posts

Joined
Wed Jun 01, 2011 6:54 am

Post by labeshops » Fri Apr 06, 2012 7:30 am

Ah okay. Cannot help you there. I work 100% for myself so am always in front of my computer working. lol

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by markisonfire » Fri Apr 06, 2012 9:45 am

What format do you use to purchase items from your drop shipper? Will sending them an email be fine?

New member

Posts

Joined
Sat Oct 29, 2011 8:33 am

Post by John_b » Fri Apr 06, 2012 2:40 pm

markisonfire wrote:What format do you use to purchase items from your drop shipper? Will sending them an email be fine?
Sending an email will be perfect.

This is what's making it so frustrating, all I want I just a plain email sent once the payment is received.

Newbie

Posts

Joined
Wed Jun 01, 2011 6:54 am

Post by John_b » Sat Apr 07, 2012 4:23 pm

OpenCart Addons wrote:Hey John,

You could always add the supplier to the email notifications.

Add your supplier email in:
Admin CP > System > Settings > Edit > Mail > Additional Alert Emails

Regards,
Joel.
Wound this send every order to the supplier, even if they haven't paid?

Newbie

Posts

Joined
Wed Jun 01, 2011 6:54 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 89 guests