Questions tagged [commerce]

One of the modules that implements an eCommerce framework and ecosystem is the Drupal Commerce module.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Combining line items in cart

I am trying to "hide" individual line item values on my shopping cart. Is there a way to combine line items (possibly based on a term applied to each) such that they show as 1 item with the ...
  • 927
0 votes
0 answers
33 views

How to use striptags twig function in a commerce product template?

For a client I need a wysiwyg field on my nodes and commerce products so they can add <em> and <span>&nbsp;</span> tags in their titles. I display this title_nbsp field value in ...
  • 722
-5 votes
0 answers
14 views

Square integration [closed]

How well does Drupal integrate with Square? For instance does it use Square shipping fulfillment, does it allow prices for products to be different than those on my Square POS system or backend, does ...
1 vote
0 answers
24 views

How do I recreate Ubercart's product attributes?

While rebuilding an old D7 site with Ubercart into a new D9/Commerce installation, among other problems, I stumbled upon this one. In Ubercart I can add as many product attributes as I want and make ...
  • 11
-1 votes
1 answer
36 views

Creating a category page when using the Search API module

I’m trying to build a Drupal Commerce store which is going to be my first timer with Drupal 8+. However, the approach described in the Drupal Commerce documentation regarding the creation of a ...
  • 424
0 votes
1 answer
43 views

Ajax validation of file upload in Commerce Product with product attributes

I am building a shop with Drupal Commerce right now. I have a product that uses an Order item type, which supports a file upload. The same product also has some product attributes that load the ...
0 votes
0 answers
17 views

Pickup address doesn't show extra options

I'm using the Commerce Pickup module. I've added 2 pickup profiles (just like Drupal Commerce Pickup module 8.x / 9.x shows), but when I try to add it to my shipping method as Customer > Pickup ...
  • 13
1 vote
2 answers
43 views

Can't uninstall default search module because the Commerce Base module is required

I want to use Search API + Solr on my Drupal (& Drupal commerce) site. The tutorials recommend to uninstall the core Search module. However, I can't: the UI at page /admin/modules has Search ...
  • 26
-5 votes
0 answers
28 views

How can I uninstall Commerce Payment (and all of Commerce)?

