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
0 answers

Drupal custom payment module form problem

I'm a bit new to drupal and i'm trying to create custom payment gateway module and stuck with a problem. When creating OnSitePaymentGateway, everything is ok and i can edit checkout form with PaymentMethodAddForm. But for OffsitePaymentGatewayBase,…
Roman Selin
  • 109
  • 1
  • 16
1
vote
1 answer

In Drupal 8 commerce module how to get disounted amount from cart?

I'm looking into commerce module for drupal 8 and using its submodule commerce promotion. So i only want to get discounted price in current user cart. i got coupon code but that doesn't help to get discounted amount. Please help.
Sourabh Bhutani
  • 623
  • 11
  • 21
1
vote
1 answer

In Drupal 8. Drupal Commerce. How to hide a view based on Product field (Entity Reference - Taxonomy)

If I clicked a certain Product, it will be redirect to Product Page. Within this page, views will be shown or hides base on Product Category. Example. If Product Category is A. - Shows View A and, - Hides View B. If Product Category is B. - Shows…
jmmalunao
  • 26
  • 7
1
vote
0 answers

Drupal 8 Commerce 2 product autocomplete only rendered for admin user accounts

On a fresh install of Drupal 8 with commerce 8.x-2.13 try to use the product autocomplete. The autocomplete works out of the box for user 1 or any user with administration role, but not for any other role with regular non admin permissions. For…
hatuhay
  • 11
  • 2
1
vote
0 answers

How to redirect the checkout complete page without using rules in drupal commerce 2.x

I need to redirect the checkout complete page with a link on that page . Once user click on that link get redirect to home page without using rules module in drupal 8.
1
vote
1 answer

Drupal 8 views contextual filter using product type and a taxonomy term

I'm having troubles getting the contextual filter to work on a view. I want products/type/kind to show only the products which have a Product Type of type and have kind as a term in a particular vocabulary. type and kind contain values which include…
Dan Todd
  • 21
  • 3
1
vote
0 answers

Custom Payment gateway for Drupal commerce

I am trying to add a custom payment gateway to drupal commerce using the iframe method as shown in Drupal commerce iframe I am able to complete the payment and the success page is shown. But when I checked the orders there are no orders found. I…
Pramod Sivadas
  • 873
  • 2
  • 9
  • 28
1
vote
1 answer

COMMERCE ORDER - PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

Here is my error message PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: UPDATE {commerce_order} SET order_number=:db_update_placeholder_0,…
1
vote
3 answers

RuntimeException: The bcmath extension is required by NumberFormatter

I have installed drupal commerce module. I am getting the below error while viewing a product page. RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of…
Syam Mohan M P
  • 1,047
  • 8
  • 23
1
vote
1 answer

Drupal rules line items

I'm doing something very simple. I have an order where rules fires on completed checkout. I'm trying to iterate through the existing line items and schedule recurring billing based on a text list that has either yearly or monthly. It wasn't working…
thomedy
  • 93
  • 11
1
vote
1 answer

Cant Install Commerce Checkout Module

I'm in the process of upgrading my website from Drupal 7 to 8 and one of my tasks is to ensure that all modules are copied over and installed. I've been able to install every 'Commerce' module apart from the checkout. Unable to install Commerce…
1
vote
1 answer

Drupal 7 all Users of one role need to be accessible from other role

We are using Drupal Commerce in our website. We have multiple roles in this website ex. Customer, Customer representative, Content editor and Admin. Users with "Customer" roles will be allowed to purchase product and make orders, Edit…
1
vote
1 answer

How to add value to Drupal Commerce 2 order information form?

I am created a Drupal module and added the form alter function: MY_MODULE_form_alter(&$form, &$form_state, $form_id){ if(($form_id === 'commerce_checkout_flow_multistep_default') && ($form['#step_id'] === 'order_information')){ …
Santo Boldizar
  • 1,255
  • 14
  • 17
1
vote
3 answers

Can't install drupal 8 commerce checkout module

I'm trying to install drupal 8 commerce checkout module, but I'm getting the error: Unable to install Commerce Checkout due to unmet dependencies: core.entity_view_display.commerce_product_variation.default.summary …
1
vote
2 answers

How to get Drupal 8 commerce store setting

I am using Drupal commerce 2.x which is based on Drupal 8. I want to access store detail like store name,email programmatically in my custom module.
amol challawar
  • 1,394
  • 1
  • 15
  • 31
1 2
3
13 14