Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple purchase buttons on same page have same ID #2103

Closed
sumobi opened this Issue · 4 comments

4 participants

@sumobi
Owner

When using multiple purchase buttons on the same page they will have the same ID which creates invalid HTML.

Should we just remove the IDs altogether? It's very easy to target these without needing the ID anyway. Or maybe we can leave the ID on the first one and then strip the ID from the second one.

https://easydigitaldownloads.com/support/topic/multiple-purchase-buttons-validation-error

@pippinsplugins

This has been brought up before . . . I don't recall the issue number though.

@pippinsplugins

I'd prefer to not drop the IDs since we don't know if any one is currently relying on those for styling purposes. Maybe there's a way we could detect if an ID is duplicated and then append a -2 to the end of it.

@pippinsplugins pippinsplugins added the Bug label
@chriscct7 chriscct7 added this to the 2.0 milestone
@cklosowski
Owner

I have a fix for @pippinsplugins suggestion. I'll get something committed in a few.

@cklosowski cklosowski referenced this issue from a commit in cklosowski/Easy-Digital-Downloads
@cklosowski cklosowski #2103 - Add Unique IDs when multiple purchase links on a page fbaf266
@cklosowski cklosowski referenced this issue from a commit in cklosowski/Easy-Digital-Downloads
@cklosowski cklosowski #2103 - #hashtags #are #awesome 73f814e
@pippinsplugins

Kick ass, thanks Christ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.