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
1
vote
1answer
30 views

Commerce framework: How on earth do I offer recurring license subscriptions? [closed]

I'm new to the Commerce framework. My goal is to sell licenses to users (via the commerce_license module). Purchasing a license should grant the user a particular role for the duration of the license. ...
0
votes
1answer
27 views

How can I add Commerce Wishlist share mail template variables from form?

I am trying to add 2 additional form fields to the Wishlist Share form where the user input will be rendered in the email. I have been able to add the fields to the form, but I am not sure how to add ...
-1
votes
0answers
30 views

Headless ecommerce system with Drupal commerce [closed]

I'm considering using Drupal + Drupal commerce for an headless ecommerce. Is it possible to to consume all the Drupal Commerce modules such as order, checkout, products via Restful API only, without ...
-2
votes
1answer
46 views

Why did my event subscriber suddenly stop working and how can I debug it? [closed]

I've been working on a module in which I'm subscribing to commerce_order.place.post_transition event. However, it suddenly stopped working. Any ideas how I can debug it? I tried Xdebug but it won't ...
-3
votes
0answers
26 views

The “Array” plugin does not exist after saving the order type form in Commerce

After saving any order type, the following error shows: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "Array" plugin does not exist. Valid plugin IDs for Drupal\...
-1
votes
0answers
12 views

Move Paypal pay button to another block [closed]

Is it quite simple to move the Paypal pay buttons to another block? Can someone let me know if this is possible? I checked on the Cart form page, but I could not find the query/variable that shows ...
0
votes
0answers
14 views

Commerce Payment method with custom fields

I am trying to create simple payment method with some text-fields the customer must fill out. Spend a lot of hours on this and can not figure it out. Right now I am trying to make a custom ...
1
vote
0answers
23 views

Flag commerce product variation breaks page

I am building a shop on Drupal 9 ,Commerce 2, and want to implement a "my favorite products"-bookmark, so that a user can bookmark products and save them for later. So, I installed flag ...
1
vote
0answers
21 views

How can I change the state of an order in Commerce? [duplicate]

I can't find a way to change manually the state of an order in Drupal Commerce 2, like it used to be in Drupal 7. Any ideas about how to do it?
0
votes
1answer
21 views

How do I hook the stock status message to the product page?

I have a Commerce Demo site that uses the off canvas flyout cart and I am using the Commerce Simple Stock module to stop items being sold if they are out of stock. The module changes the stock number ...
0
votes
1answer
7 views

Altering commerce invoice mails fails

