Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
1 answer
13 views

Title field does not show for product

Long time user of Commerce here -- but working with a brand-new Drupal 10 install and just realizing how much I was building on prior work with my old setup. Just created a new Product type, ...
Tiffani Chin's user avatar
0 votes
0 answers
10 views

Tax, coupon, and zero payment

I am trying to do a very basic task which I guess should be available out of the box. I have read many other comments that do one and not the other, some are even offering programming with hook ...
user3532287's user avatar
0 votes
0 answers
23 views

Get display mode of product or product variation where an 'add to cart form' is used in hook_form_alter for the add_to_card_form

I'm using Drupal 10 and the commerce module. I'm using a product display mode 'card' that uses the variations 'add to cart form' format. In hook_form_alter I am hiding the quantity field: function ...
Mike's user avatar
  • 1
0 votes
1 answer
34 views

How to automatically create account after an order have been placed

I am looking to set up an e-commerce site on Drupal 10 (Commerce 2). Here is the goal: A user should not be able to create an account without having placed an order. Therefore, on the account settings ...
Alexdezark's user avatar
0 votes
0 answers
8 views

Correct price not reflected based on product variation when markeplace page loaded

I am stucked with this issue that correct price is not loaded based on product variation setup in drupal 9.5. Here is my product variation. And here is my marketplace product price and variation ...
Lal Kumar Rai's user avatar
0 votes
1 answer
20 views

Uninstalling Commerce Authorize.net: How to Remove Content?

I'm trying to uninstall the Commerce Authorize.net module. I've deleted the payment gateways I was using. When I try to uninstall the module using the web interface I get this error: The following ...
Scott Hollenbeck's user avatar
0 votes
0 answers
21 views

How can I retrieve the variation ID of the product displayed?

When we display a product with a variation, we have the id of the variation as a parameter in url like this : /product/587?v=4951 587 = product id 4951 = product variation id How to retrieve this ...
Sébastien Gicquel's user avatar
0 votes
1 answer
11 views

Payment Gateways not shown when limited to store

I have Commerce Version: 8.x-2.38 installed with Paypal and Stripe. I'm setting these gateways up just fine, and they work, but when I constrain the gateways to appear only with a store, they do not ...
Michael D. Moradzadeh's user avatar
0 votes
0 answers
55 views

D10 Commerce 2 Update Payment Status with PATCH Call to the REST Ressource dont work : ACCESS DENIED

Drupal 10.2.5 with Commerce 2.8 Under /admin/config/services/rest i activated the Payment REST Ressource. This provides the methods GET, PATCH and DELETE under the following path : /entity/...
Maik's user avatar
  • 1
0 votes
1 answer
26 views

Creating a file type of epub in commerce

I want to give customers the option of downloading an epub file or a pdf in Drupal Commerce 2. Drupal 10. In admin/structure/media types/document/manage fields I added the document file type epub. ...
Bessaston's user avatar
0 votes
1 answer
21 views

Cancel adding an order item at any point

I think I have an quite unusual usecase. In my commerce installation, there are two possible carts for each user. "buy" and "sell". Each product has two variations, also called &...
Michael's user avatar
  • 11
1 vote
1 answer
39 views

How to get entity object in buildform formbase?

I've the following in my routing.yml project.product_elasticsearch: path: '/product/{commerce_product}/elasticsearch' defaults: _form: '\Drupal\mymodule\Form\ProductElasticsearchForm' ...
Sivaji's user avatar
  • 2,478
0 votes
1 answer
47 views

Multiple URL aliases on the same node/product

Create an alias for a node/product. /admin/config/search/path/add Create another alias pointing to the same node; /node/123 for example. The first alias created is now 301'd to the last one defined. ...
Wayne Foster's user avatar
0 votes
0 answers
38 views

Custom pane breaks checkout flow

I've successfully created a customizable custom field per Commerce instructions. This field holds welcome message markup that goes on my login page. I have a setting that allows users who are already ...
tonka69's user avatar
  • 21
0 votes
0 answers
23 views

Specifying product image upload location for each image

I have been searching for how to specify the image upload location (folder/directory) for each commerce product, to keep the file system organized. I have been having trouble finding a clear ...
corE's user avatar
  • 1
0 votes
1 answer
39 views

how to prevent Quoted Orders from appear under both Quoted and Completed sections for the Orders page; Completed Orders also appear under both

