Announcement

Collapse
No announcement yet.

"Empty Basket" - I think it is a bug that needs fixing.....

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Empty Basket" - I think it is a bug that needs fixing.....

    I've spent quite a bit of time working with the forms as service integration on our site. Using your example forms 003 and 004, I've put together something that will work, but is very limiting.

    I've enclosed our organization and account number in a text file for reference.

    If you'll have a look at our advanced checkout page you'll see we offer the donor a choice of three premium items as well as simply making a cash donation amount. I tried emulating this using example form 003 and found if there was no amount in the first quantity box, the system would report "basket empty", which I found in the forum to be a others in the forum are experiencing. I think this should be treated as a bug in the system and perhaps addressed by your programmers.

    In testing your example form 003 and removing the quantity from box one (the first box - Adult Tickets) will cause it to error out (empty basket). That said, there would be no way to sell tickets using form 003 to members only (box four). Once the user deletes the quantity from box one (adult ticket) the whole process breaks.

    I'm looking for a way to integrate the shopping cart functionality of the advanced checkout page within my site using the forms as service function so the user can select quantities of multiple items (i.e. two different premium items and a single cash donation) in one transaction.
    Attached Files

  • #2
    Good day.

    Basket empty simply means you are not sending the proper basket name to the FaaS. This is not a bug - if you see the posts you will see that others have found their bug and have fixed it. I will review your code and find out where you are having a bug and will let you know.

    Please send us the link to your page so we can inspect your code.

    If it is a bug in our system we will gladly fix it but before we jump into any conclusions let's see where the issue lies.
    Regards,
    Click & Pledge Support Department

    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

    Comment


    • #3
      Verifying your post

      By the way, are you aware of the verification site that helps you with finding out what you are posting?

      The FaaS siteto verify your post:If you simply post to the new site you will see all the values that are being posted. This will help you finding out if any term is missing.
      Regards,
      Click & Pledge Support Department

      On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

      Join us @ the educational webinars: https://clickandpledge.com/webinars/
      Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
      Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

      Comment


      • #4
        Hi,

        I'll give you two links. The first is to a test page that I cannot get to work, and it is the preferred page for accepting donations:

        https://bonesmart.org/support-resear...nate-quantity/

        The password for all the test pages is: click&pledge

        The second page works, but is not the preferred method because it restricts the donation method to only one item. (bracelet, report book, or cash donation)

        https://bonesmart.org/support-resear...e/test-donate/

        Thanks for your help on this.

        Comment


        • #5
          Would you please change the form post to https://verify.faas.cloud.clickandpledge.com

          It will help us finding out what you are not posting and it makes it easier to debug.
          Regards,
          Click & Pledge Support Department

          On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

          Join us @ the educational webinars: https://clickandpledge.com/webinars/
          Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
          Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

          Comment


          • #6
            Done. The call has been changed in the "test donate quantity" form.

            Comment


            • #7
              I am confused

              Your first form is not working but you say you changed the second form that works to point to verify?

              why do we need to test a page that is working?

              The form that you stated is not working is: https://bonesmart.org/support-resear...nate-quantity/
              Regards,
              Click & Pledge Support Department

              On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

              Join us @ the educational webinars: https://clickandpledge.com/webinars/
              Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
              Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

              Comment


              • #8
                https://bonesmart.org/support-resear...nate-quantity/

                This form is the one that does not work, and it is the one I'd prefer to use. The call has been changed in this form to:

                https://Verify.FaaS.Cloud.ClickandPledge.com

                Comment


                • #9
                  I see the issue. Please check this example:

                  https://www.clickandpledge.com/devel...s/example/001/

                  In Dreamweaver when you copy form fields it automatically adds a number at the end of each field name. Your form has the following:

                  HTML Code:
                  <tr> <td align="right"> <input name="Quantity3" type="text" id="Quantity2" size="5" /> 
                  <input name="ItemID2" type="hidden" id="ItemID2" value="1" /> 
                  <input name="ItemName2" type="hidden" id="ItemName2" value="1 BoneSmart Bracelet" /> 
                  <input name="UnitPrice" type="hidden" id="UnitPrice" value="5" /> 
                  <input name="UnitDeductible2" type="hidden" id="UnitDeductible2" value="4" /></td> 
                  <td>1 BoneSmart Bracelet ($5 – $4 Tax Deductible) </td> 
                  </tr> <tr> <td align="right">&nbsp;</td> <td>&nbsp;</td> </tr> 
                  <tr> <td align="right"> 
                  <input name="Quantity4" type="text" id="Quantity3" size="5" /> 
                  <input name="ItemID3" type="hidden" id="ItemID3" value="2" /> 
                  <input name="ItemName3" type="hidden" id="ItemName3" value="2 BoneSmart Bracelets" />
                   <input name="UnitPrice1" type="hidden" id="UnitPrice1" value="6" /> 
                  <input name="UnitDeductible3" type="hidden" id="UnitDeductible3" value="4" /></td> 
                  <td>2 BoneSmart Bracelets ($6 – $4 Tax Deductible)</td> </tr> <tr> 
                  <td align="right">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td align="right"> 
                  <input name="Quantity2" type="text" id="Quantity4" size="5" /> 
                  <input name="ItemID4" type="hidden" id="ItemID4" value="3" /> 
                  <input name="ItemName4" type="hidden" id="ItemName4" value="Enjoy Life Again Report" /> 
                  <input name="UnitPrice2" type="hidden" id="UnitPrice2" value="16.90" /> 
                  <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="9.98" /></td> 
                  <td>Enjoy Life Again! Printed and Bound Report ($16.90 – $9.98 Tax Deductible)</td> </tr> 
                  <tr> <td align="right">&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td align="right"> 
                  <input name="Other" type="text" id="Other" size="10" /> 
                  <input name="ItemID" type="hidden" id="ItemID" value="4" /> 
                  <input name="ItemName" type="hidden" id="ItemName" value="Cash Donation" /> 
                  <input name="Quantity" type="hidden" id="Quantity" value="1" /> 
                  <input name="UnitDeductiblePercentage" type="hidden" id="UnitDeductiblePercentage" value="100" /></td> 
                  <td>$ Cash Donation</td> </tr>
                  as you see your form fields are Quantity4, ItemName3, etc. are all incremented and therefore are meaningless in our system. If you see our example it shows how you can have multiple items and they all have the same name.

                  If, with your code, one selects the top item with a quantity of "1" you are posting the following:

                  HTML Code:
                  <input name="Quantity3" type="text" id="Quantity2" size="5" /> 
                  <input name="ItemID2" type="hidden" id="ItemID2" value="1" /> 
                  <input name="ItemName2" type="hidden" id="ItemName2" value="1 BoneSmart Bracelet" /> 
                  <input name="UnitPrice" type="hidden" id="UnitPrice" value="5" /> 
                  <input name="UnitDeductible2" type="hidden" id="UnitDeductible2" value="4" /></td>
                  None of the above fields, except UnitPrice means anything in our system and naturally the system will say there is nothing in the basket.

                  Hope that makes sense.
                  Regards,
                  Click & Pledge Support Department

                  On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                  Join us @ the educational webinars: https://clickandpledge.com/webinars/
                  Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                  Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                  Comment


                  • #10
                    I think we're making progress. Would you run the form again to see if I'm on the right track?

                    BTW - I used the code from example form #003 originally. That form uses the quantity fields. However, the code as downloaded may have been why I got the code wrong. Here is a sample of the code from form #003 as opened in BBEdit (not Dreamweaver) and pasted here:

                    <table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                    <td width="180" align="right">&nbsp;</td>
                    <td><strong>Quantity</strong></td>
                    </tr>
                    <tr>
                    <td width="180" align="right"> Adult Ticket ($50) </td>
                    <td><input name="Quantity" type="text" id="Quantity" value="2" size="5" />
                    <input name="ItemID" type="hidden" id="ItemID" value="1" />
                    <input name="ItemName" type="hidden" id="ItemName" value="Adult Ticket" />
                    <input name="UnitPrice" type="hidden" id="UnitPrice" value="50" />
                    <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="10" /></td>
                    </tr>
                    <tr>
                    <td width="180" align="right"> Senior Citizen Ticket ($40) </td>
                    <td><input name="Quantity2" type="text" id="Quantity" size="5" />
                    <input name="ItemID" type="hidden" id="ItemID" value="2" />
                    <input name="ItemName" type="hidden" id="ItemName" value="Senior Citizen" />
                    <input name="UnitPrice1" type="hidden" id="UnitPrice1" value="40" />
                    <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="10" /></td>
                    </tr>
                    <tr>
                    <td width="180" align="right"> Children under 12 ($15) </td>
                    <td><input name="Quantity2" type="text" id="Quantity" size="5" />
                    <input name="ItemID" type="hidden" id="ItemID" value="3" />
                    <input name="ItemName" type="hidden" id="ItemName" value="Children under 12" />
                    <input name="UnitPrice2" type="hidden" id="UnitPrice2" value="10" />
                    <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="10" /></td>
                    </tr>
                    <tr>
                    <td width="180" align="right"> Members ($10) </td>
                    <td><input name="Quantity2" type="text" id="Quantity" value="3" size="5" />
                    <input name="ItemID" type="hidden" id="ItemID" value="4" />
                    <input name="ItemName" type="hidden" id="ItemName" value="Donation" />
                    <input name="UnitPrice3" type="hidden" id="UnitPrice3" value="50" />
                    <input name="UnitDeductible" type="hidden" id="UnitDeductible" value="0" /></td>
                    </tr>
                    </table>

                    I assume the only value that increments is the item ID numbers? The other values should not increment, i.e. UnitPrice3 about five lines up from this sentence?

                    Comment


                    • #11
                      Strange.. the example html was not right on our site. The site is correct and you can see the form if you view the source. I just fixed the example and it should be correct now. The file date should be 6/17/2011 for your reference.

                      All fields should have the same name so you should not have any increments in the name. ItemID is whatever you wish to use- for example it may be SKU - it is just a reference ID.

                      I will review your code shortly and post another comment.
                      Regards,
                      Click & Pledge Support Department

                      On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                      Join us @ the educational webinars: https://clickandpledge.com/webinars/
                      Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                      Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                      Comment


                      • #12
                        We are close!

                        Please change the form post to https://faas.cloud.clickandpledge.com

                        the verification appears to work. I simply entered a number in each of the fields and the verification shows all fields are being passed correctly. I like to see it post and check the error message (if any).
                        Regards,
                        Click & Pledge Support Department

                        On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                        Join us @ the educational webinars: https://clickandpledge.com/webinars/
                        Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                        Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                        Comment


                        • #13
                          The call is now going to https://faas.cloud.clickandpledge.com

                          The form processes, but not completely.....yet!

                          Try ordering one "enjoy life again" report and making a cash donation for $12.00

                          The cash donation does not come through at all in the receipt, and the deductible amount for the "enjoy life" report is 0.00 when it should be 9.98. Does it mean the faas system wants to see whole numbers (no decimals) as deductible?

                          Comment


                          • #14
                            The problem you are seeing is related to mixing the UnitDeductible with UnitDeductiblePercentage. Let me explain.

                            The FaaS platform looks at the tax deductible portion as a uniform request and gives UnitDeductiblePercentage top priority. If it sees UnitDeductiblePercentage it assumes that all entries are based on percentage. Your form uses UnitDeductiblePercentage for the last item and as result the service takes all other entries as % and not a flat fee.

                            Solution:
                            1. Change all tax deductible behavior to percentage or make them all flat fee.
                            2. Wait till tomorrow (June 21, 2011) for the new update that will address this peculiarity.
                            We are working on an update to FaaS that will resolve this and will also remove UnitDeductiblePercentage from the manual. The new solution will offer the following:
                            1. UnitDeductible = 10 results in $10 being tax deductible per unit sold.
                            2. UnitDeductible = 10% results in 10% of the unit price being tax deductible.
                            We believe this gives the most flexibility to the platform and minimizes the variable list. If you have any thoughts or comments please let us know.
                            Regards,
                            Click & Pledge Support Department

                            On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                            Join us @ the educational webinars: https://clickandpledge.com/webinars/
                            Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                            Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                            Comment


                            • #15
                              Great. I'll be looking forward to testing that tomorrow.

                              While you're at it, will a deductible amount of 9.98 parse through the system OK? Or, will it only take amounts without a decimal point?

                              Comment

                              Working...
                              X