Add Product Price to Add to Cart form
How would one go about adding the price to the add to cart form, rather than having it as a separate field and having to use some serious css kung fu to get it to look like it is part of the form.
What I'd like to see is:
Option 1 Select
Option 2 Select
Price
Quantity
Add To Cart Button
As the Options and the qty/submit buttons are part of the same form, it is pretty hideous trying to place the Price field their unless it to is part of the form.
Cheers,
Sam
Comments
Form-alter or CSS
I suspect it's form-altering or CSS.
You do have the option of presenting the whole thing with a View, which gives you more control of what's shown there and might be an option.
Hmm yes a view would give the
Hmm yes a view would give the flexibility I need.
Interestingly this has come about because The price field for some reason doesnt show when the Product Reference field is used as a field on a Taxonomy Term. Its strange, the add to cart form displays properly and full functioning but the fields from the product display dont get passed through so the price doesnt show.
Add price to add to cart form
I posted my solution, using hook_form_alter here:
http://drupal.org/node/1300798#comment-5314632
cheers,
DT