Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter jpksilversand

    (@jpksilversand)

    Okay—I just ran the test as per your request, removing the first button and placing it at the end of the list of buttons. I get the same result. The first button (formerly the second button) works fine, while the last button (formerly the first) still gives the large amount.

    It also seems like it can’t just be that the first button (now last) is summing up all the others, because as I’ve noted the total is much much higher than that.

    I’ve done another test that seems to have solved the issue, but still am confused about why it arose in the first place. I added the first button back in but left it in place at the end of the list. Both then added the large amount to the shopping cart. Then I copied the embed code from the second button and pasted it over the first button. This eliminated the problem with the first button. Then I manually changed the embed code so that it was identical to the formerly broken embed code. It now works with no problem. You can now see the two buttons (the first one working, the last one broken), at this page: https://originalsacredharp.com/ordering-the-sacred-harp/. They seem to me to have identical embed codes:

    The first one:
    [wp_cart_button name="The Sacred Harp (single copy) and Makers" price="20.00" shipping="3.75"]

    The last one:
    [wp_cart_button?name="The Sacred Harp (single copy) and Makers"?price="20.00"?shipping="3.75"]

    Thread Starter jpksilversand

    (@jpksilversand)

    Posting this did make me notice that there seemed to be a line break in the second, non-functioning code. Further tests do not show any line break. However, it does seem like for some reason the space between the quotation mark after “Makers” and the word “price” is a non breaking space. There’s another one right before “shipping.” Deleting these two spaces and adding new ones in their place solves the problem!

    I’m glad I finally have fixed the issue, but I’m still wondering:

    1. Why did this issue arise without me having made any changes to the page? Did an update to the plugin suddenly cause these nonbreaking spaces to become a problem? Or did the spaces somehow automatically become nonbreaking?
    2. Why does the nonbreaking nature of the spaces cause this issue? Can the plugin be fixed so that it doesn’t matter what kind of spaces we’re dealing with?
    3. Why would the presence of nonbreaking spaces cause this specific problem, with such a weirdly high dollar amount in the shopping cart?

    Thanks again for all your help. Please do let me know what you think about the above.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi I am happy to hear that you resolved your issue. I am not really sure why those weird issues occurred. However I will say that from time to time sometimes when updating or upgrading a plugin or theme it can cause other issues with other plugins.

    I will also point out that the errors you showed above should really be dealt with and fixed. They might cause more issues in the future even if they didn’t have anything to do with what happened to you with this issue or maybe they did.

    The plugin developers will investigate further what happened with this issue of yours.

    Plugin Author mra13

    (@mra13)

    I have never seen this before so I have no solid clue as to why it happened. If your theme has broken HTML code then that can break the form code of this plugin and cause this kind of weird behavior.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @jpksilversand if your problem is fixed and you don’t have any more questions. Can you mark this support thread as resolved.

    Thank you

    Thread Starter jpksilversand

    (@jpksilversand)

    Thanks mbrsolution for your help, and mra13 for your recent comment. Thanks also for the suggestion that I deal with the errors shown above. I’ll be sure to do so.

    I’m glad that the plugin developers will investigate what happened in this case and would appreciate any information you find. It seems that the plugin’s treatment of nonbreaking spaces is perhaps the cause of the problem.

    Happy to mark the thread as resolved in the meantime.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Shopping Cart Displays Incorrect and Extremely Large Total’ is closed to new replies.