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 commerce order save custom field value

Drupal Commerece, added new custom field in order form, custom field called location, When application creating new order entry that time i want to update location, That is at first when order placed. When customer adding second and third items,…
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
1
vote
0 answers

how to change number of products with ajax?

I am using Drupal 7 and the Commerce module. I have shopping cart with a counter displayed on it: This is the code of hook_block_info function commerce_popup_cart_block_info() { $blocks = array(); // Define the basic shopping cart block and…
rick1
  • 946
  • 3
  • 15
  • 31
1
vote
1 answer

Caching product display with Display Cache and still be able to add products

I'm building an eCommerce website using D7, mainly with Commerce and DS. To get a better perfomance I installed Display Cache which is a module that caches the rendered HTML of an entity for anonymous and authenticated users. In my particular case…
1
vote
1 answer

Drupal Commerce - How to programmatically create a fixed coupon?

What is the best practice for creating a fixed amount coupon programmatically in a custom module? I want to calculate a value and then create a coupon code for that fixed amount it programmatically. Thanks
Hochmania
  • 65
  • 3
  • 9
1
vote
1 answer

How can I add a column to the line items table in /admin/commerce/orders/[order-number]/edit

I can't seem to find how Drupal is building the line items table? It's not a view (that I can find, at least) and I'm not sure how to override it? I'd like to add a column that displays a custom order field I've added to the Order type.
sakeferret
  • 305
  • 1
  • 6
  • 15
1
vote
2 answers

Drupal Commerce: How to create coupon that will give first month free?

In Drupal Commerce, how can I create a coupon code that will deduct the first month free for select products? Basically we have a set of services available that we want to give the first month free. We'd like a code that when entered, will provide…
Hochmania
  • 65
  • 3
  • 9
1
vote
0 answers

Programmatically load the contents of a Product in a particular product type

I am developing an Ecommerce site and I am using Drupal-commerce module for it. I have an issue regarding loading the contents of a product which is: How can I programmatically get the contents of all the products in a particular product type?
Aby
  • 75
  • 10
1
vote
0 answers

Drupal + Google sign in

I'm using Drupal 7 with Commerce. I'm not a good coder but I can read it. I want to integrate Google+ sign in to my website. I have followed the documentation. Created a block with the script, added the meta to my html.tpl.php How do I retrive the…
1
vote
1 answer

How to apply percentage coupon to specific type of product instead of complete order in Drupal Commerce?

In Drupal Commerce, how do I apply a percentage coupon to specific type of product instead of complete order amount? Can this be done using rules or do I have to create some custom module?
1
vote
2 answers

Where is Drupal commerce cart page configured

I have a Drupal Panopoly site and I want to add some commerce functionality so I've installed Drupal commerce on my test site. Panopoly, as you may know, is heavily panels based. I've cloned the Shopping cart block as a views pane so I can use it in…
PedroKTFC
  • 745
  • 10
  • 28
1
vote
1 answer

How can I programmatically set the value for a field in a Commerce Product custom Line Item Type?

I've set up a product which uses a custom line item type called "Custom Notes" (created through the UI at Configuration > Line Item Types). One of the fields in "Custom Notes", that is exposed at checkout, is a "field_notes" textarea field. It works…
sakeferret
  • 305
  • 1
  • 6
  • 15
1
vote
2 answers

Drupal Commerce - PayPal Instant Payment Notification Warning

After a few days we always get this email from paypal when someone is paying with paypal on our onlineshop: Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are…
TJR
  • 6,307
  • 10
  • 38
  • 64
1
vote
0 answers

Export orders from drupal commerce

I Have tried the Views Data Export module to export orders from a Drupal Commerce Kickstart installation. But the line items gets rendered as an html-table. I am not sure if this is possible with the Views Export module, but I want to loop through…
jth
  • 11
  • 3
1
vote
1 answer

How to add custom discount to order total in drupal commerce

I used the custom price field in order entity with this name : field_commerce_order_off for get custom discount from admin in " admin/commerce/orders/add ". I try to use this hook :
Amir
  • 11
  • 1
  • 6
1
vote
0 answers

Drupal form_set_cache Too Slow

I am running a drupal commerce site, where the first request of the site is taking around 3 seconds to load. Its too high. on profiling i found out its because form_set_cache is taking around 2.5 Seconds to insert. How to solve this, i read that it…