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
12
votes
5 answers

Drupal Commerce Line Items: alter the price?

I have to add to my cart some line items with a custom amount. The commerce product is saved with price = 0, and my module compute the price and add the line item to the cart/order, but i dont understand how to set programmatically the price. I've…
Strae
  • 18,807
  • 29
  • 92
  • 131
7
votes
1 answer

Combine like products on the same line item in the cart

I am having the same issue as outlined here but the solutions below do not work. I do have "Commerce Product Option" enabled. I also alter the price using this hook, function mectronic_get_amount_qty($price, $length) { //print '
P ' .…
Alex Borsody
  • 1,908
  • 9
  • 40
  • 74
7
votes
1 answer

Fullcalendar as part of Drupal commerce checkout

I'm setting up an e-shop in Drupal 7 using the Commerce suite of modules. Through the shop, a logistics service is offered on a daily basis. One part of the checkout process is about showing the user a calendar with availability for the service. The…
Filippos Karapetis
  • 4,367
  • 21
  • 39
5
votes
2 answers

Rule-based node creation: commerce product + product display node set

I'm trying to bind a Commerce product type to my own custom type node (serving as a display node). The goal is to enter new data in as few places as possible. I'm therefore exploring a rule-based creation of one type upon creation of the other.…
user776686
  • 7,933
  • 14
  • 71
  • 124
4
votes
1 answer

Adding a discount with the Drupal commerce module

I am trying to add a discount on the product price depending on where the users are from "filled in the registration form". I am thinking about fetching the data "state" via hook, and altering the discount depending on the fetched data. I can't…
saadlulu
  • 1,375
  • 2
  • 26
  • 38
4
votes
1 answer

In Drupal 8 Commerce, how to get order id and product variation id from current cart programmatically?

I want to get: Order ID for the current user; All product variation ID from the current users cart; Prices for product variations; Images; Titles; I have the following: $store_id = 1; $order_type = 'default'; $entity_manager =…
Santo Boldizar
  • 1,255
  • 14
  • 17
4
votes
1 answer

ECK Drupal Module + Commerce Marketplace Entity Error

I'm using Drupal Commerce with inStock Premium Theme. Everything was going well until Client asked for a Multi Sellers Features. So, I turn on Drupal Commerce Marketplace Module and now, it's is happening like this. According to the searching on…
Zin Ko Oo
  • 79
  • 6
4
votes
1 answer

Drupal Commerce dynamic Line Items

Is there a way by which I can programmatically update a select options list of LineItems? I am trying to create Line Items from data provided by site administrators. If you refer to http://178.79.128.76/coronet/node/78, you will see 4 types of data:…
sisko
  • 9,604
  • 20
  • 67
  • 139
4
votes
2 answers

Drupal Commerce on Drupal 7?

Will Drupal Commerce run only on Drupal 7 core, and not support Backward core versions Like Drupal 6 ?
mjs
  • 657
  • 7
  • 14
3
votes
1 answer

Payment after ordering/Different order statusses

Im setting up a drupal commerce website and i would like the functionality to let an admin handle an order and change the order status, then the user recieves an email link which redirects him to the payment page. Is such a thing possible with…
thecodeassassin
  • 816
  • 10
  • 24
3
votes
1 answer

How to load all variations and its id by using product_id programmatically using Drupal Commerce-2.x?

How to load the variations_id from product_id on form alter in Drupal commerce-2.x?
B.lakshman
  • 401
  • 1
  • 6
  • 19
3
votes
0 answers

One of Drupal Commerce shipping services abruptly disappears/rule gets deleted

I am not sure whether this a bug or not. I have one shipping method that includes two shipping services. One of the shipping services is available only if the ordered items include Arabic language books; in such a case the user is represented with…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
3
votes
1 answer

Drupal Commerce Kickstart v2 Approve Order before payment

I am building a proof of concept ecommerce solution using commerce kickstart v2 I wish to implement a system where a user can submit an order but an admin must approve orders before the customer can pay - I have a feeling I can do this with rules &…
Alan
  • 93
  • 6
2
votes
1 answer

Getting all products owned by a user

I'm using Drupal 7 and the Commerce module. I'm trying to warn the user whenever they add to the cart a product they already own. Getting a list of products already owned by the user (in PHP code) seems quite the challenge, because the connection…
Tal V.
  • 671
  • 1
  • 6
  • 15
2
votes
1 answer

drupal 8 commerce get product returns empty object

So i have created a few products and added some data to it: In my custom route i am then trying to get all products out using the following code: $products = \Drupal\commerce_product\Entity\Product::loadMultiple(); $response['data'] =…
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
1
2 3
13 14