Announcement

Collapse
No announcement yet.

How to adding shipping costs using FaaS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to adding shipping costs using FaaS

    I am trying to add shipping costs to my FaaS form. My form has an item for ShippingValue. If the customer selected "Ship" from a Menu item, ShippingValue is 400 (for $4.00). If the customer selects "Pickup", ShippingValue is zero. However, when "Ship" is selected, the shipping cost is not added to the invoice. I also have values specified for "ShippingMethod" and "ShippingTax". What else do I need to do?The form is at (See Edit Below) if you'd like to take a look.

    Thanks.

    Edit: I now have a kludgy workaround using JavaScript, which I don't like because people frequently don't have JavaScript enabled. So the form you should look at is now at www.rabbitrr.org/calendartest.html. It's in test mode, so you can attempt a transaction, if that would be helpful. (But the live page is in production mode, so be sure you are on calendar test.html.)
    Last edited by David Brown; 11-16-2011, 10:59 AM.

  • #2
    Good day David,

    The problem with your form is the missing ShippingMethod node.



    When Shipping is to be added to the form there is also a requirement (as of this writing) for Shipping Address.

    After reading your email we decided to add a feature to FaaS that will set the Shipping Address to Billing Address when Shipping Address is missing. The update is currently being tested and hopefully we can release it soon.

    The new update will save you from writing more code to pass the Shipping Address .. hopefully this new feature will be of help.

    We will post the update later today once all tests are complete and in case of issues it will be released early tomorrow morning. A note will be posted to the FaaS news page with the update info.
    Regards,
    Click & Pledge Support Department

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

    Comment


    • #3
      David,

      Please test your form but first add the ShippingMethod node:

      HTML Code:
      <input type="hidden" name="ShippingMethod " id="ShippingMethod " value="Ship" />
      the value="Ship" should be the value you wish to pass for the shipping method, for example: value = "USPS" or value="FedEx", etc.

      In our system we don't care what the text for the value is as long as something is being passed. You may want to pass the value of the pull down menu selected by the user to that node.

      We just released version: FaaS.x.20111116.001.024.000.000.020

      In this release if ShippingMethod is being posted but the Shipping Address information is not included we will use the billing address as the shipping address.

      Hope this helps. Please let us know if you need any further assistance.
      Regards,
      Click & Pledge Support Department

      Join us @ the educational webinars: https://clickandpledge.com/webinars/
      Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

      Comment


      • #4
        Thank you very much for your quick response and resolution of the problem. I very much appreciate it.
        The new process works. The situation I have is that the customer can select to either pickup the product, or have it shipped to them. In the former case, there is no shipping cost. I have ShippingMethod a hidden field. The customer selects either Pickup or Ship from a menu, which is the ShippingValue field. When the customer selects Pickup, ShippingValue is 0, when the customer selects Ship, ShippingValue is 5. Thus $5 is added to the order when the customer selects Ship rather than Pickup.
        The only issue with this method is that when the customer selects Pickup, the invoice still shows a line specifying the ShippingMethod, albeit at a cost of $0. I thought this might be confusing, so for the ShippingMethod I used "Ship $5 / Pickup $0", which then shows on the line item for shipping.

        I tried suppressing the appearance of the shipping line on the invoice. The customer selects either Pickup or Ship form a menu; in this case, the menu is the ShippingMethod field. When Pickup is selected, the field is blank. The ShippingValue is a hidden field of 5. I had hoped that when a blank ShippingMethod was passed, FaaS would ignore all aspects of shipping, and thus it would not appear at all on the receipt. However, FaaS did recognize it and added the ShippingValue.

        By the way, the Form Field Definitions state that ShippingMethod can be 20 characters. I initially used 20 characters, but nothing appeared on the receipt. When I reduced the field to 16 characters, it did appear.

        Thank you, again, for your quick resolution to the problem.

        Comment


        • #5
          Good day!

          Glad to see the solution helped.

          Have you considered not posting the ShippingMethod when Pickup is selected? That will solve the problem don't you think?

          One challenge we have is people may want to post a $0 shipping - for example free UPS Ground. $0 shipping is quite normal.
          Regards,
          Click & Pledge Support Department

          Join us @ the educational webinars: https://clickandpledge.com/webinars/
          Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

          Comment


          • #6
            I haven't figured out how to not post the ShippingMethod when the customer makes a selection from a menu. Any suggestions?

            Comment


            • #7
              David,

              What if?

              Let's say we add a condition where if the ShippingMethod is NULL then no shipping will be sent regardless of the ShippingValue's node.

              I think that will work.. what do you think?
              Regards,
              Click & Pledge Support Department

              Join us @ the educational webinars: https://clickandpledge.com/webinars/
              Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

              Comment


              • #8
                No shipping with NULL ShippingMethod

                David,

                we just released version: FaaS.x.20111117.001.024.001.000.020this release will not post shipping if ShippingMethod is blank.

                <input type="hidden" name="ShippingMethod " id="ShippingMethod " value="Ship" />

                So the following will not post any shipping info to the receipt once the value="" shipping information will not be included.

                Of course you need a little JavaScript to dynamically change the value from Ship to blank.

                Let us know if this solves your issue.
                Regards,
                Click & Pledge Support Department

                Join us @ the educational webinars: https://clickandpledge.com/webinars/
                Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

                Comment


                • #9
                  Well, the new version of FaaS is perfect! I didn't even need any JavaScript. On my form, there is a field for ShippingMethod, as a menu. If the customer selects "Pickup", the value of the field passed to FaaS is null. In this case, the ShippingValue is not added, nor does any mention of shipping appear on the receipt. If the customer selects "Ship", the value of the ShippingMethod is "USPS". In this case, the ShippingValue of 5 (established as a hidden field) is added to the receipt, and the receipt shows both the cost of shipping and identities the method as USPS.


                  As I said, it's prefect for my situation.


                  (I did use JavaScript to display the total amount that will be charged, but the transaction is processed correctly even when the customer has JavaScript disabled.)

                  You can see the final result at www.rabbitrr.org/calendar, if interested.

                  Thank you, again, for such a complete and quick resolution to my problem. It's much appreciated.

                  David

                  Comment


                  • #10
                    Lovely!

                    Glad to see it all worked.

                    Let us know if we can be of any further assistance.
                    Regards,
                    Click & Pledge Support Department

                    Join us @ the educational webinars: https://clickandpledge.com/webinars/
                    Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

                    Comment

                    Working...
                    X