Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a node product display which references 2 different products.

When I use the code below

<?php print render($content['field_product_ref']); ?>

It prints out both the "product select" form + the "add to cart" submit form. How do I print them out separately?

Alternatively, how do I change the HTML to print this 2 form out? I am looking for a way to theme my product display differently.

Thanks!

share|improve this question
add comment

migrated from stackoverflow.com Dec 11 '11 at 19:47

This question came from our site for professional and enthusiast programmers.

1 Answer

I realized that you can't, albeit after several hours of experimenting.

However, you can add a price field (and other fields) to your "add to cart" form by adding a "price" form item element. Follow the instructions here for more details: http://drupal.org/node/1300798#comment-5328550

Tell me if this helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.