Discussions

Product Display in Views

Not sure if this is the right place for this, but the issue is with "products reference"

I have created a view as in the video ( http://vimeo.com/22746978 ).

Show content of Product Display sore by title
Display format Grid

On views page create Relationship: Product Reference

Add Fields: Commerce Product: Product Image.
The image shows up in views as long as the image is set to original, but if I change the image to thumbnail, medium or anything else it doesn't show up in views. Any idea how to fix this or is anyone else had this issue?

Posted: Oct 10, 2011

Comments

scott.carlton on October 10, 2011

Notice: Undefined index: tax|vat in theme_commerce_price_rrp_your_price() (line 203 of /home/aip/public_html/sites/store.aipintl.com/modules/commerce_extra_price_formatters/commerce_extra_price_formatters.module).

scott.carlton on October 10, 2011

Fixed the CEPF issue. Had to change the custom display in product type for teaser and line item to RRP /Your Price

rfay Randy Fay on October 10, 2011

Normally problems like this are a result of the sites/default/files directory not being writeable. Please visit admin/reports/status and see what you see there, and also media/filesystem configuration.

The first thing to do is a super-simple use of image styles. See if you can get *any* image style to work, and then whether you can get it to work in views.

scott.carlton on October 10, 2011

Admin status shows file is Writable (public download method) and I also checked via cpanels with 755 permissions. Files system shows sites/store.website.com/files as the Public file system path.

It works with Fields: (Product Reference) Commerce Product: Product Image - Image Styles - set to none(original image). If i change it to thumbnail, medium, large, or even a custom setting the images doesn't appear in views.
I need at least the thumbnail, and custom product-image to work.

The image also shows as the original in the Content Type : Product Display node via product reference in manage displays, but if I change the manage display to thumbnail, medium, large or custom it will also disappear in the Product Display Node. Don't get it? It's been frustrating, this bit.

rfay Randy Fay on October 11, 2011

I don't remember about cpanel-type systems, but 755 isn't adequate on most Linux servers. It's going to be the files/styles subdirectory that will be the problem if that's it.

Please make another view which just shows any old content (and its images) and see if it works. If it doesn't please look for help over in http://drupal.stackexchange.com where you'll have a wider audience. (But report back here please!)

scott.carlton on October 10, 2011

I changed the media:file system: Public file system path to site/default/files from site/store.aipintl.com/files. It worked. Would like the subdomain folder to work but this will work for now.