Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Could the options available be simply a list of optional products with the title as a p or div tag not linked to edit the product?
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2013-03-05 at 16.25.58.png | 265.58 KB | vaccinemedia |
#2 | Screen Shot 2013-03-05 at 16.26.04.png | 85.38 KB | vaccinemedia |
Comments
Comment #1
jazzdrive3 CreditAttribution: jazzdrive3 commentedYou can edit the view mode and have it display almost whatever you want. On the product type you are using, go to Manage Display, and edit the commerce_pado view mode. That is the view mode used when the product type is shown as an add-on.
Comment #2
vaccinemedia CreditAttribution: vaccinemedia commentedThank you for the fast reply! I've attached two images - one is the settings for the product display and the other is how they are rendered in the front end. As you can see in the settings only the image field is set to be displayed yet on the front end the name of the product is shown as a link to edit the product.
Comment #3
vaccinemedia CreditAttribution: vaccinemedia commentedSorry I have to re-activate this ticket as there is now way to prevent the link to edit the product from appearing. What I'm trying to achieve is like this: http://www.housenetwork.co.uk/securepayment.asp but imagine that there's one product display per package with various addon extras per package.
Comment #4
jazzdrive3 CreditAttribution: jazzdrive3 commentedNow I see what you are saying. I had to set the page parameter to TRUE to tell the entity to be rendered in another context. This doesn't print the title. I have updated this in the dev snapshot. As soon as that updates, you can try it out. Works find for me though.
If you want to change your current install, just changed the entity_view call line to, after declaring the global $language variable:
Comment #5
jazzdrive3 CreditAttribution: jazzdrive3 commentedComment #6
vaccinemedia CreditAttribution: vaccinemedia commentedDoes the trick! Thanks :)