The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

How to build maestro workflow template to take cart order as task?

I am new to drupal,I need a help / i don't know whether it possible anyway, I want to assign order items from cart to maestro workflow to handle further for reviews as per i programmed. The only point ...
0
votes
0answers
6 views

Show lists of Payment Method in Account Page using methods from commerce_payment

as the title states, We implemented an on-site credit card payment method that tokenizes credit cards that the guests enter. In doing so, we used methods from Commerce Payment and from saving the ...
0
votes
0answers
11 views

Drupal 8 - Marketplace with commercial ads - which module should I use? [on hold]

I'm working on a solution where small businesses should be able to place ads on a marketplace and pay upon placement of the ad. The design is that ads are a content type and created by authenticated/...
0
votes
0answers
10 views

How to edit the line item manager widget in Drupal Commerce?

On the Commerce Order edit form, we can add a product manually. Using the autocomplete field Product SKU, you may find the exact product you need to add by browsing among SKUs. Unfortunately, I can ...
0
votes
0answers
14 views

Change remove from cart button to an image button

I want to change the remove-button, that removes line items from the cart to an image button representing a trash can like this: The code I am using in a custom module looks like this: <? php ...
0
votes
2answers
16 views

How to change the value of a commerce token?

When an order is submitted on our D7 site an email is sent to us with all the details of the order, including the payment method. I use the token [commerce-order:payment-method] in the commerce email ...
0
votes
1answer
33 views

Change order item title in cart

I would like to update the title of a order item before it's put in the cart to add some extra dynamic info for the user. I tried this but nothing changes. In the onCartEntityAdd function: $item = $...
0
votes
0answers
15 views

Is it possible to change the one-time log-in for the demo site? [closed]

After installing the Drupal Commerce Demo site and running the "quickstart" script, a one-time login link is launched automatically. Once logged in, I cannot change the password, because the ...
0
votes
0answers
8 views

New Products using Price Tables unavailable on display pages

Recently one of my sites started displaying odd behavior. One product type uses Commerce Price Tables to offer quantity price breaks. Lately new products of this type have been displaying as ...
0
votes
0answers
15 views

Problems displaying images on the product display

I have the following problem: I have some variations of products with a color field and another field for weight measurements and a field for images (6 images). Each product variation has 1 image at ...
0
votes
0answers
23 views

How do I allow administrator users to make offsite payment for customers?

When I want to create an order and complete payment on behalf of customer as an admin, I have all the flexibility a customer has, except, now I don't have option to any offsite payment gateway. The ...
0
votes
1answer
13 views

Get a calculated price from Product Variation

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 and try to get the calculated price via ...
0
votes
0answers
16 views

Drupal Commerce Post Update Error using Drush updb

Just update drupal and am trying to run drush updb but getting commerce post update errors. Module Update ID Type Description commerce_order 10 post-update ...
0
votes
0answers
27 views

Commerce_paypal doctrine/annotations error

My site's core and modules are completely up to date including commerce. I'm trying to install commerce_paypal via composer require drupal/commerce_paypal. I've tried --with-dependencies and also (~)...
0
votes
0answers
9 views

How to show referenced products on the individual page view of a product

I use Page Manager to override the individual product display node. I use a panel to show the product. In each product variation the shop owner can reference multiple products via a custom-created ...
0
votes
1answer
16 views

Show active taxonomy term as title of product category view

Commerce kickstart comes with a view named Collection products that shows: a Collection of products (Product display). In the relationship's tab of this view there are 2 relationships: 1. Product ...
0
votes
0answers
11 views

How to programatically link payment with an order in Drupal commerce?

Version: Drupal Commerce 2.x. I am creating orders programatically by following the instruction from the documentation. I looked for various resources but couldn't find any way to link payment with ...
0
votes
0answers
15 views

Commerce | Can the billing profile be shown on the Order view screen when it has been re-used?

In Commerce 2, the first time a user places an order a billing profile (customer) is created and when their order is accessed or view the billing information is displayed. However, on any subsequent ...
-1
votes
0answers
12 views

How can I check out multiple orders of multiple stores at once?

I am using Commerce Marketplace. When the user goes to check out, they have to enter their payment information multiple times for each store. How can I allow the buyer to purchase orders from ...
0
votes
1answer
17 views

How can I change add to cart to some other option when stock drops to zero? [closed]

Does it have some inbuilt functionality already, or should I work with hooks or even subscriber to achieve this?
0
votes
1answer
27 views

How to display a field of the parent store in my module?

I have a Drupal 8.7 site with the Drupal Commerce 2.14 module. I created a marketplace (several merchants on the same site). In the store type, I created a "Text (formatted, long)" field with the ...
0
votes
0answers
22 views

Commerce 2 order receipt email – how to hide and then output later the shipping method in the twig email template?

We have a custom TWIG email receipt template that is outputting the shipping method from the shipping_information variable. The TWIG template is using the default code to output the shipping ...
0
votes
0answers
20 views

How to display a set of custom contents in Taxonomy URL?

I am working with Drupal Commerce using core Drupal 8 and the type of data I am using is Product. When I tag a product with a taxonomy term and visit page for that taxonomy term, I don't see anything. ...
0
votes
0answers
22 views

How to retrieve information from the parent store of a product?

I have a site with Drupal 8.7 and Drupal Commerce 2.14 I created a template for my stores : commerce-store--professionnel--full.html.twig And I added this code : <div class="col-xs-12 col-sm-12 ...
-1
votes
0answers
6 views

Copy billing to shipping fields error when auto insert

When on the shipping page on checkout, and both billing and shipping fields is empty. If i do this: Making full name billing field active, My browser (chrome or firefox), opens a box with my ...
0
votes
1answer
8 views

Purchases with points occupying ubercart

