How to specify default product in product display?

My issue is that I have created all my products in Commerce and created a product display, all the different options for the product are given through a couple of drop down select lists.

I want the default to be the lowest price and I have achieved this in part by using the method of creating a module which uses hook form alter and changes the default value for each select list, however the price doesn't update. It still shows the original price until a new selection is made in one of the select lists.

Posted: Jun 19, 2014

Adding product image field to view


I'm using Drupal 7.28 along with the Commerce 7.x-1.9 module

Basically the image and the description fields are both on the Product Type not the content type as each product has its own description and image.

In my view I now need to add the image field, but I can't add it, which I believe is because the field isn't in the content type.

When I add the 'Content: Referenced Products' relationship to the view, I am then able to add the image field to my view.

Posted: May 29, 2014

Product Refence Field rendered product causes links to admin page instead to node

OK, so I'm using Commerce Kickstart 2, and wanted to create an associated products field for each products. I chose product reference for that field and displayed rendered product teasers. At first I didn't notice (or it may have occurred later) but the teaser image links to the admin page of the associated product instead of the node page of that rendered product.

Posted: Oct 27, 2013

Showing related products

Hey Guys,

I am really stuck on a problem right now. I am sure it's not a big deal, but due to my newness I just can't figure it out:

I need to show related products on my product display node. The information comes from the product itself. All the products have a field called 'display group'. So whenever I display a product I want to display link-wrapped images of other products of the same 'display group'.

Posted: Mar 25, 2013

providing multiple products to buy in a single add to cart form

After days of trying, asking for support on this forum is my last option. I am building a website selling sim cards and the design should be as follows

1 page (add to cart form) on which you first will be able to select your sim card and than will be able to select the credit you want to load on to the sim card. The credit could be 100 min plus 400mb or 1000min plus 1gb data etc. with some additional information. It is designed as being vouchers with a little more explanation for each credit voucher.

Posted: Feb 18, 2013

node--product-display.tpl.php not working but node--product--type.tpl.php works

I have been trying to get my node--product-display.tpl.php file working for about 90 mins and I have no idea why it doesn't display.

My theme is called wholebox - which uses omega kickstart as a base - so I put the template into /wholebox/templates/, cleared the cache and nothing happened. I also renamed it node--productdisplay.tpl.php and node--product_display.tpl.php to be sure, cleared the cache and still nothing. It does have content in it - it's not a blank file.

Posted: Jan 2, 2013

Confused about product variations

I've been trying for a week or so to get my head around product variations.

I'm trying to set up something like in the demo included with Kickstart, so that when I view a product display the different variations show as drop downs. Instead of shoe size I want the user to choose the size of their fruit and veg box.

Posted: Dec 8, 2012

unique products with no variations never >1 - where to with fields ??

Hi Everyone !

Have built a couple of stores with ubercart + D6. Now building first store with D7 Commerce (Kickstart2) And adding fields. But never had a customer who needed variations ...

Have done quite a bit of research and always found:
- If field for all variations, then display node.
- If field for different variations, then product variation.

Posted: Nov 1, 2012

'add to cart' button totally disappeared

I don't know what exactly caused this since I didn't notice it until after performing a core and multiple module updates (all to current versions) along with removing the default kickstart products etc, but the add to cart button totally disappeared everywhere on the site including all display nodes and all views.

In views that used the add to cart field, I now get 'Broken/missing handler' and the Relationship is also missing. I added the relationship back (Content:Product) but there is no Field to select for the "Commerce Product: Add to Cart Form"

Posted: Aug 14, 2012

View for product display content type with Has taxonomy term ID (with depth) does not show children term nodes

I've created view for displaying product display node type fields and put CONTEXTUAL FILTERS with
Content: Has taxonomy term ID (with depth)
Content: Has taxonomy term ID depth modifier
but when navigating to parent term page nodes from child terms are not displayed it results only with blank page

Also the view does not show result for anonymous user but I resolve this by checking Disable SQL rewriting in Query options.

Posted: Jul 3, 2012


Subscribe to RSS - product display