Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Cart
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2011 at 14:45 UTC
Updated:
26 Jan 2022 at 23:20 UTC
Jump to comment: Most recent
Comments
Comment #1
hazaThis patch add a generic class to the add to cart form, provinding a class on the form.
The form now look like that :
So you can target the submit button with css with something like
.commerce-add-to-cart submitI have a patch on my sandbox
http://drupalcode.org/sandbox/haza/1198696.git/commitdiff/refs/heads/119...
Comment #2
JGO commentedworks perfectly now, thank you very much! Hope code gets added :)
Comment #3
rszrama commentedThis is a great approach. Committed. : )
Comment #4
JGO commentedUpdated to latest dev version, unfortunately it is not included :s
Comment #5
rszrama commentedIt's there... check your commerce_cart.module line 1252:
Comment #6
JGO commentedyou're right, I accidently "updated" with an older version
Comment #7
JGO commentedBtw has anything else changed ? I see the commerce-add-to-cart class, but my inline doesn't seem to work anymore.
Comment #8
JGO commentedYeps, now it's this that is making troubles:
etc
#edit: well I could select it of course, so it's ok now :)
Comment #10
frank hh-germany commentedHi, how can i get a class in Commerce 2.x ?
Currently i fix this with this code in the style.css but its not realy fine...
Comment #11
alirahimian commentedhi you can add a class to your view ( for example .commerceshop ) and then use this simple css code
that's easy way for display inline add to cart form and quantity box !