I want to use ubercart to create a site for online purchases but I would like to know if you can use points as a form of payment, I mean that users are placed points with which they can buy items and ...
0
votes
0answers
37 views

After installing commerce and commerce license I'm getting the install screen

I've installed commerce (latest version) on Drupal 8.7.7 using composer. Installation goes fine but as soon as I create a product variation or even when I install commerce license, the website ...
0
votes
1answer
19 views

How to show one variation of one product in a View Pane

I have a View Pane on my home page where I list all products that are in promotion. Each product variation that can be set to "show in promo banner 1" via a taxonomy term field with checkboxes. So the ...
0
votes
0answers
22 views

How can I add an additional, custom profile to the checkout flow?

In Commerce 2 I have a custom Profile to collect additional contact information that may differ from the billing/payment profile information. I've created the new profile but cannot figure out how to ...
0
votes
0answers
45 views

Commerce add to cart throws fatal error related to order_items

On a Drupal 8.7.7 site with Commerce, adding an item to the cart results in whitescreen. The website encountered an unexpected error. Please try again later. Checking the logs, there's an error ...
0
votes
0answers
19 views

Search API boosting results how to

I followed the guide via this article: https://www.easternstandard.com/blog/2018/05/drupal-8-search-how-get-better-more-intuitive-search-results-using-search-api Search API is searching both content ...
-2
votes
1answer
19 views

How to prevent cart from being emptied

In my Drupal 7 site I have inserted an extra page in the checkout process (using a custom module), after the review page, where the customer can choose between 2 custom payment methods. My problem is ...
0
votes
0answers
34 views

No AJAX when user is logged in?

I am developing an e-commerce site for one of our customers for the first time with drupal. It is going pretty good so far but there is a weird misbehavior where I have no idea on how to handle it in ...
0
votes
0answers
13 views

How do I put the bidding opportunity in Drupal Commerce Auctions so it sits next to the product information?

I am using Drupal Commerce and Commerce Auctions in Drupal 7. The default is to have the user click on a tab that links to a new node to place a bid. This is cumbersome, and all I really need (and ...
1
vote
1answer
82 views

Can a product support recurring and not recurring payment at the same time?

So if for some product variant I check option "Allow subscriptions" all product variants of that products can be bought only in recurring way? Is that true? I mean, I can not have one product and one ...
0
votes
1answer
22 views

Multiple products on add to cart?

E.g. node contains a product Poster for $5 and e.g. a checkbox saying "+ Cup" which is another $5. So it's two different products, how do I let user select if they want just a poster of if they want ...
0
votes
1answer
31 views

“File not found error” when installing using composer

I'm running Docker on Ubuntu 18 with a container for MariaDB, Nginx and php-fpm (7.3). The PHP container has composer installed, and I used it to create a Drupal Commerce project. I can start the ...
0
votes
0answers
38 views

Checkout rule 'Create a new account for an anonymous order' not accepting mobile number field

I am using Mobile Number module to enable OTP verification. Also, with Drupal commerce, I have also enabled anonymous checkout. During the execution of the rule Create a new account for an anonymous ...
1
vote
1answer
55 views

Custom payment gateway - order information form [closed]

I have followed the documentation at https://docs.drupalcommerce.org/commerce2/developer-guide/payments/create-payment-gateway/getting-started#step-3-create-a-payment-gateway-plugin. My ...
0
votes
1answer
17 views

How can I make entityQuery('commerce_order') return completed orders?

Under Drupal Commerce 8.x-2.13 I find that the query Drupal::entityQuery('commerce_order') with no conditions attached returns ONLY incomplete orders (when called in the context of an API endpoint)...
0
votes
0answers
19 views

Change the order of line items on checkout

How can I change the order of the line items on the checkout? What I have now is Subtotal (excl. VAT) VAT Shipping cost (excl. VAT) Order total (Incl. VAT) Though the calculation is correct, this is ...
2
votes
1answer
46 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
0
votes
0answers
10 views

How to debug callback function in hook_menu()

I am building a small payment method for Drupal Commerce. When calling the external payment service (Swish) I get a http response saying that the request was successful. After this request and ...
0
votes
1answer
40 views

How to print name of Payment Method in Commerce 2 order receipt email?

The commerce-order-receipt.html.twig contains a variable called {{ payment_method }}, which returns no data. Likewise, when I add Payment Method field to my orders table view, it shows no data. ...
0
votes
1answer
26 views

How can I create a product with a single variation for a store?

I am having trouble with creating products for a commerce project with multiple sellers (each with their own store). The products these sellers are selling is a baseball card. When a user adds a new ...
0
votes
2answers
29 views

How to do automatic card authorization during checkout process?

I have a website that uses Drupal Commerce, we use Authorize.net for authorization and use AcceptJS as a plugin. When you put in the credit card information, it checks with Auth to make sure that you'...
0
votes
1answer
22 views

Commerce 2 checkout login pane conflict with registration form

I just encountered strange problem. I am using drupal 8 commerce 2 default "login or guest or register pane" When i try to login with existing user it validate registration required field. Please ...
0
votes
0answers
9 views

Configure Order Total Summery Format

I'm trying to configure the "Order Total Summery" format. My store has the following configuration: - Taxes are included in price: FALSE - Display taxes of this type inclusive in product prices: ...
0
votes
0answers
18 views

How do I include shipping cost in VAT calculation with Rules?

I have altered the order of the summary items in the summary cart, so that the shipping service is showing before the VAT line. Total amount excl. VAT and shipping 13 735 Shipping cost 160 ...
0
votes
0answers
16 views

How to show shipping service before VAT in summary?

Normally in carts the total amount incl VAT is the last line and VAT is the second last line. Or anyhow that is how I want my cart to look. But when I add a shipping service it appears after the VAT, ...