Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix display of total #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MegaphoneJon
Copy link
Contributor

It looks like the most recent commit broke the update of the total amount. Using $('#total_amount') doesn't return a DOM element, it returns a collection with a single DOM element. This PR fixes it.

I was originally going to use vanilla JS, but it looks like that's what it was before the fix. Since I don't understand what about the code caused #7, this seemed like a safer approach.

@jitendrapurohit
Copy link
Collaborator

@MegaphoneJon This doesn't seem to replicate for me. Can you pls add a screenshot where the total amount isn't displayed properly?

Here's my testing on page with the latest code + #13

With priceset

image

Without Priceset

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants