profiles/commerce_kickstart/themes/commerce_kickstart_theme/templates/node-blog_ profiles/commerce_kickstart/modules/commerce_kickstart/commerce_kickstart_product_ui/theme/ # ls -go profiles/commerce_kickstart/themes/omega_kickstart/templates In my installation there is no folder profiles/themes, however assuming the intended path is profiles/commerce_kickstart/themes/omega_kickstart/templates, I cannot find the files for any of the product types: I would like to try to clone the behavior for one of the installed product types, however I cannot find the product specific tpl files. Thanks, I understand the concept you explain. I hope this can help, the Drupal Commerce way of dealing with products, variations and displays is not really straight forward, I struggled myself with this for a while, but it is very flexible.My version of kickstart is commerce_kickstart-7.x-2.9-core It must be set to display nodes using a certain display mode, so check the display settings for this display mode. If image should be displayed reviewing the display settings, look at the formatter used, then try to find the view which is used for this page and check its configuration (should be the view on the /category/% URL, or something like this). (the content type your-product-content-type has a product reference field, which can reference a product of the your-product-type type). You can review the display settings for product here :Īdmin/commerce/products/types/your-product-type/display You can review the display settings for product display node here :Īdmin/structure/types/manage/your-product-display-content-type/display So when a product is displayed, two sets of display settings are playing together : one for the product and one for the product display node. So when managing the way products appears on your site, you have to check the display settings for the product display node (product reference field must be visible, using a formatter like "rendered entity", where you can choose a display mode which will be used to display the product entity within the product display node) AND the display settings for the product itself : is the image field (it must be on the product entity since typically it changes across variations) visible for the display mode that is used on your listing page (this display mode should be called "product listing by category" for instance) ? A product is basically a thing that can be sold (with a unique SKU, a price, and most of the time a picture), while a product display node is a wrapper which allows to display one or more products (variations of a products). A product display node can reference multiple products (think about T shirts : different colors and sizes). In Drupal commerce, you have product display nodes, which are plain old Drupal nodes and have a product reference field, and products which are not nodes but entities, with mandatory fields : price, SKU. Then you have to select a display mode in top right (full content, product list.), and choose what to display (and how) for this content type and this display mode. In Drupal Commerce (and Drupal), node display (which fields are visible ? where ? which formatter is used ?) is set using Display Suite (most of the time, it's the case with Commerce Kickstart) : Structure -> Content types -> -> Manage Display. It seems very simple on paper but I'm struggling to find this particular setting. Here's the theme maker's page looking like I want mine to look like: It's just I've spent 12 hours looking for this setting and found diddly squat so far. So my guess is somewhere in the depths of Drupal I've deactivated product images on the item-type page. Mainly because both use the same file and the code calling in the image is there. Got a feeling I've changed something inside Drupal. To be a little more specific on the category page there's this: Īny help restoring the picture(s) to the item type page appreciated. When you click on one of the products you see the product's picture that I uploaded.įrom what I can tell both pages use the same file to display the products - node-product-display-tpl.php. Simply a list of products in that category. On my category (item-type) page I get just text - no sign of the image I uploaded when I added the product. Will readily admit I'm not an expert with Drupal. I've put together a Drupal commerce site using a theme called Expressa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |