Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
66 views

Summary: Customer could be charged a different amount from what is displayed in the Payment step panel if an auto-applied promotion gets published or unpublished just before external payment is ...
MastaP's user avatar
  • 117
0 votes
0 answers
22 views

I’m developing an event registration system in Drupal where: Events have multiple dates (users select specific dates). Add-ons (e.g., dinner, lunch) can be attached to events. I created a PoC using ...
Aron Novak's user avatar
0 votes
1 answer
52 views

I have the following form function beyond_shipping_form_alter(&$form, FormStateInterface $form_state, $form_id) { if ($form_id == 'commerce_checkout_flow_multistep_default') { $...
perpetual_dream's user avatar
0 votes
0 answers
41 views

I tried to implement saving total price in orders but it`s returning an issue like before saving everything is good, but after it debug returning null protected function createOrder($order_data) { ...
Anton971's user avatar
1 vote
1 answer
562 views

can't install commerce by use composer, I tried both command : composer require drupal/commerce composer require 'drupal/inline_entity_form:^1.0@RC when I used "composer require drupal/commerce&...
lee's user avatar
  • 11
1 vote
0 answers
212 views

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 ...
Roman Selin's user avatar
0 votes
1 answer
23 views

I have installed Drupal commerce on Druapl 8 site. I need to expose commerce features via an API. when I try to enable Commerce API module I am getting following error. TypeError: strpos() expects ...
MavenSanK's user avatar
0 votes
1 answer
240 views

I have the TWIG code below that works. It checks that "Produit" is in the name of the product type. My problem : I want it to check the machine name of the product type (not the title of the ...
frankky's user avatar
0 votes
0 answers
110 views

I am trying to add 2 additional form fields to the Wishlist Share form where the user input will be rendered in the email. I have been able to add the fields to the form, but I am not sure how to add ...
L. Rohr's user avatar
  • 11
0 votes
1 answer
96 views

I created a custom module to create a /store/ID/tasks page https://www.drupal.org/project/commerce How to limit access to this page to the store owner ? If the current user is owner of store ID 76, he ...
user avatar
1 vote
2 answers
861 views

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 ...
Sourabh Bhutani's user avatar
0 votes
2 answers
1k views

I need to unpublish all "active" (published status == TRUE) products and products variations before every import of actual assortment on my site. How to do it programmatically? I see 2 ways ...
Savage's user avatar
  • 21
1 vote
1 answer
288 views

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, ...
jmmalunao's user avatar
2 votes
1 answer
299 views

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::...
Marc Rasmussen's user avatar
0 votes
2 answers
138 views

I have a TWIG code to display the address of a store. Currently the address is rendered on 3 lines. How to make the address code on one line ? {{ store.address|render|trim|replace({'<br>': ' -...
user avatar
0 votes
2 answers
44 views

Drupal Commerce 1 has included Crumbs 1.10. I need to upgrade Crumbs to 2.7, and this version isn't included with Drupal Commerce. How can I upgrade it without breaking Drupal Commerce distribution (...
Maxime's user avatar
  • 1
0 votes
1 answer
2k views

I created a promotion with offer type - Fixed amount off each matching product and applies to - Specific product. In my custom block I get the product entity, but don't see any promotions there. How ...
Sizuji's user avatar
  • 908
0 votes
1 answer
84 views

I have the "PayPal Express Checkout" Drupal 7 module installed and I need to ideally register what country the customer is checking out from and charge them a standard shipping fee, for example: UK: £...
user1532669's user avatar
  • 2,380
0 votes
1 answer
735 views

I have a Drupal 8.7 site and the Drupal Commerce 2.14 module In the template of my store to display the field field_professionnel_cgv I use this code TWIG : {{ store.field_professionnel_cgv }} How ...
user avatar
0 votes
1 answer
1k views

I have a Drupal Site 8 with Drupal Commerce. I create 2 types of store: personal_store professional_store I'm working on the template of my products and I want to display the code above only if the ...
user avatar
0 votes
1 answer
136 views

I have an Ember application on the frontend consuming Drupal's JSONAPI. Drupal has the commerce module installed. The ember application is requesting all product_types, and needs to display ...
joshua.thomas.bird's user avatar
0 votes
1 answer
1k views

I am using Drupal with the Commerce Module to build a webshop. I am using the Commerce Cart Block to display a cart icon with the amount of items in the cart, in the navigation bar. Now I would also ...
Mxkert's user avatar
  • 356
1 vote
0 answers
59 views

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 ...
hatuhay's user avatar
  • 11
1 vote
0 answers
507 views

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.
Gagan Shukla's user avatar
3 votes
1 answer
1k views

I get the country code from field_data_commerce_customer_address table in drupal commerce. Now how to get the full country name from this code.
user avatar
1 vote
1 answer
1k views

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 ...
Dan Todd's user avatar
0 votes
1 answer
191 views

I've a site where transactions are based purely on credits. No actual money is exchanged. In such a case, I want to restrict users from adding products to cart if they do not have credits to do so. ...
Ian Martens's user avatar
1 vote
0 answers
147 views

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 ...
Pramod Sivadas's user avatar
0 votes
1 answer
971 views

I created a bunch of products, but I need to style them per the designer's design. I know that I have to overwrite the template from /modules/contrib/commerce/modules/product/templates/commerce-...
Bipin Kumar Pal's user avatar
2 votes
0 answers
58 views

I have a Drupal 8 site with a marketplace (several stores). I want to display in the "review" step of the "Checkout Pane" a checkbox with the sales terms. Currently if I order in 2 stores, this will ...
mathieu61's user avatar
1 vote
1 answer
2k views

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=:...
Aji Prakosa's user avatar
0 votes
0 answers
45 views

I have a drupal commerce website and I need to retrieve all options that are existing for my products. All of these options are in an option set called 'defaut'. My problem is that I can't find a ...
Spialdor's user avatar
  • 1,675
1 vote
4 answers
3k views

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\...
Syam Mohan M P's user avatar
3 votes
1 answer
11k views

How to load the variations_id from product_id on form alter in Drupal commerce-2.x?
B.lakshman's user avatar
0 votes
1 answer
95 views

I'm using Drupal Commerce and when I use some methods (the commerce_fees ones) I have this error : Warning : Invalid argument supplied for foreach() dans commerce_discount_usage_order_discounts() (...
Spialdor's user avatar
  • 1,675
0 votes
1 answer
2k views

I've written a custom Twig product template 'commerce-product.html.twig', which uses fields such as {{product_entity.body.value}} and {{product_entity.field_picture.entity.uri.value}} to pull out ...
a000h's user avatar
  • 47
2 votes
1 answer
3k views

I am trying to install Drupal Commerce via composer. I have finished the installation but it requires DDEV for local development server and it depends on Docker. I installed both and when i try to ...
mehmetserif's user avatar
  • 1,215
0 votes
1 answer
1k views

I need to be able to write a Plugin that gets the orders, product, etc., whenever a new Order, Product is created in DrupalCommerce 2X. but I can't seem to figure out how Commerce wants me to do it. I ...
Saurabh Chopra's user avatar
1 vote
1 answer
140 views

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 ...
thomedy's user avatar
  • 95
1 vote
1 answer
612 views

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 ...
Craigy Craigo's user avatar
0 votes
1 answer
988 views

I am trying to uninstall the commerce modules. I had purchased a template with the commerce modules and using the files with demo data from them. I have contacted the template provider and he has ...
Natraj's user avatar
  • 1
4 votes
1 answer
6k views

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; $...
Santo Boldizar's user avatar
1 vote
1 answer
53 views

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 ...
nuser_st's user avatar
1 vote
1 answer
932 views

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') &...
Santo Boldizar's user avatar
0 votes
1 answer
245 views

Can anybody tell the workflow of "Subscribe to our newsletter" checkbox at checkout page in Drupal commerce. Currently i need to sign-up a user for newsletter who has this checkbox checked after ...
Narayan Dan's user avatar
1 vote
3 answers
964 views

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....
Ričardas Stonys's user avatar
0 votes
1 answer
99 views

I have requirement of Drupal project which is a commerce website. We have used Drupal commerce module for the same purpose before. I have Centos 7 as my server with EasyApache installed. Everything ...
Arpi Patel's user avatar
0 votes
1 answer
676 views

I am currently working on a Drupal8 website where I want to sell user roles. I tried Ubercart with role assignment, but this didn't worked out. I found a tutorial where this was done with Commerce (...
Arno Stalpaert's user avatar
2 votes
3 answers
5k views

I'm trying to install the commerce module in Drupal 8 however I get the error 'BC math PHP extension not found'. I've searched for this problem and tried different things such as editing the PHP.ini ...
jake66's user avatar
  • 35
0 votes
1 answer
5k views

On my Drupal 8 Commerce 8.x-2.0-beta7 site, I cannot get the price of a variation to display in my Add to Cart page. On my Commerce Products Manage Display page, I am using the "Add to cart form" ...
Hochmania's user avatar

1
2 3 4 5