BV Commerce Forum
»
BV Commerce Support
»
General Support
»
How Do I Add a New Shipping Type (not shipping method)?
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
|
|
|
|
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. |
|
|
|
|
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.
|
|
|
|
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). |
|
|
|
|
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
|
|
|
|
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>
|
|
|
|
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. |
|
|
|
|
Rank: Member
Joined: 5/3/2004(UTC) Posts: 101
|
Great article Andy, many thanks!
frank
|
|
|
|
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]
|
|
|
|
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. |
|
|
|
|
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.
|
|
|
|
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: <td align=left valign=top><a href="[[Package.TrackingNumberLink]]">[[Package.TrackingNumber]]</a></td>
If you want to get rid of the link for all carriers, get rid of the <a> tag. For example, Code: <td align=left valign=top>[[Package.TrackingNumber]]</td>
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. |
|
|
|
|
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>
|
|
|
|
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 (<a>) tag and customize the appropriate workflow tasks to select the appropriate email template based on the carrier (ShippingProvider or ShippingMethod). |
|
|
|
|
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.
|
|
|
|
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. |
|
|
|
|
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.