Closed (fixed)
Project:
Commerce Wishlist
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 May 2013 at 18:59 UTC
Updated:
1 Sep 2015 at 18:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mark.thehub commentedHi guys, I had the same issue. I need to move the wishlist button under the add to cart button.
Comment #2
imiksuThe latest dev version has configuration form where you can define the button's weight value. When you set that to high number, the button will go to the end of the add to cart form.
Comment #3
imiksuComment #4
Poieo commentedThis change puts the weight in the wrong place, I think. It adds the weight to the 'add_to_wishlist' form which is inside the commerce_wishlist_add_form.
This essentially has no effect because it just weights the wishlist button inside it's own form, not inside the commerce_cart_add_to_cart_form.
Instead, the weight should be added to the commerce_wishlist_add_form function.
This weights the form relative to the other items in the add to cart form.
Comment #5
mglamanPoieo, thank you! I had written a small hack that did similar and meant to write patch, but yours is much cleaner and efficient.
Patch works for me.
Comment #6
mengi commentedI can confirm the patch in #4 works.
45 was the magic weight to get the wishlist button to move down.
Comment #7
Poieo commentedComment #8
bagqueen commentedTo me the weight only seems to affect the button, not if I choose "Ajax link". I guess I can style the button the way I want with css, so it's not a huge issue.
Comment #9
joelpittetThanks for the patch. Here's a fix to get #8 working too.
Comment #10
johnmcc commentedPatch #9 worked perfectly for me. Thanks!
Comment #11
rbosscher commentedI can confirm patch #9 aswel
Comment #12
hockey2112 commentedThanks for the patch in #9! I ended up using "99999" for my button weight.
Comment #13
ItangSanjana commented#9 tested and worked. Thanks!
Comment #14
rbosscher commentedTagged as Quick fix hopefully get noticed by the maintainers
Comment #16
Scott Robertson commentedThanks all for the patches. A bit of a delay, but committed to 2.x.