Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Help With YellowFreight Table Rate Shipping

    UPDATE: I just thought of a temporary solution. I'll just copy the input form into each of the products page and the form will already contain the item no#. However, the shipping cost won't be added to the cart, but at least customers can get the shipping quote immediately.

    What I really need is a way to convert that .cgi file into .php. Updating the shipping table can be done in a few minutes time, so I'm not concerned about that.

    I'm still brainstorming on how to get it working inside of the store.

  2. #2
    Join Date
    Jun 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Help With YellowFreight Table Rate Shipping

    I found a promising solution here at YRC web site. The problem I now have is that I'm not sure of the blue bold part of the code below. The code is suppose to get a rate quote from a hyperlink I'm to add to my website.

    Full page at YRC: http://www.yrc.com/e_commerce/hyperlinks.html#quote

    Blue = I don't understand
    Red = I don't need
    Green = Hidden Fields

    https://my.yrc.com/dynamic/national/servlet?
    CONTROLLER=com.rdwy.ec.rexcommon.proxy.http.controller.
    PublicProxyController&redir=/tfq504

    &O_CITY= nnnnnnnnnnnnnnnnnnnnnnnnn
    &O_STATE=nn&O_ZIP=nnnnnn&O_CTRY=nnn
    &D_CITY= nnnnnnnnnnnnnnnnnnnnnnnnn

    &D_STATE=nn&D_ZIP=nnnnnn
    &D_CTRY=nnn&WGT1=nnnnnn
    &CLASS1=nnnn&OPT_SS=off&OPT_NTFY=off
    &OPT_HAZM=off&OPT_ID=off&OPT_IP=off
    &OPT_HOMD=off&OPT_HOMP=off
    &OPT_LFTO=off&OPT_LFTD=off
    &OPT_COD=off&COD=0.00&PU_DATE=nn/nn/nn
    &CURRENCY=nnn&COMPUTE=QUOTE
    &DISPLAY=PAGE

    REQUIRED parameters:

    O_CITY = Origin City
    O_STATE = Origin State
    O_ZIP = Origin ZIP
    O_CTRY = Origin Country
    D_CITY = Destination City
    D_STATE = Destination State
    D_ZIP = Destination ZIP
    D_CTRY = Destination Country
    WGT1 = Weight of the Shipment -Note:Up to six weights/classes can be entered (e.g., use WGT2 CLASS2)
    CLASS1 = Freight Class (e.g., 50, 77.5)
    PU_DATE = Pickup Date
    CURRENCY = Rated Currency display in U.S. or Canadian dollars(USD or CAD)

    ==============END CODE INFO===============

    If I'm to make a hyperlink do I need to make a form and add the fields and such to form?

    Also, I'm confused as to the ACTION and POST method according to the above. I'm not sure how I'm suppose to insert the link.

    Any help greatly appreciated.


    Thanks

    Kevin

  3. #3
    Join Date
    Jun 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Help With YellowFreight Table Rate Shipping

    I have created a form on a test site at

    http://testing-servers.com/yrc-shipping-link-form.php

    and when I submit the form it doesn't display any rates. The code I've used from YRC to make the form is below:


    Code:
    <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><form id="form1" name="form1" method="post" action="https://my.yrc.com/dynamic/national/servlet?CONTROLLER=com.rdwy.ec.rexcommon.proxy.http.controller.PublicProxyController&amp;redir=/tfq504">
          <p>
            <input name="O_CITY" type="hidden" id="O_CITY" value="Columbus" />
            <input name="O_STATE" type="hidden" id="O_STATE" value="MS" />
            <input name="O_ZIP" type="hidden" id="O_ZIP" value="39703" />
            <input name="O_CTRY" type="hidden" id="O_CTRY" value="USA" />
            <input name="D_CTRY" type="hidden" id="D_CTRY" value="USA" />
            <input name="WGT1" type="hidden" id="WGT1" value="200" />
            <input name="CLASS1" type="hidden" id="CLASS1" value="50" />
            <input name="CURRENCY" type="hidden" id="CURRENCY" value="USD" />
            <input name="DISPLAY2" type="hidden" id="DISPLAY2" value="PAGE" />
          </p>
          <p><label></label>
            <label for="textfield">City</label>
            <input type="text" name="D_CITY" id="D_CITY" />
            &nbsp;</p>
          <p>
            <label for="label">State</label>
            <input name="D_STATE" type="text" id="label" size="10" maxlength="2" />
          </p>
          <p>
            <label for="label2">Zip Code</label>
            <input type="text" name="D_ZIP" id="label2" />
          </p>
          <p>
            <label for="textfield">PU Date</label>
            <input type="text" name="PU_DATE" id="PU_DATE" />
          </p>
          <p>
            <label for="Submit">Submit</label>
            <input type="submit" name="DISPLAY" value="Submit" id="DISPLAY" />
          </p>
        </form>
          <p>&nbsp;</p>
        <p>&nbsp;</p></td>
      </tr>
    </table>
    The YRC shipping code is listed here:
    http://www.yrc.com/e_commerce/hyperlinks.html#quote
    but I don't know why it's not giving me the rates. If I hit the"Back" button on the web site to go back to the page to get the quote and put in the same data, it displays the rate.

    What am I doing wrong?

    Thanks for your help.

  4. #4
    Join Date
    Jun 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Help With YellowFreight Table Rate Shipping

    Problem Solved!

    The form was missing a field/value which was

    COMPUTE=QUOTE

    The form works and displays the shipping quotes and other info I hid in the form.


    Kevin.

 

 

Similar Threads

  1. Shipping: rate table with an exception for faster shipping
    By dni in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 9 Nov 2007, 07:55 AM
  2. Shipping with table rate & % rate
    By BlakeW in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 May 2006, 07:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg