We’re rewarding the question askers & reputations are being recalculated! Read more.

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

Strong commerce order line items grouping

I need add to cart some Order Line Items grouped to don't allow the user to remove or change the amount of one of them without changing the other too. I can't do this with a unique Order Line Item ...
-3
votes
0answers
26 views

How do I implement this functionality? [closed]

I need the feature provided by drupal module https://www.drupal.org/project/commerce_webform. Unfortunately it isn't yet ported to Drupal 8 and I am not that much capable to do that. We have commerce ...
0
votes
0answers
25 views

Allow user to upload file for customisation of product [closed]

I'm doing a website which allows to buy custom objects. For this, I need that buyer upload a file on each product during add to cart or after in order to allow for using the supplied image. How to do ...
-1
votes
0answers
25 views

Fatal error: require_once(): Failed opening required - Will not display photos

I am not a 100% certain how this happened because some time has past since I did an upgrade, yet the upgrade could be the reason I am getting the following error: Fatal error: require_once(): ...
0
votes
0answers
15 views

Variation injection into product view

Problem Our requirement is a promotion slider on product canonicals that promotes similar products. We also have the stock module installed, and show a little banner that says "currently out of stock"...
0
votes
0answers
16 views

Access Denied when Sellers add new product

We created a store with Drupal 7 Commerce. Because we wanted to let specific users create new products on our store, a user role Seller was also created with the following permissions: Create, edit, ...
-1
votes
0answers
26 views

Checkout guest email

I'm just starting with the Drupal and I'm trying to setup online store with commerce 2 and Belgrade theme. At the checkout page when I try to checkout as a guest it automatically fill up the email ...
-3
votes
0answers
22 views

Did “Simulate checkout completion” link get lost on cart edit?

In D7, when editing a "cart" order, there was a link to "Simulate checkout completion". Did this feature get lost in the porting to D8?
0
votes
0answers
20 views

Add helper text to payment method form

I would like to add helper texts to the different options in the payment methods form, in Drupal Commerce, like this: /Radio button/ Payment method 1 Helper text option 1... /Radio button/ Payment ...
0
votes
0answers
13 views

Order date from order_entity in commerce-order--pdf?

I need an invoice of an order, so I use the print pdf module, but the date is missing. I have tried the following code from commerce-order--admin but it doesnt get any data. <h3 class="entity-...
0
votes
0answers
21 views

Global attribute in Drupal Commerce 2

Got a question. How to create a global attribute in Drupal Commerce 2 that will use the added value to existing variations. Or as an option, the choice in the variation of 2 or more variants of the ...
0
votes
0answers
16 views

How do I implement a booking solution with “blacklist” dates?

I need to create a simple restaurant table booking system in an existing Drupal Commerce solution. I need to be able to book up to 10 seats (just one sitting per day to start with). I have got this ...
0
votes
1answer
18 views

How do I render the page to add products into my custom module?

Here is my code <?php namespace Drupal\mymodule\Controller; use Drupal\Core\Form\FormBase; use Drupal\Core\Controller\ControllerBase; class HelloController extends ControllerBase { public ...
0
votes
1answer
24 views

Can not insert selected image from Media library in Commerce product [closed]

I have Drupal version 8.7.8 and Commerce 8.x-2.14. Can not 'insert selected' image from Media library in Commerce product. If I create, for test purposes a basis_page content type. Add the ...
-2
votes
0answers
18 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. what we want is to use ...
0
votes
0answers
15 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 ...
1
vote
2answers
100 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
20 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
35 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
9 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
16 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
16 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
26 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
10 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
18 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 ...
0
votes
0answers
13 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
29 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
23 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 ...
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
39 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
20 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
57 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
22 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
36 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
14 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
86 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
23 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
32 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
76 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
20 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)...