Skip to main content

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
29 views

capture card number in the order activity of order page dashboard

I'm working on an offsite payment module, wherein I'm trying to capture the card number(last 4 digit) in the dashboard order activity and in payment tab just like stripe module does. For instance, I ...
DEV_anonymous's user avatar
0 votes
0 answers
88 views

\Drupal::messenger()->addMessage Logs out user automatically

I'm working on a Drupal 10 offsite payment module. I'm trying to show Drupal message whenever order gets placed, declined, or failed. Please see code snippet: module file: Drupal\my_module\Plugin\...
DEV_anonymous's user avatar
-2 votes
0 answers
15 views

Direct download of file without checkout

A drupal (d10) commerce book shop is offering 3 different types of books: (1) printed books, (2) e-books a customer has to pay for and (3) free e-books. E-books will be provided with commerce file ...
Madam Adam's user avatar
0 votes
0 answers
21 views

Generate order link

I'm trying to generate a link to the order that is displayed on a commerce checkout pane. $order_link = $this->order->toLink($this->order->getOrderNumber()); $link = $order_link->...
Mike's user avatar
  • 1
0 votes
1 answer
30 views

Call to undefined method Drupal\commerce\PurchasableEntityInterface::getProduct

I have code which should return get the actual product (not variation). The problem is that phpstan/drupal-checker (mglaman/drupal-check) returns this error. Call to an undefined method Drupal\...
Hasse Wilson's user avatar
0 votes
0 answers
52 views

Customise order confirmation message

I'm working on a Drupal 10 offsite payment module wherein I'm trying to customise order confirmation message with custom message along with payment information such as transaction id, merchant ref ...
DEV_anonymous's user avatar
0 votes
1 answer
16 views

How to make products in Commerce catalog clickable?

I'm making an eCommerce website using Drupal Core 10 and Commerce. I've set up pretty much everything without problems and I got my test products to show up in the "Products" page, but they'...
Elia1995's user avatar
0 votes
0 answers
28 views

Commerce user redirected to 'page not found' page after logging in

So I have a Drupal Commerce website set up on a Drupal 10 site. The checkout flow seems to be working smoothly, except when Returning Customer logs in on checkout/108/login, they are redirected to ?...
yogurtexpress's user avatar
0 votes
1 answer
30 views

Configurable products with reference to simple products

I'm in the process of creating an e-commerce site for myself. I'm a Magento developer but decided to learn Drupal. I'm struggling with a setup for configurable products. I'm able to create them in a ...
Pawel's user avatar
  • 1
1 vote
1 answer
70 views

Checkout with non-interfering returning customer login

In a drupal commerce shop, I want to provide a possibility for returning customers to log in without introducing an obstacle for customers who want to check out without having to click on button "...
Madam Adam's user avatar
0 votes
0 answers
12 views

Set Custom Metatag Title for Products? Taxonomy Term or Vocabulary + Product title - Drupal Commerce

I am using Drupal 10.3 and Drupal Commerce 2.39. I want to customize the title of a product. What I need: The page title should be "Taxonomy Vocabulary + Product Title." I think there is no ...
C. Riemer's user avatar
0 votes
1 answer
32 views

Not saving total price for orders

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) { $...
Anton97's user avatar
0 votes
1 answer
23 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
16 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
36 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
58 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
10 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
24 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
26 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
21 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
64 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
31 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
23 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
44 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
59 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
42 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
29 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
42 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
14 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
129 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
  • 500
0 votes
1 answer
43 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
25 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
15 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
59 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
42 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
68 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
26 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
30 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
78 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
19 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
55 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
40 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
64 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
103 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
137 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
39 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
76 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
41 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
69 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
123 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

1
2 3 4 5
79