Orders are showing up in both COMPLETED and QUOTED.. my screenshot here shows only Quoted Order, yet they appear for BOTH: (please note the first screenshot does not feature any fully completed ...
allenski's user avatar
  • 101
0 votes
0 answers
12 views

Add custom error text for Commerce Coupon

We have a coupon that is for shipping only. If user tries to apply it before they have entered address, then error is displayed: "The provided coupon code cannot be applied to your order". ...
betarobot's user avatar
0 votes
1 answer
95 views

How to load commerce order based on purchased entity?

I know how to load an order based on its properties by following code $orders = \Drupal::entityTypeManager()->getStorage('commerce_order')->loadByProperties(['type' => 'default']) Since ...
Rifas Ali's user avatar
  • 490
0 votes
1 answer
35 views

What do I enter in the API Username and API password for the Commerce CardPointe module so that it works with Clover Connect?

I have installed the Commerce CardPointe module in Drupal 10 and have a merchant account with Clover. The module asks me to input the API Username, API password, merchant ID and Site. I know the ...
Jeff Sutherland's user avatar
0 votes
0 answers
18 views

Cart Block Does Not Exist After Placing Block in Header, Main Content, Sidebar, or Footer

Drupal: 10.2.1 Commerce Core: 2.37 (Latest) I am creating a new store and I have correctly set up my store, products, product types, product variations & variation types. All of the product ...
Mathias Rauls's user avatar
0 votes
0 answers
13 views

Add to cart form only showing to anynomous users an admin not other roles

I have created 2 new roles to my Drupal Setup , Shop and wholesale. I can see my add to cart form with anonymous user and admin , but when I log In with role shop or wholesale the add to cart does not ...
Bjorn Drachman's user avatar
1 vote
0 answers
56 views

I want to change the display order of the billing address in the check-out process of Drupal Commerce

I've been using Drupal 9 and want to change the display order of the address section in images to the Japanese style. Despite searching extensively and trying different things, I still haven't figured ...
ichiro2532523's user avatar
0 votes
1 answer
30 views

Commerce Paypal Order for Goods and Services

I'm helping a non-profit set up an order page on their website that would allow users to order physical products. I have commerce integrated with their paypal account and I can successfully collect ...
Cloudkiller's user avatar
-1 votes
1 answer
65 views

Give all users including anonymous ones the option to add nodes of certain content types to a list like "interested", at least once

I'd like to give all users including anonymous ones the option to add nodes of certain content types to a list like "interested", at least once. The logic is identical to that of a shopping ...
alesios's user avatar
  • 41
1 vote
0 answers
23 views

Commerce Kickstart "Add product" does not give option to assign it a product catalog

I just started using "Drupal commerce kickstart" and i've created an new product variation type. When I'm adding a new product of a specific type, it doesnt give me the option to setup its &...
Ivan Marusic's user avatar
1 vote
1 answer
27 views

how to programtically capture authorized payments for orders during cron job for Drupal commerce

How to programatically capture authorized payments for orders during cron job for Drupal commerce .Payment gateway integrated is commerce stripe. Payment get authorized druing order placemnent and ...
Md Manouwer Hussain's user avatar
2 votes
1 answer
70 views

Removing data from an entity type

I am trying to remove a problematic payment gateway module and getting the following message when trying to uninstall it: There is data for the bundle Authorize.net (Accept.js) on the entity type ...
Ben Stark's user avatar
0 votes
0 answers
16 views

Unable to override unit_price for an order_item

I'm trying to override the unit_price for an order_item based on various selected options when adding to the cart. The product is configured at $0.00. So I do a $order_item->setUnitPrice(new Price(...
konadave's user avatar
0 votes
0 answers
47 views

Alter "Apply coupon"

I am developing an advanced coupon module, two-thirds of it has been completed so far; But to apply coupons for products/variation, considering that commerce does not use the Drupal hooks how can ...
Dr.attar's user avatar
0 votes
0 answers
33 views

Is it possible to set random order IDs?

Is it possible, in Drupal Commerce, to give random order IDs to orders, similarly to what the "Advanced Ordernumbers for VirtueMart" plugin does? With that plugin, it is possible to use a ...
Istvan Gabor's user avatar
1 vote
0 answers
52 views

Minimum order amount

How to limit the possibility of completing an order less or more than the specified amount in Commerce 2? For 7 there was a module: https://www.drupal.org/project/commerce_moa but not for 8+...
VVS's user avatar
  • 221
0 votes
1 answer
101 views

Do content types play any role for ecommerce product webpages?

Content types (Node types) have always been a great way to organize Drupal content, especially when combining blocks in nodes of certain content types and/or certain node IDs or preventing them from ...
ali's user avatar
  • 3
1 vote
0 answers
118 views

How can I create a custom "Add to cart" form?

I'm developing a basic Commerce shop with Drupal 10. The product type is clothing, which has a single product variation (product_size) and three different product attributes for that variation. The ...
SlowCheetah's user avatar
0 votes
1 answer
36 views

How can I restrict users to only see products of a certain store?

I am using Drupal 10 with Commerce 2. I would like to add a user, where the user can only see the products of a single store. For example, let's say there is Store A and Store B. I'd like to be able ...
levente.nas's user avatar
-2 votes
1 answer
67 views

Commerce module can't be enabled [closed]

I have installed the Commerce module but when I want to enable it, it does not give me the opportunity to check the checkbox, do you know how I can solve it?
Maurizio Ferraro's user avatar
0 votes
0 answers
35 views

Shipping cost is not up-to-date on the order_information page. Checkout page displays shipping properly

It's a Drupal 8 Commerce site, and we just changed the shipping rate from 2,90 to 3,5€ Although the shipping rate appears just fine on the checkout/####/review page, On the checkout/####/...
escozul's user avatar
0 votes
1 answer
61 views

User error: "funding_source" is an invalid render array key

This seems to be related to Commerce orders and the Symfony Mailer module. I intermittently see this error when a user attempts to complete the checkout process using Commerce PayPal: Blockquote User ...
Scott Hollenbeck's user avatar
1 vote
0 answers
102 views

Alter the address fields of the address module like adding a placeholder

I made a form with the FormAPI to update the address fields of the address module (with Drupal commerce) and it works well. But I saw a topic where you could generate the form with an address type ...
Sébastien Gicquel's user avatar
0 votes
0 answers
73 views

How to create an entity with a referenced entity [duplicate]

I work with Drupal Commerce but my question is more related to a custom entity which refers to a custom entity. Concretely, users have a profile. This profile contains fields including a field which ...
Sébastien Gicquel's user avatar
1 vote
1 answer
70 views

How to add extra validate hook to the order information form?

I am trying to collect additional information on checkout to add to the order. I have added new fields to the order entity and then used hook_form_commerce_checkout_flow_multistep_default_alter to add ...
liquidcms's user avatar
  • 1,278
0 votes
1 answer
68 views

Order is not geting created, but transition is happening in cart

I am doing an Offsite redirection payment with Drupal Commerce. I have a custom payment workflow defined in my_module.workflow.yml as follows: order_linktypeplus_validation: id: ...
KTM's user avatar
  • 2,362
0 votes
1 answer
85 views

How can I print a custom commerce_invoice field or custom commerce order field in the invoice pdf?

In In Drupal 9 commerce_invoice I created a custom field for an invoice number with machine name 'field_numero_de_factura' and every time I generate a new invoice, I can manually enter the invoice ...
Henk Potman's user avatar
0 votes
1 answer
66 views

How can I handle race conditions in a headless setup?

I am currently trying to build an eCommerce site. The functionalities are quite basic; there are products with limited quantities and customers can purchase those products. I've decided to use Drupal ...
levente.nas's user avatar
0 votes
1 answer
233 views

Show message after redirection

This will be mostly a Drupal question rather may not have any relation to Drupal commerce checkout. I have an Offsite Checkout redirect payment method in which I have a buildRedirectFrom as stated in ...
KTM's user avatar
  • 2,362
2 votes
1 answer
65 views

Discount for emails with specific domain

I am trying to apply a discount automatically for customers who sign up using emails from partner companies. I tried using the conditions section with * or % as a wildcard, but that did not work Any ...
Abu Antar's user avatar
0 votes
1 answer
62 views

Why is the Charts module not working for anonymous visitors?

I'm using the Charts module in my project. I've configured Google Chart in my custom view which needs to be shown to anonymous users. The view is shown, but the chart is not rendered for anonymous ...
zed Blackbeard's user avatar
0 votes
0 answers
85 views

Blind SQL Injection vulnerability?

What is the purpose of this unique ID appended to this class in Drupal 9 HTML? js-view-dom-id-7881eb5bafcd4178e6af77ed45179be612e74557a6807989024fac282b24f164 I'm getting what I believe are false ...
Delford Chaffin's user avatar
2 votes
1 answer
33 views

How can I email admin when stock is 0?

I'd like to email the admin when the stock is 0. In one option, I've tried to set a condition in rules based on the stock field, but I can't get the field to display in Entity has Bundle. Are there ...
gscerb's user avatar
  • 21
-1 votes
1 answer
33 views

Expand {product.variations}

In the product detail page I would like to display the price at the BOTTOM of the {product.variations} Where can we alter the {product.variations} ?
MastaP's user avatar
  • 152
0 votes
1 answer
103 views

How do you programmatically get custom content field data from commerce product?

Background: I'm creating a rule that runs after an order is submitted that checks all the line items for any backorder and emails the customer. In the PHP function I've been able to use ...
jsank95's user avatar
  • 11

1
2 3 4 5
79