Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
1 answer
1k views

How to add multiple products to cart at the same time with attributes

I have different view blocks that display multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / ...
Danz's user avatar
  • 439
3 votes
2 answers
3k views

How to display only one Commerce product variation in Views?

I have a view which displays the list of all Commerce Products on the site. The problem is that it displays variations as separate products. I've tried: Enabling Views aggregating checkbox Creating a ...
Aram Boyajyan's user avatar
0 votes
1 answer
844 views

Use contextual filter global null to pass values to override field result

I come again with new question about Drupal Views and i hope you can help and explain me how to achieve this, I made a page view to display all my content (this works fine) with the following path: /...
Kevin Ramirez Zavalza's user avatar
1 vote
1 answer
670 views

Why my query string generates page not found for my view?

In Drupal 7 I'm using a view export to download information for my orders. If i go to the default url /admin/commerce/orders then the page downloads correctly. However, I also have some filters so I ...
LeeUDO's user avatar
  • 11
18 votes
5 answers
9k views

How to Filter view by comparing 2 fields. If field-a < field-b

I have a product content type that has 2 price fields. I want to create a view that shows all products where price-A is less than price-B. I was hoping I could just add a filter and select price-A ...
Fadzy's user avatar
  • 181
0 votes
2 answers
554 views

Print commerce pricing attributes to email receipt

Users cannot see what size or color shirt they purchased in the email receipt because tokens won't print the attribute fields provided by Commerce Product Attributes / Commerce Pricing Attributes / ...
user3108268's user avatar
1 vote
0 answers
647 views

"Add to cart" form doesn't add products to the cart [closed]

I have an e-commerce site. In that, I have created product listing page using views. I have added the Add to cart field in the view, so every product in the view will have it. I have enabled view ...
Vamsi's user avatar
  • 2,116
3 votes
1 answer
97 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
TBJ's user avatar
  • 616
2 votes
4 answers
2k views

Cant show Commerce Products in View on Taxonomy Term page

My Commerce Products (not Product Displays) have a term reference field. On a taxonomy term page I want to show all the products tagged with that term. If I create a view to show prodcuts (which I ...
Evanss's user avatar
  • 2,026
9 votes
2 answers
14k views

How does Views contextual filters work?

I'm trying to wrap my head around contextual filters again! I used it a while back but I just got totally stumped again. Here's what I'm trying to do: Generate a cloned content node page with ...
Patoshi パトシ's user avatar
2 votes
5 answers
4k views

Hide Title for Rendered Entity views

In display modes I set to hidden all Title fields, but Views still gives h2 title.
Optimus Prime's user avatar
0 votes
1 answer
2k views

How to view search API raw sql query

can we get the raw SQL query based on the search API views? Actually, the search result didn't return the result (sorting) in the way I need it to be done. An example I have a product name "Bicycle ...
cww's user avatar
  • 123
2 votes
3 answers
2k views

Content Translation : Language filter not available in views

I use a view to show a list of nodes flagged by a global flag (any user, any language) and would like to return only current language related nodes. For that I should be able to add a filter in the ...
SeifBh's user avatar
  • 73
1 vote
1 answer
85 views

How to navigate the URL after booking page

I have node content type for booking and created booking page in drupal 7 and same page is displaying error, confirmation and booking page. I am trying to split into three different pages(nodes) using ...
Nisarg Patel's user avatar
0 votes
1 answer
221 views

How to display Commerce Order Owner role in Views fields?

Using Drupal 7.58 and Views 3.18 I am simply trying to display Commerce Order Owner role on a View. Using the Commerce Order:Owner relationship, I have access to a large set of user fields and ...
Toki's user avatar
  • 424
1 vote
1 answer
3k views

Why view is not firing hook_views_query_alter?

I'm using Commerce Kickstart 2 and I want to modify the query of the included view collection_products. As a start, I've added a mymodule_views.inc file with this code: function ...
jchwebdev's user avatar
  • 590
2 votes
2 answers
854 views

create an commerce order list view with payment method

I would like to create simple orders list with chosen payment method. Problem: If customer goes through checkout process at once (without returning from checkout review and changing payment method) ...
loparr's user avatar
  • 906
3 votes
1 answer
6k views

Customize commerce cart form page

Task I have been issued to alter the cart form view Shopping cart form (Commerce Order) on the site.com/cart page of the Drupal 7's commerce module. This includes adding extra choices such as sizes ...
Robin Castlin's user avatar
1 vote
1 answer
1k views

Different "Asc" and "Desc" labels for different Views exposed sort fields

I have a view of Commerce products that, as is standard for e-commerce product listings, can be sorted by price or by date. I'm having trouble with the sort direction labels: In the context of dates, ...
user56reinstatemonica8's user avatar
1 vote
1 answer
368 views

What data type to use for Commerce price field in a rule with a Views Loop (Views Rules)?

I want to create duplicates of some Commerce Products with the goal of giving these products a new Product type. With great help (How to change the product type of selected Drupal Commerce products (...
TBJ's user avatar
  • 616
3 votes
2 answers
5k views

How can I list the current user's orders with Drupal Commerce?

I need a View which shows the list of all orders belong to the currently logged in user. I looked at the Administrators Order View, there are some stuff with Commerce-Line Items but I couldnt figure ...
wallace740's user avatar
0 votes
1 answer
610 views

views - remove duplicates based on field value

Hi I have an order list created in views with 2 fields: order ID and order payment method. Each order can have multiple payment methods (every payment method gets own incremented id when attached to ...
loparr's user avatar
  • 906
2 votes
1 answer
162 views

Why is the Commerce product's price hidden in my view for Anonymous User?

I have a very strange problem with the Views and Drupal Commerce. I would like a list of products and their prices, but in the view - and ONLY in the view, the price is hidden for anonymous users. I ...
everaftergraphics's user avatar
0 votes
0 answers
55 views

How do I create a view of all user accounts who have zero orders?

I would like to create a view of all users and their total Commerce orders particularly including all those who have no orders so that they can be filtered for. I found a related question that solves ...
lolcode's user avatar
  • 904
2 votes
2 answers
757 views

What's the explanation for my product permission issue in a Drupal Commerce view?

I'm very confused with some permissions and product displays in Views. Maybe you can help me to understand it. I'm trying to make a view of product displays. In the view I include a relationship for ...
svelandiag's user avatar
1 vote
2 answers
2k views

How to create a simple shopping cart without Drupal Commerce or Ubercart?

I want to make a simple order web site for selling some poster. I don't need to add to basket or complicated order stuff. I need only list my posters in catalog view and when clicked one of them ...
mtin -nong's user avatar
3 votes
1 answer
228 views

Can a VBO form be integrated with the Commerce Add-to-Cart form to allow adding optional add-on products with checkboxes?

With VBO and Rules I can display a list of Commerce products with checkboxes and a button to add the checked products to the cart (see how). Is there a way to integrate these checkboxes with the ...
unor's user avatar
  • 763
0 votes
1 answer
46 views

Filter product displays by parent taxonomy term

I'm running a music store and have a taxonomy term field on products that that is used for the product's format. We tag the products from the following vocabulary. Vinyl 140g vinyl 180g vinyl CD ...
Kristoffer Rom's user avatar
0 votes
1 answer
69 views

Drupal Commerce - Sort products in view priced lowest to highest

This seems like it should be super simple. I'm trying to sort my products by price (from lowest to highest) in my view, and no matter what I do, nothing seems to work. See below the setup of my ...
Brittany's user avatar
  • 241
1 vote
3 answers
2k views

How to split Commerce Order: Shipping Address and/or Billing Address into different lines in Views

In a Views view that pulls out order information, I'm trying to put the Shipping and Billing addresses, but the addresses seem to be all joined up, and there's no way to split them into different ...
Beebee's user avatar
  • 6,856
0 votes
1 answer
1k views

Change text displayed when cart is empty

I'm using Drupal 7 with Commerce and I'd like to change the text shown when the user visits /cart and they have not added any items, from the default "Your shopping cart is empty." to a custom message,...
Andy's user avatar
  • 775
4 votes
2 answers
2k views

Anonymous users cannot see listed Commerce products in a View with a relationship to product

Commerce products when listed in a View with a relatioinship to Commerce Products cannot be seen by anonymous users. I am using the Views Reference module in the product display and the View is not ...
Patoshi パトシ's user avatar
0 votes
2 answers
163 views

How to add css class to specific rows base on fields in order commerce view page

I would like to add a class based on the field value I used in commerce order view. I have tried a solution from here I have installed "devel" module and already enabled it. However, I cannot find the ...
jmu's user avatar
  • 290
0 votes
1 answer
40 views

Multiple shopping cart view in cart page

I want to show shopping cart view in different style on mobile view . how can I clone shopping cart view to show it on another format like unformatted list or what is your approach to show this views ...
soheil's user avatar
  • 21
1 vote
0 answers
231 views

Get the most recently viewed product variations (commerce product entity) in a View

Pre-requisite knowledge: I have a view of type Content which is meant to list the most recently viewed product variations (commerce product entities that the product node references) first. I am using ...
user3919682's user avatar
2 votes
1 answer
1k views

How to configure Facet displays that comes with Commerce kickstart

Commerce kickstart comes with some filtering when viewing all the products, I do not have idea how to make my own facet displays, and I cannot find anything in the drupal configuration about facet ...
svelandiag's user avatar
3 votes
1 answer
2k views

Views Contextual Filters with Wildcards URLs

I have a view with two page displays. The first page uses a contextual filter for the UID, which is provided with a default value for the user that is currently logged in to the site. One of the ...
wjackson's user avatar
2 votes
1 answer
239 views

view_get_views returns null

I have a module function which needs to get the raw results of a view, so I use this bit of code: $view = views_get_view('sluitingsuren_bakker'); $view->preview(); return $view->result; ...
Lorenzo De Bie's user avatar
0 votes
1 answer
51 views

One exposed filter with different values in one view

I've searched a lot for this one with no luck. My problem is the following: I have an exposed filter of brands (adidas, nike, etc). It is displayed as a block on the home page. while entering the ...
ram_griever's user avatar
1 vote
2 answers
329 views

How to exclude product variations from product teaser display?

I am developing an online shopping website using Drupal Commerce. In my products teaser display all my products variations are also shown. I want only the main product to be displayed and not its ...
maaz siddiqui's user avatar
0 votes
1 answer
255 views

Shopping cart delete button is not removing the correct line item.

I have 2 blocks on my shopping cart. The view block for the Main Product and another for the Specials ( which is an add-on), each block has their own delete button. I use a Views Field View on the ...
Danz's user avatar
  • 439
2 votes
2 answers
340 views

Drupal node "ranking" based on views sorting

I am creating a site where there are nodes (which are "causes") that users can donate to (i.e. buying a donation product using Drupal Commerce, which is sort of irrelevant, but just for the record). ...
Rewdy's user avatar
  • 78
0 votes
1 answer
309 views

How to alter commerce cart view to show custom line item data - either through UI or custom module

In a custom module I am adding data to a line item added to the cart like this: $user_to_add =_get_user_by_ain($ain); $product = commerce_product_load($product_id); $line_item = ...
Chris Rockwell's user avatar
1 vote
1 answer
378 views

Delete button not working in Checkout page

I created a Rule on event 'After adding to cart' to action 'Page redirect' to redirect straight to Checkout page (at /checkout) so it skips the Cart page. The cart page by default has the Line Item: ...
Optimus Prime's user avatar
2 votes
3 answers
3k views

Product display and taxonomy term ID filter (with depth)

I have a view for nodes that show my products by product reference field. All of these products tagged with "Catalog" vocabulary. I have added a reference to the field_product in the view. Is there ...
ya.teck's user avatar
  • 5,692
1 vote
1 answer
535 views

Metatags and Commerce - pass taxonomy metatags to commerce product view

I have a Commerce Product view that pulls in products based on a taxonomy term in the url (category/taxonomy-term). This is done using relationships. Ideally, I would be able to edit metatags for ...
Chris Rockwell's user avatar
0 votes
3 answers
914 views

How to access Views administration in Commerce Kickstart 7.x-2.9

I can't seem to get into the Views administration panel from any place in Commerce Kickstart 7.x-2.9. There is no menu entry even with Administration menu installed. Trying to configure via the link ...
Clive Woodhouse's user avatar
5 votes
1 answer
2k views

Configuring Commerce in an existing drupal install

I'm running drupal 7 and would like to add the Commerce module to my site and am having problems with basic functionality. I've created a product display with views, but I'm unable to figure out how ...
devnill's user avatar
  • 191
1 vote
1 answer
197 views

New VBO bulk operation button not get translated

VBO button not translated issue. I have created a new VBO bulk operation using rules component. This is the button: In Rules I have written the translation for this rule, in the translate tab of ...
bunset's user avatar
  • 131
2 votes
1 answer
140 views

Commerce Line Item Taxonomy Reference Filtered by Product Selection

Here's the scenario: I'm selling furniture. I have a chair we'll call Mission Chair. The Mission Chair comes in oak or maple, both are priced differently. I have a field in my product I have a ...
Eric Wenger's user avatar