• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

fgpfgp
#1 Posted : Thursday, May 17, 2007 4:07:09 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

Hi,


I need to add several new shipping types (not methods). Since I strictly do drop shipping with many vendors, I need to have more than UPS & FedEx, etc. I need to add carriers like Yellow Transportation, Con-Way, and Watkins Motor Lines. I don't need live rate calculation, only the ability to send my customers the appropriate tracking links in status update emails. Where in the code do I make these additions?



Thanks,

frank
Andy Miller
#2 Posted : Thursday, May 17, 2007 4:14:49 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Those are called ShippingProviders in BVC5-language. There is an example in the App_Code directory called EstimatedPackageSample.vb.

After you create your ShippingProvider for Yellow (for example), add it to the list of shipping providers in TaskLoader.Custom.vb. Then it will appear in the list of providers when you create a shipping method. You will need to create a shipping method using your new provider if you want it to appear to customers.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
fgpfgp
#3 Posted : Thursday, May 17, 2007 4:40:07 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

I just discovered TaskLoader.Custom.vb and am looking at EstimatedPackageSample.vb. I can't find where to add the tracking URL. In BVC2004, I had to manually create that entry in the DB.
Andy Miller
#4 Posted : Thursday, May 17, 2007 6:45:09 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
The tracking URL comes from GetTrackingUrl. You will also need to return True from SupportsTracking. For example, if the tracking URL is http://www.yellow.com then this will work,


Code:

Public Overrides Function GetTrackingUrl(ByVal trackingCode As String) As String
Return "[url=http://www.yellow.com]http://www.yellow.com[/url]"
End Function



Public Overrides ReadOnly Property SupportsTracking() As Boolean
Get
Return True
End Get
End Property


When you make your custom providers, make sure to change the ProviderId for each one. It must be unique within your store (i.e. the one for Yellow and the one for Con-Way must be different).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
fgpfgp
#5 Posted : Thursday, May 17, 2007 10:07:10 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

Maybe one day this can be done through the admin. I can't be the only one who needs this.

Many thanks, Andy. You saved me a ton of time.

frank
memikhail
#6 Posted : Thursday, June 14, 2007 10:11:09 PM(UTC)
memikhail

Rank: Member

Joined: 2/18/2006(UTC)
Posts: 172

<SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">I am also having a hard time to understand how to add more shipping carriers... I really need it but I can't….

Andy, could you please explain everyone how to implement it to the code?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

<o:p>[3] [/3]</o:p>
Andy Miller
#7 Posted : Friday, June 15, 2007 2:29:00 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
The "How to Create a BVC5 Shipping Provider" article includes a sample ShippingProvider that only supports tracking.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
fgpfgp
#8 Posted : Sunday, August 12, 2007 6:27:14 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

Great article Andy, many thanks!

frank
memikhail
#9 Posted : Monday, August 27, 2007 10:00:41 PM(UTC)
memikhail

Rank: Member

Joined: 2/18/2006(UTC)
Posts: 172

[3]Andy,

How about if I want to have Shipping Company, say <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:City w:st="on"><st1:place w:st="on">Conway</st1:place></st1:City> and Tracking number only and I don’t want it to be linkable on the email confirmation. I have tried to change your code but I can’t make it not linkable…

Thanks[/3]
Andy Miller
#10 Posted : Tuesday, August 28, 2007 9:29:15 AM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
I think you will need to edit the email template to remove the link tag.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
memikhail
#11 Posted : Tuesday, August 28, 2007 1:48:32 PM(UTC)
memikhail

Rank: Member

Joined: 2/18/2006(UTC)
Posts: 172

I want to have a tracking link for every shipping carrier except one...

P.S. I don't thik there's a link in email... I am not sure where it is comming from.
Andy Miller
#12 Posted : Tuesday, August 28, 2007 5:51:06 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
The "Shipping Update Template" that comes with BVC5 includes this line in the HTML Repeating Section:

Code:

&lt;td align=left valign=top&gt;&lt;a href="[[Package.TrackingNumberLink]]"&gt;[[Package.TrackingNumber]]&lt;/a&gt;&lt;/td&gt;


If you want to get rid of the link for all carriers, get rid of the &lt;a&gt; tag. For example,



Code:

&lt;td align=left valign=top&gt;[[Package.TrackingNumber]]&lt;/td&gt;


If you want to get rid of the link for one carrier, I think (I have not tried either of these) you can either change the corresponding ShippingProvider so GetTrackingUrl returns an empty string, or customize the shipping workflows so that they use different templates for different carriers.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
memikhail
#13 Posted : Wednesday, August 29, 2007 8:31:15 AM(UTC)
memikhail

Rank: Member

Joined: 2/18/2006(UTC)
Posts: 172

<SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Andy,

This is what I want: I want to have a clickable link to track the order for all shipping carriers except the one: CUSTOM. I have created a new shipping method: Custom (based on your code) and would like NOT to have clickable tracking number. So, in email customer will see something like:

1345454454<SPAN style="mso-spacerun: yes"> Watkins.com

and that isn’t a link.. just a text.

Thanks.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>[3] [/3]</o:p>
Andy Miller
#14 Posted : Wednesday, August 29, 2007 12:58:42 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
You can not do this without customizing BVC5. You will need to create a second email template without the link (&lt;a&gt;) tag and customize the appropriate workflow tasks to select the appropriate email template based on the carrier (ShippingProvider or ShippingMethod).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
memikhail
#15 Posted : Wednesday, August 29, 2007 4:11:28 PM(UTC)
memikhail

Rank: Member

Joined: 2/18/2006(UTC)
Posts: 172

Andy,

If you think you can do this custom work for me, please email at [email protected]

Thank you.
Andy Miller
#16 Posted : Wednesday, August 29, 2007 7:00:59 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Thank you for the offer, but I will not be able to fit this into my schedule. There are several programming partners listed on the BV Software partners page that would be able to do this customization for you.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012