Product Display > Manage Display 

  1. Go to the Product Display (node) Display Settings
  2. Identify which Display View you want the add to cart feature disabled
    Drupal-Commerce-hide-add-cart-product-display.png
  3. Assuming "Product" is the referenced field, hide the Product reference field and hide any of the injected product attribute fields that you wouldn't want displayed. Switch from "Add to Cart" to "Hiden"

Option 1: Field Slideshow and Field Collection modules

Provides a Slideshow formatter for Image fields, using JQuery Cycle plugin.Compared to Views slideshows, building the slideshow from multiple nodes, this module builds it from a single node, with a multi-valued Image/Media/Field Collection field.

https://www.drupal.org/project/field_slideshow

Here is a list of those oftentimes necessary table modules for Drupal that works for views (list to date).

Simple Responsive Table

https://www.drupal.org/project/simple_responsive_table

Foo Table

https://www.drupal.org/project/footable

Zurb Responsive Tables

https://www.drupal.org/project/zurb_responsive_tables

Responsive Tables

A common error on Drupal 7 running on PHP 7: Fatal error: Only variables can be passed by reference in C:\xampp\htdocs\xxx\sites\all\modules\commerce\modules\cart\commerce_cart.module on line 1344

Fixes:

Introduction

In a previous blog post, we explained what hierarchical paths are, gave examples, and solved a problem with the pathauto module of Drupal 7 that caused certain links to contain a buggy "front" slug.

In this blog post, we will go deeper into all the issues that come with implementing a proper URL paths hierarchy in Drupal 7 and try to propose working solutions where possible.

Normally, templates come in default by printing all content fields by:

<?php print render($content); ?>

But if for some reason, you wish to display everything, yet you need to exclude or omit certain field values from displaying, you may want to use:

<?php

hide($content['field_image']);

print render($content);

?>

In above example this will output everything by default, yet hide the image of the node.

As of Drupal Media module version 2 and 3, there are a lot of modules, contributed or custom which have yet to upgrade its code to complement with Media's major overhaul. Notably, this error I kept encountering with Drupal 7 projects:

Fatal error: Call to undefined function media_include_browser_js() in

To troubleshoot and fix this:

Tags: 

Pages