I'm altering different emails from my hook_mail_alter(&$message) function. But for some reason altering the email sent by commerce invoice module is not working. I'm trying to do it like: switch($...
0
votes
0answers
21 views

Make Paypal checkout wait for checkbox state

I wrote a small module to display an "agree-to-the-terms"-checkbox in Drupal Commerce checkout pane, following the documentation HERE and tweaked it to my needs. My PHP looks like this: <?...
0
votes
0answers
14 views

Admin URL path in commerce shipping view?

I am setting up a Shop with Drupal Commerce 2 currently. I installed the Commerce Shipping Module and customized everything to my needs. The only thing I wonder about is, that the URL for the default ...
1
vote
0answers
24 views

Unable to fix my site after Commerce Promotion was enabled (no Commerce Cart enabled)

I installed the sub module Commerce Promotion and my Drupal 9 site crashed with the following message, plus debugging code: The website encountered an unexpected error. Please try again later. Error: ...
0
votes
0answers
15 views

Commerce Marketplace Missing Roles and Buttons

My Install Drupal 7.77 Drupal Commerce 7.x-1.15 Commerce Marketplace 7.x-1.0-beta4 (all dependent modules are enabled) I have reviewed: Documentation mentions a Marketplace Owner Role https://git....
0
votes
0answers
47 views

Drupal Commerce 2 - Custom Shipping Method / Module

I am attempting to write a custom shipping method module for our site since we use an internal service to determine shipping. I created a custom module that seems to be working with Commerce Shipping ...
4
votes
2answers
55 views

How do “Order Types” and “Order Item Types” work?

I'm using the Commerce framework. I'm trying to understand exactly how "Order Types" and "Order Item Types" work. (I've consulted the docs; they don't really address this question.)...
0
votes
0answers
11 views

How can we manually enter a payment using their credit card information for a customer in Commerce?

We have customers that are not web savvy and would like us to enter their order for them on the website. Currently, the admin masquerades as the user, creates the order as them, checks out as them, ...
1
vote
1answer
18 views

Include initial price in commerce-order-receipt.html.twig

I have drupal 8 and commerce installed. The receipt email that is sent to the customers includes the final price of the product (with the promotion integrated). Is it possible to print the price of ...
0
votes
0answers
54 views

Slider doesn't work properly

I am testing with the SShop theme. The sliders I have added are not shown properly. All the pictures have the same format: 1600x800. Home >> Administration >> Reports >> Recent log ...
0
votes
0answers
25 views

I am hitting 150lb per package limit on UPS with Commerce Shipping on D8

I have a project that needs to get quotes (via UPS) of 4 50lb packages. I'm hitting the 150lb per "package" limit/error. Are there any solutions for changing the shipping request to UPS be ...
0
votes
0answers
23 views

Recurring order with multiple items?

I'm using Drupal Commerce with the Recurring module for subscriptions. Now when I create initial order with multiple recurring cart items for each recurring item separate recurring order is created. ...
0
votes
0answers
28 views

How do entity reference fields that reference the same entity avoid an endless chain of references?

We are using an multi-valued entity reference that references entities from the same Entity type. For example We have a Product Variation Type with an entity reference field on it, which references ...
0
votes
0answers
24 views

Issues with tax

I have enabled Commerce Tax. Under Home > Administration > Commerce > Configuration > Tax I selected 'European Union VAT' and enabled 'Display taxes of this type inclusive in product ...
0
votes
1answer
20 views

Promotions not translated on cart and checkout page? [closed]

I have commerce site in 2 languages: English (default) and German. I enabled translation of promotions so when I go to promotions admin page ( /admin/commerce/promotions ) for each promotion there is ...
-1
votes
1answer
24 views

How can I require customers to fill out a custom field when purchasing certain products?

I'm using the Commerce framework. I use the commerce_license and commerce_recurring modules to sell subscription memberships to users. I'm trying to implement gift memberships, so that User A (the &...
0
votes
1answer
24 views

Update customer billing address within custom pane

I am writing a custom CheckoutPaneBase within Commerce 2 that incorporates shipping and billing information. My goal would be to update the customer's billing address, that is stored as billing ...
0
votes
1answer
23 views

How to get a field value and multiply it to get price in a PriceResolver

Getting my feet wet with price resolvers, and I have figured out how to set a new price for all entities that have field_discount_percentage. I am then getting the price and multiplying it for the ...
1
vote
0answers
10 views

Automatically select most expensive shipping rate

In my Drupal 8 Commerce site I have two main product types that each have their own flat rate shipping cost. When both products are combined in the cart, Commerce will let the user pick the method. ...
1
vote
1answer
10 views

How do I determine the values to use in the payload for the add to cart method in the Commerce API

The documentation for the Commerce API gives the example payload below for adding items to a cart. How do I find the type and ID values for the product variants in my store configuration? { "...
0
votes
0answers
11 views

Variants should not have a default selection

I have products with multiple variants on the product page I would like the select field to not select the first item per default but instead show "Select variant" as the first option in ...
0
votes
0answers
28 views

Dynamic Radio options return An illegal choice has been detected. Please contact the site administrator

I am using Drupal Commerce 2 and have created a CheckoutPaneBase for shipping methods that we get from an internal service. I am not using Ajax and when the user adds their shipping address, they go ...
0
votes
0answers
26 views

Cart API doesn't fire the “update cart” event

Following this documentation I have created a custom event subscriber for add, update and remove items from cart. It works good and events are fired in every case you add,update or remove items from ...
0
votes
2answers
41 views

Display price on Views for product variation

I'm confused, how to display on Views just one price for product with variations? I have product with 2 variation, and both prices are displayed, like: Price: 1-Price for 1-Variation-Product , Price: ...
0
votes
1answer
32 views

Unable to edit checkout flow settings

When attempting to configure Checkout Flow instances (eg, /admin/commerce/config/checkout-flows/manage/default) clicking on the 'Settings' (cog) icon for any of the panes generates an 'AssertionError' ...
0
votes
1answer
58 views

How do I get product variations in a preprocess function?

I'm trying to do something like this. function clientname_preprocess_commerce_product(&$variables) { $product = $variables['elements']['#commerce_product']; // Get the product variations and ...
0
votes
1answer
26 views

How can I write an if else statement in Twig based on commerce stock quantity?

Building a D8 Commerce site and trying to hide the price if the product is out of stock. I can access the stock value with this: {{ product.variation_field_stock_level.0 }} I've tried this: {% if ...
0
votes
0answers
20 views

Is there a way to allow administrator users to enter a credit card payment?

If we: Go to COMMERCE->ORDERS->CREATE_NEW_ORDER Create a new order by filling in customer and product information Save the order Then go to the PAYMENTS tab and click ADD PAYMENT All we get is ...
1
vote
0answers
52 views

Why doesn't my checkout flow work?

I am working on a site that integrates with our company's ordering and payment system. I have a flow I need to create that, after the customer clicks the checkout button, it takes them to a login/...
1
vote
1answer
23 views

Condition in variation product template is not triggered correctly (ajax caching ?)

I have a commerce project with a specific product type using an attribute to generate variation. Variation product has two specific fields that I want to hide switch attribute. I implemented ...
0
votes
1answer
26 views

Sales Tax Exemption for an Authorized User?

I have my Drupal Commerce store set up to apply my state sales tax on appropriate purchases. I also have an authorized user who has a state-approved sales tax exemption. I'm trying to configure my tax ...
0
votes
0answers
37 views

Commerce Number Pattern

My system environment: OS - Windows 10 64-bit Local Server Stack - WampServer Drupal 8.9.8 Theme Droopler Module Commerce - installed using Composer and enabled by Drush The Status Report (screen ...
1
vote
2answers
118 views

LogicException: The database connection is not serializable - when I try to open any “gear” on checkout flow page?

So I'm on Commerce -> Configuration -> Orders -> Checkout flows. I'm editing a flow (it's the same with any of them), so i.e. I'm at page: /admin/commerce/config/checkout-flows/manage/...
0
votes
0answers
26 views

Problem with CCAvenue Module - Order not generated after successful transaction

I am using Drupal 8 module of CCAvenue. For some reason I am not able to get it work, I have used both the modes - Test and Live. Actually the issue is when I place an order and click on checkout page ...
1
vote
1answer
30 views

How do I change the original language of a product type?

On a multilingual site with commerce project I've created a product type while having one language selected as default but now I want to switch it to a different one. On /admin/commerce/config/product-...
0
votes
1answer
28 views

Is checking the value of $order->status sufficient to understand when an order has been completed?

If I want to use this hook in order to execute a code when the order is complete. function hook_commerce_order_update($order) { if ($order->status == 'completed') { // ... } } Is this ...
0
votes
1answer
30 views

Access orders with own products

In my store, i am allowing customers to create products like Courses using Drupal 7 Commerce module, Is there a way using views or whatever method to enable the sellers on my site to see orders placed ...
0
votes
1answer
35 views

What is the difference between the “complete” and “ checkout complete” order statuses?

I am using the Drupal 7 Commerce module. I would like to execute a special code when the payment of the order is completed. What is the difference between checkout complete and complete? I googled and ...
1
vote
1answer
39 views

With Commerce Product taxonomy term view, is there a way to have page title set to the translated term title?

The only way to have the taxonomy term name in the title of a taxonomy term Commerce Products view page I've found so far is the example view in the estore theme (I still don't get how tid which ...
1
vote
0answers
45 views

How to display the rendered entity of a store in the purchase funnel?

I created a link that displays the "Terms and Conditions" of the store to which the shopping cart relates in a modal window. This link a page in a modal window. I want to replace the page ...

1
2 3 4 5
75