Drupal 9.4.3 Commerce Payment 8.x-2.31 I have deleted all orders, payments, etc. I get hung up when I try to delete Commerce Payment. PHP ERROR Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[...
  • 1
1 vote
1 answer
42 views

Commerce pick up vs shipping

I've read the documentation, but it doesn't seem to be complete just yet. I'm using Drupal 9.4 and Commerce Core 8.x-2.31 with a few extra Commerce modules. I've got a basic question (I think?). How ...
  • 13
0 votes
1 answer
19 views

managed_file not initialised after form ajax

I'm having issues with a managed_form field not beeing initialised after it is introduced via a ajaxcallback in a custom checkout Pane: /** * Provides a custom message pane. * * @...
  • 280
0 votes
0 answers
13 views

Call a service at the end purchasing process in shipping method

I'm doing a logistics module. This module has a service that sends the order data to the delivery company. I'm trying to create a shipping method, but I can't find a way to call this service when the ...
  • 1
1 vote
0 answers
27 views

What causes commerce order numbers to skip a number?

On a Drupal 9 / Commerce 2 site, order numbers (not ID's) are incremental for completed orders. I've got a site though where - very rarely - an order number is skipped: 55, 56, 57, 59, 60, 61, ... Is ...
0 votes
1 answer
75 views

How do I divide two numbers?

I seem to be doing something wrong. I am trying to divide the price by 1.2 in commerce-invoice.html.twig. With {{ invoice_item.getTotalPrice|commerce_price_format / 1.2}}, when invoice_item....
1 vote
0 answers
31 views

Create a link to a cart to be used in emails

I would like to be able to create a link to an anonymous users cart, and send this to the user in an email. When the user clicks this link, he should be taken to his cart. (As part of an "...
0 votes
3 answers
29 views

Remove "Payment method" tab in user profile

Commerce don't give me any customize options for the user profile of the user, I don't want the "Payment method" tab to appear in the user profile, how can I cleanly remove/disable this? Can ...
0 votes
0 answers
16 views

Uninstalling Commerce Recurring and Commerce License

For some time now, I have been experiencing trouble related to the commerce_recurring and the commerce_licence module. The problems seem to have started to occur once I tried to uninstall the prior. ...
0 votes
1 answer
25 views

Order balance not directly updated after payment created

I'm trying to figure out why my order balance isn't directly updated after I've created a payment. I'm debugging it with xDebug. This is my OnNotify function $this->order = Order::load($orderId); //...
  • 57
1 vote
1 answer
30 views

Extract order item field data

On a Drupal 9/Commerce 2 installation, I have a Gift Card product through the commerce_giftcard module. When a customer places a Gift Card order, I need to automatically send an email with the Gift ...
0 votes
0 answers
18 views

Trying to customize template of a form rendered by a view

I'm using Drupal commerce and it's cart form for a client's site and I cannot manage to find an accurate template to customize it. The cart's form is rendered from a view. I'm trying to suggest a ...
-1 votes
1 answer
50 views

Class not found for service in custom module [closed]

I am trying to create an event subscriber service in a custom module and I keep getting a "Class not found" error. The module directory is modules/custom/avgc The class is in src/...
0 votes
0 answers
15 views

How can I create a link to a prefilled cart and coupon?

We could use some help with the following use case. We are selling online magazine subscriptions via the shop. Magazine subscriptions are implemented using commerce license. We also offer ...
0 votes
0 answers
12 views

Can't add items to anonymous cart from form

I have a form that adds an Order Item to the cart. It works for logged in users but not for anonymous users. The cart is created but there's nothing in it; looking in the database it doesn't even ...
  • 31
0 votes
0 answers
17 views

How do I filter based on the order type?

I have two order types, Default and Standalone, and the goal is to filter based on these two values. Adding the field in the table format of the view was easy, but trying to add the filter seems that ...
0 votes
0 answers
18 views

How to inherit Payment Gateway configurations?

I have a main payment gateway which I want to configure. And multiple other payment gateways which I want to inherit the main gateway's configuration data. I only have the CommercePaymentGateway ID (...
1 vote
0 answers
19 views

Missing Details form on custom shipping method/service

In Drupal 7, I created custom shipping service which doesn't calculate any rate but collects customer account number for Fedex or UPS on the cart page when a specific shipping method is selected. $...
0 votes
0 answers
16 views

Error when adding a custom global field in views

In my drupal commerce, I'd like to add a textarea where the user can make some comment on his order (which will be added to the commerce order comment workflow) So I've generate with drush my field &...
  • 57
0 votes
0 answers
22 views

What does the "show_quantity" config setting do?

The product entity_view_display config has a 3rd party "show_quantity" setting, but it's seemingly not used anywhere. What does it do?
0 votes
0 answers
34 views

How to create commerce store resolver using user proximity / location

For a custom store resolver using store location proximity to user location, is it necessary to create a completely separate module or can the custom resolver be located somewhere within the commerce ...
-2 votes
1 answer
17 views

Install Commerce_Paypal Error

I have a brand new site that I created today. When I run composer require 'drupal/commerce_paypal:^1.0@RC' I get this. What do I need to do to get this resolved? Shouldn't this just work? I ...
0 votes
0 answers
14 views

Display content type form on checkout pane

I'm trying to implement a form on the checkout so the users can add extra info about them. I have a content type called 'User' and I want to create the new Node when the submit on checkout. I managed ...
0 votes
1 answer
17 views

Rule triggers twice

Simple rule to send account email after updating a commerce license. Export { "rules_membership_activation_email_notification_v2" : { "LABEL" : "Membership activation ...
0 votes
1 answer
42 views

Drupal Commerce Freezes on "Pay and Complete Purchase"

I have two products on my Drupal (9.4.2) Commerce site. I can complete the checkout process for one of the products, and the order shows up in the view at /admin/commerce/orders. The other one, ...
0 votes
0 answers
33 views

Checkout Button Missing

I have a Drupal site that I upgraded from Drupal 7 using Commerce module to the latest version of Drupal and Commerce. Things did not go as expected. The view for the shopping cart form and block ...
0 votes
0 answers
12 views

how to name template commerce-price-calculated.html for a specific view

I'm using Drupal 9.4 with commerce 2.30. To display both base-price & calculated-price, I've create a template commerce-price-calculated.html in web/themes/custom/mytheme/templates I have a view ...
1 vote
2 answers
36 views

Make views output more dynamic with knockout.js or other similar framework?

I am currently experimenting with knockout.js so i can make views output more dynamic. I know React and angular among other newer frameworks are recommended but i do not want to create single page ...
0 votes
1 answer
18 views

Payment method that can only be selected in admin UI

How can I make a payment method only available to select when an admin is manually entering an order in the admin UI, and not visible to customers when checking out normally? Restricting the payment ...
  • 67
0 votes
0 answers
17 views

Drupal commerce / Commerce Pricelist with Prices per Store. How to use the default currency from the store in the variation type?

We have Drupal Commerce 2 stores using commerce pricelist for store-specific prices. Each store represents a country. Prices are working fine so far, but static in EUR. But how can we provide the ...
0 votes
1 answer
16 views

Fee amount is incorrect

I have created a fee type. I set up a rule according to the steps on the module's front page. I have it set to add $5.50 to the order. However, it is only adding $0.06 to the order instead. Here is my ...
1 vote
0 answers
13 views

No shipping info is collected

Update: Well, now it is showing, but we're still running into another error. Will post in a new thread. I've got our store set up with products that are all shippable. There is one Product variation ...
0 votes
1 answer
26 views

Allow users to add extra products/services in the cart

The idea is to allow users to choose supplemental products right in cart (for example, insurance or assembly). Those are in no way related to main product type items. I know there is the Commerce ...
2 votes
0 answers
52 views

Variations created with a queue worker sluggishly slow

The site my team is currently building is meant to import a list of all available trips for a travel booking agency. The method we settled for (for now) can be summarized as such : A daily cron job ...
1 vote
0 answers
58 views

Session/cookie not working for some data on certain conditions

I'm trying to simply redirect to a certain page after is visited. The scenario : the user click on a link. If the user a certain data (a store, for drupal commerce), he can go to my node. If not, ...
  • 57
1 vote
0 answers
23 views

Commerce product vatiation attibutes as individual selections

I hope this is easy, something I haven't grasped yet learning drupal and commerce. I have a product, "Vinyl Lettering", and my variations there are three attributes, Height, Width and Rows. ...
0 votes
0 answers
9 views

Credit card month & year automatic migration

I am using Braintree with Drupal 8 and need for the user to be able to go from the 'Month' to the 'Year' field automatically when typing without having to manually place their cursor in the 'Year' ...
0 votes
0 answers
34 views

Adjust total price in commerce checkout

I have a store setup with 2 products. Public and private tours. Public tours are 10 for each unit. Private tours on the other hand are only meant to collect a deposit. I need the total to be $50 no ...
  • 417
0 votes
0 answers
12 views

Location of product attributes

Probably field_data_field_attributes holds attributes data in SQL. How can I relate this data with a specific product?
  • 1
0 votes
0 answers
21 views

How do I get coupons usage in a view

There is no field for the number of times the coupon was used in Add fields when creating a new view. while other related fields such as Usage limit are available, according to database check: The ...
0 votes
1 answer
28 views

How can Commerce Stores be imported with Feeds?

I'm trying to set up a feed to import Commerce store entities. I installed the Feeds module and the Commerce Feeds module. I then created a CSV file feed with the following mappings: Name: The store ...
0 votes
0 answers
30 views

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 ...

1
2 3 4 5
77