Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 56
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: FedEx Shipping using REST API

    Saturday shipping does work, it was just hard to see because it wasn't specifically called out. I have updated Github to show when a method is priced for Saturday delivery.

    Click image for larger version. 

Name:	sat.jpg 
Views:	55 
Size:	14.8 KB 
ID:	20342
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,699
    Plugin Contributions
    9

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by njcyx View Post
    Thanks. Take time.

    I'm not sure if there is a way to test this feature other than Thursday and Friday...
    look at this line:

    https://github.com/scottcwilson/zenc...xrest.php#L402

    this is where the ship date gets set for rates.

    if you want to test for saturday delivery, before this line:

    https://github.com/scottcwilson/zenc...xrest.php#L375

    you can add:

    PHP Code:
        $shipDate = new DateTime();
        
    // choose one of the following.  only use 1, else you will get 2 weeks out for a date.  which should still work...
        
    $shipDate->modify('next friday');
        
    $shipDate->modify('next thursday'); 
    then change line 402 to

    PHP Code:
    'shipDateStamp' => $shipDate->('Y-m-d'), 
    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by swguy View Post
    Saturday shipping does work, it was just hard to see because it wasn't specifically called out. I have updated Github to show when a method is priced for Saturday delivery.

    Click image for larger version. 

Name:	sat.jpg 
Views:	55 
Size:	14.8 KB 
ID:	20342
    Hi @swguy, thanks. I have a new finding here.

    Click image for larger version. 

Name:	1.PNG 
Views:	37 
Size:	18.5 KB 
ID:	20343

    Click image for larger version. 

Name:	2.PNG 
Views:	38 
Size:	14.3 KB 
ID:	20344

    If I set "Show Estimated Transit Time" to false, there is no Saturday delivery option. But if I set it to true, I can get the similar quote as your screenshot (Saturday options show up properly).

  4. #14
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by carlwhat View Post
    look at this line:

    https://github.com/scottcwilson/zenc...xrest.php#L402

    this is where the ship date gets set for rates.

    if you want to test for saturday delivery, before this line:

    https://github.com/scottcwilson/zenc...xrest.php#L375

    you can add:

    PHP Code:
        $shipDate = new DateTime();
        
    // choose one of the following.  only use 1, else you will get 2 weeks out for a date.  which should still work...
        
    $shipDate->modify('next friday');
        
    $shipDate->modify('next thursday'); 
    then change line 402 to

    PHP Code:
    'shipDateStamp' => $shipDate->('Y-m-d'), 
    best.
    That is so smart! Thanks!

  5. #15
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: FedEx Shipping using REST API

    Yep, that seems to be how it works.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #16
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by swguy View Post
    Saturday shipping does work, it was just hard to see because it wasn't specifically called out. I have updated Github to show when a method is priced for Saturday delivery.

    Click image for larger version. 

Name:	sat.jpg 
Views:	55 
Size:	14.8 KB 
ID:	20342
    My 2nd thought. This screenshot looks strange. Only two Saturday delivery options and ground show the estimate delivery date. All the other options (such as 2day, saver, regular overnight) don't show the estimate delivery date.

  7. #17
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,716
    Plugin Contributions
    123

    Default Re: FedEx Shipping using REST API

    Please look at the configuration description for this option:

    Show Estimated Transit Time
    Display the transit time for ground methods?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #18
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by swguy View Post
    Please look at the configuration description for this option:

    Show Estimated Transit Time
    Display the transit time for ground methods?
    I see. Thanks for pointing me out. I haven't paid attention to the 2nd line under this option...

    So if this option is set to true, transit time for ground and Saturday delivery options are all displayed.

    If this option is set to false, transit time for ground and Saturday delivery options are all hidden.

    It might be better to split this option into two options instead?

  9. #19
    Join Date
    Apr 2019
    Posts
    245
    Plugin Contributions
    0

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by njcyx View Post
    That is so smart! Thanks!
    Hi @carlwhat, I just tested your suggested code. Unfortunately, I received the following error:

    PHP Parse error: syntax error, unexpected '(', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'

    I did some study and test. If I changed the last line as your suggested into:

    'shipDateStamp' => $shipDate->format('Y-m-d'),

    Then it works.

  10. #20
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,699
    Plugin Contributions
    9

    Default Re: FedEx Shipping using REST API

    Quote Originally Posted by njcyx View Post
    Hi @carlwhat, I just tested your suggested code. Unfortunately, I received the following error:

    PHP Parse error: syntax error, unexpected '(', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'

    I did some study and test. If I changed the last line as your suggested into:

    'shipDateStamp' => $shipDate->format('Y-m-d'),

    Then it works.
    sorry about that. but yes that is the way to do it. not sure how i screwed that up. but glad you got that working.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 122
    Last Post: 26 Apr 2024, 05:15 PM
  2. PayPal Express Checkout with REST API
    By kanine in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 19 Jun 2022, 05:23 AM
  3. Rest api?
    By skywalker826 in forum General Questions
    Replies: 4
    Last Post: 31 Aug 2013, 04:30 PM
  4. Suomen verkkomaksut (SVM) REST API payment module
    By pasi in forum Addon Payment Modules
    Replies: 3
    Last Post: 9 Mar 2013, 09:57 AM
  5. Fedex Signature required option in fedex api
    By jeba in forum Addon Shipping Modules
    Replies: 0
    Last Post: 15 Oct 2009, 08:48 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR