Questions tagged [drupal-commerce]

Drupal Commerce is an e-commerce framework built on Drupal.

Drupal Commerce is an e-commerce framework built on Drupal. The project started with Drupal 7, and it encompasses a strict set of core modules and works with essential contributed modules (Views, Rules, Tokens, etc). There are also a number of Drupal Distributions that combine contributed modules to satisfy particular e-commerce needs (shipping products, selling digital downloads, selling digital access, donations, etc).

The project's website contains information on the project's goals and architecture and is the primary repository for developer and administrator documentation. However, downloads and issue tracking are still handled on drupal.org through the Drupal Commerce project page.

208 questions
1
vote
1 answer

Drupal 7 Rules custom action assign return data to a replacement pattern

How can I create a custom Rule-Action which will successfully save a value as a replacement pattern for use in the other actions? I got some very good help here on retrieving Product-Display information from a Product-Order. As I said, the linked…
sisko
  • 9,604
  • 20
  • 67
  • 139
1
vote
1 answer

Undefined index: commerce_product in views_handler_field_field->query()

I build a website with Drupal Commerce. After I add a product to the cart and I consult the shopping cart, which is empty. I get this message: Notice: Undefined index: commerce_product in views_handler_field_field->query() (line 188 of…
learner123
  • 275
  • 5
  • 12
1
vote
3 answers

How to create a campaign Buy 2 get 1 free in drupal commerce?

How to create buy 2 get 1 free in drupal 7 Commerce? I tried commerce discount module but that is buggy and in alpha version right now.
rashidkhan
  • 462
  • 8
  • 24
1
vote
2 answers

Drupal 7 RewriteRule not working

My basic page access i.e : mysite/aboutus, which is working perfectly fine. But due to request, every page except for home needs to be prefixed with training. So if I need to go to mysite/aboutus, instead now I need to go to…
Samuel Adam
  • 1,327
  • 4
  • 26
  • 45
1
vote
0 answers

Update commerce cart form view on ajax submit

I have altered the views_form_commerce_cart_form_default form to allow ajax submission on quantity change. My ajax attribute is as follows: $ajax_field_settings = array( 'event' => 'blur', 'callback' => '_ajax_cart_update_cart', 'method' =>…
oleron
  • 483
  • 2
  • 7
1
vote
1 answer

Drupal Commerce Coupon for selected products only

I am using commerce coupon percentage beta module. My customer need to give coupon only for selected product types only. Say for Cloths,Accessories but not for Shoes How can I implement this? Can I write a rule and how? Thanks
user1353519
  • 71
  • 2
  • 12
1
vote
0 answers

Drupal commerce - page titles from product name

I've installed a drupal commerce module. And I made an article with some products. So I want to change the page title to the title of selected from list product in this article. I tried to use Page_title module, but there is no token I…
AlexEfremo
  • 773
  • 1
  • 8
  • 20
1
vote
2 answers

drupal: commerce kickstart, change default/home page url

Hello: I created a site for a client using Drupal 7 and commerce quickstart. Now that things are picking up, the client wants to make the estore a complete site; so I am adding the about, directions, join, etc. pages, but can't seem to figure…
user1176783
  • 673
  • 4
  • 19
  • 39
1
vote
1 answer

When using Authorize.net's DPM method, I can only get a cryptic error message

I have a simple checkout form and I'm using Authorize.net's DPM (Direct Post Method) and I keep getting this error message: An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing…
David Barratt
  • 546
  • 1
  • 6
  • 24
1
vote
1 answer

How to add new rules in drupal

I'm trying to add some rules programmatically, I'm following this tutorial to manage different price list depending of the rules. To create the rules it usesa default_rules_configuration hook which will be executed "when the rules will be…
mb14
  • 22,276
  • 7
  • 60
  • 102
1
vote
1 answer

Updating a large amount of products on drupal commerce

I would like to ask how can I update certain fields of my products like prices,images,stats? Notice that I have around 6.000 products.I tried the same way that I imported them but I get this error SQLSTATE[23000]: Integrity constraint violation:…
kostis
  • 117
  • 3
  • 14
1
vote
2 answers

Drupal 7 - Run rule on every user triggered by cron

Is it possible to run a rule on every user triggered when the cron runs. I need to check every users subscription stutus (commerce subscription module) and if the subscription has expired downgrade their role. I was hoping the module had this…
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
1
vote
1 answer

Drupal: How to override a function from a contrib module

I am using a module that builds a price table for Drupal Commerce items. There is a function that formats the table headers: /** * Helper function that takes care of the quantity displayed in the headers of * the price table. */ function…
user527892
1
vote
1 answer

Filtering my products on drupal commerce

I have imported 5.000 to my drupal-commerce website.I want the user to be able to navigate fast on all of these products,so I just figured out that I need to make somehow a filter or a search that when the user chooses/selects some of the features…
kostis
  • 117
  • 3
  • 14
1
vote
0 answers

Drupal Commerce USPS Module: Disable Shipping Services If Product Option Exists

I need to disable all but one USPS shipping service (Parcel shipping) if any product in the cart has a certain custom product option (a checkbox) set. I am a very good with Wordpress, but I am new to Drupal and cannot find a way to make this…
jmotes
  • 2,669
  • 2
  • 22
  • 19