2
Answers
Vote up!
0
Vote down!

Tite formating in Product views page

I've created new Product and Content types, similarly the example products are created in DCK (Drupal Commerce Kickstart). Here are a couple things, I can not figure out yet:

1. I assume, that Content type is used to display product page, where user can select variations, and make purchase. As well Product type is for particular product definition, including use of this content type with Entity Inline Forms, to add product variations to Product content type.

Regarding Displays, which of Content/Product type actually impacts real display of product page?

If going with my own assumption (like above), I tend to think, that Content type displays would actually impact it. But some time yes, and some time no - have to change display settings in particular product type, not content type. Besides, I do not have an option in product Content type to enable different displays, like in product type. Why?

2. When I build new Product/Content type, and add product to shop, it is displayed in default All products (/products) view, but still it's different in terms of Title field style.

I could probably overcome this with custom css styling, but still want to figure out, why HTML layout for custom node type is different, thus not getting default CSS applied?

I've set up replacement for title field and applied the same Fences formatting in Manage fields section (both product and content types, as in example forms), but still HTML layout of title field is different. Example products get h2 tag, but my custom product - just div tag. Looking via Theme Developer, different template files are applied, where in example product, ./commerce_kickstart_theme/templates/field--fences-h2--node.tpl.php file is applied, but in my custom node - ./contrib/fences/templates/field--fences-div.tpl.php - e.g. regular module template is applied.

Where is the place, I should bound my new product type to use commerce_kickstart_theme field template?

Asked by: j2b
on September 26, 2012

Comments

Content type display selection: Partly answering on my own. This part of the problem is solved, as there were conflict with Devel Themer module, which disabled checkboxes. By disabling Devel Themer, checkboxes went to their places, and in this part everything is ok.

- j2b on September 26, 2012

2 Answers

Vote up!
1
Vote down!

I know this post is old, but for the second part of the question, which had me stumped for a while:

The different format for the title comes from the wrapper markup provided by fences. The Product variation type from Commerce Kickstart, for example, has H2 specified as a wrapper.

The fences wrapper is specified at (example of Product in CKS):

admin/commerce/config/product-variation-types/product/fields/title_field

Answer by: MichaelP
Posted: Jul 2, 2013
Vote up!
0
Vote down!

Sounds like it was answered by j2b.

Product displays can be impacted by modifying them at the content type level in display formatting. If you need additional capabilities, you might consider looking at http://drupal.org/project/ds

Josh

Josh Miller
Answer by: Josh Miller
Posted: Nov 16, 2012