Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Having two or more products - with "Add to wish list" button - on same page (i.e. a views block showing related products) would break strict w3 validation, since the input buttons are using same id.
Wouldn't it be better in some way to change
<input id="edit-wishlist" class="form-submit ">
to
<input class="form-submit edit-wishlist">
?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedHi miccelito,
You are right.As I am very much friendly with this module.This happened due to the code as this will add Add to Wishlist button in the Add to cart form using the form alter.As this is not a big issue so I changed its Priority to minor.
Comment #2
miccelito CreditAttribution: miccelito commentedGreat you're very familar with the module. Then maybe you can tell where in the codes I can remove the
id="edit-wishlist"
part. (Adding a new class is easy so that's not a problem tho..)Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedHi miccelito,
Replace the code at line 265 in uc_wishlist.module file.
with
This will do it.
Comment #4
miccelito CreditAttribution: miccelito commentedDid your mean
Right?
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedYa :)
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedfixed