1 reply [Last post]
tsrautia's picture
Offline
Joined: 01/31/2014
Juice: 35
Was this information Helpful?

I have added several attributes to a product. I should divide them in two or three tabs so the layout would be clearer. I tried to theme node--product.tpl.php by hide($content); and then printed every attribute to wanted place by "

<?php
print render($content['add_to_cart']['#form']['attributes'][1]);
?>

" etc. It worked otherwise but for some reason the values filled in text field attributes(no options) are not saved. There are also some select, radio button etc. attributes with options and they work just fine. The selected values are visible on cart page, text field values not.

If the attributes are printed with another content "print render($content);" text field attributes are stored.

So what could I do to get attributes to be divided in different tabs?

tsrautia's picture
Offline
Joined: 01/31/2014
Juice: 35
Re: Print product attributes in tabs

So no one has ever moved attributes to another location in product page?