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
4 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
4 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
0answers
4 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
11 views

How to display store fields from the product template?

I have a Drupal 8.7 site and the Drupal Commerce 2.14 module In the template of my store to display the field field_professionnel_cgv I use this code TWIG : {{ store.field_professionnel_cgv }} How ...
0
votes
1answer
23 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
17 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
15 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
21 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
17 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 ...
-1
votes
1answer
17 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
30 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
11 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
votes
0answers
6 views

Is it possible to display the curent cart quantity of a product on its add to cart button?

Is it possible to display the current cart quantity of a product on its add to cart button? An example would be the below:
1
vote
1answer
52 views
+50

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

“Views Contextual Filters OR” only works for logged in users [on hold]

I'm building a Drupal 8 commerce page and have a view to show content related to taxonomy terms of multiple vocabularies. Unfortunately there's no contextual filter "has taxonomy term id" like for ...
0
votes
1answer
20 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
30 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
37 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
48 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 ...
-1
votes
0answers
15 views

Theme suggestion for commerce-cart-form input--submit buttons [duplicate]

I have a Drupal Commerce cart view (overview of the cart). In the form 3 buttons are rendered. delete-order-item button update list button checkout button I want to create 3 specific theme ...
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
18 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
42 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
22 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
23 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
27 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
0answers
16 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
8 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
13 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, ...
0
votes
1answer
26 views

Only allow 1 discount using commerce_discount

I am having trouble finding out how to only allow 1 discount per order. eg. a specific user role allows 15% discount on their order. We also have another discount set up that applies a further 15% on ...
0
votes
0answers
18 views

How can I get the address components from Commerce store entity?

I have an address field in a form I'm building with the Form API. I need to pull the address components from the Store's instance so I can set them in my form. I can pull other fields from from the ...
0
votes
0answers
17 views

Allow Order Item Type field to display on some products, but hidden on others?

I have two types of products on my website: Shippable Products and Non-Shippable Products. I have several Shipping Products set up. One of those Shippable Products needs a custom field to collect a ...
0
votes
0answers
63 views

Webform as checkout pane

We want to put a webform in a Commerce checkout pane. Webform allows to return a render array, as described in How to embed a Webform? $output['your_form_id'] = [ '#type' => 'webform', '#...
1
vote
1answer
78 views

How can I load a Store by user ID?

I am building a multi-seller commerce site, where a user can register and sell their product. I need to display a menu link if the user is anonymous to "become a seller", where they are directed to ...
0
votes
1answer
34 views

How do I include data from the order item type fields in the order receipt email?

I have created an "Event Registration" product type and order item type. In the order item type, I added fields for the registrant's name and job title. How can I print the submitted values for those ...
0
votes
1answer
33 views

Unable to add Quantity in Stock in Drupal Commerce 8 using Commerce Stock Module

I have enabled Commerce Stock Modules and its submodules 1. Commerce Stock API 2. Commerce Stock Field 3. Commerce Stock Local Storage 4. Commerce Stock UI Created a Product Type ABC and added a ...
0
votes
1answer
12 views

Views Add Link to product field missing

I have a search results View which list the (Commerce) products. I show the title and the image fields. I those fields to wrap in a custom <a> link tag. When I am adding fields, I miss the 'Link ...
2
votes
2answers
101 views

Allow some products to be sold only in bundles (groups) with some other products [closed]

I'm making a commerce site with Drupal 8 and Drupal commerce and I have a not so common request. Some of the products should be available to buy only in groups (bundles) with some other products. E.g. ...
0
votes
0answers
11 views

How do I retrieve tagged nodes as well as untagged?

I have a View, "Product Reviews", that retrieves all Product Review nodes (custom content type) that are tagged to the Product you're currently viewing. So, if you're on the page for Product XYZ, this ...
0
votes
1answer
26 views

Following Drupal 8 Commerce custom offer tutorial, but getting “name already in use” error

I am following the tutorial for creating a custom offer at the official Drupal 8 Commerce documentation. But I'm getting an error that I pasted below when I click on any of the conditions, and none ...
0
votes
0answers
22 views

Creating block of category 'commerce' to show shopping cart contents

I am new to drupal, and am trying to create a commerce page. I have created a basic page, and I am now trying to add a block which lists the products in the shopping cart. I am using an existing ...
0
votes
0answers
22 views

PHP Incomplete class Object Error on creating a custom Checkout flow Plugin in Drupal 8

I have created the custom checkout flow plugin in drupal 8. And added the required steps in it as per the the commerce2 documentation. See the code below. <?php namespace Drupal\commerce_custom\...
0
votes
0answers
8 views

How to change the product title shown on Commerce Registration pane on checkout

My question is linked to Commerce Registration during the checkout in the page where the user adds his information. Commerce Registration shows the product title instead of the product display title ...
0
votes
1answer
14 views

Hooking into page specific instance of checkout flow form

I'm working on manipulating the buttons used for the checkout flow of using D8 Commerce 2. I'm using MYMODULE_form_commerce_checkout_flow_multistep_default_alter but its changing both the form buttons ...
0
votes
1answer
93 views

Print custom product variation field in order email confirmation

Added custom field ('field_secretkey') under Commerce - Product variation (admin/commerce/config/product-variation-types). I am able to get this value in Orders view by adding the "Product variation"...
0
votes
0answers
23 views

Get price value in Webform submission

I'm trying to create a webform that has an entity selection element linked to an entity reference view that has a selection of products from the commerce module listed. So far this has all been ...
0
votes
1answer
50 views

Checking for string in variable fails in twig

I'm working on a twig template for use with a commerce product. Each product has a term applied to it like "Green Ball", "Yellow Ball", "Red Block", and "Purple Block". I'm trying to take the ...
0
votes
0answers
16 views

Commerce 2 onReturn order must stay at it's current state

I'm working on a new type of payment gateway with these steps: 1. The client is redirected to the payment gateway. 2. Client returns from payment gateway with payment information BUT THE PAYMENT CAN ...