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

One-Off Products

I'm creating a store with Drupal 8 Commerce 2 to sell fabric remnants. Each remnant will have a Length, Shipping Weight, and Price. There will be only one of each remnant available for purchase. Once ...
0
votes
0answers
13 views

Sell products in pairs ( only 2, 4, 6 pieces so on)

We need to sell certain SKUs in pairs, not sure how to approach it in Commerce 2. So that shall be per SKU setting. There is say https://www.drupal.org/project/commerce_product_limits but it only sets ...
0
votes
1answer
20 views

default email for guest checkout

I am using the Commerce Kickstart 2.x demo. When the guest checkout option is selected, the default guest email demo+1614916499@commercekickstart.com. Is there a way to change what's displayed as ...
0
votes
0answers
3 views

How to add a field to an order that only the administrator can view/edit in the orders admin?

I am looking for help in reference to commerce 2, not commerce 1. The requirement is to add a field (select list) to the order admin area, not the customer order form. The administrator should be ...
0
votes
0answers
11 views

Rule selector broken

Is there any reason why the Commerce rule selector is broken? I tried clearing the cache, but that didn't work. This causes fatal errors on some pages. On the log, I get errors like the following one. ...
0
votes
0answers
10 views

How do shipping methods, shipment types, and package types work with each other? [closed]

Sadly the Commerce 2 documentation on shipping is blank and offers no guide on how to setup a store's shipping. Trying to setup products but not sure what is the best approach. Don't know what to ...
1
vote
0answers
15 views

systemAdminMenuBlockPage callback not respecting menu link permissions

I added a custom permission on "admin/commerce/config" to disable access for certain user roles. class RouteSubscriber extends RouteSubscriberBase { /** * {@inheritdoc} */ public ...
0
votes
1answer
14 views

Discount issue?

I am working on a big Drupal 7 commerce site and I have some issues with the commerce discount module on order discount. Both Drupal 7, commerce, commerce discount and rules is on newest stable ...
0
votes
1answer
43 views

Add drop down selection to shipping method

I need to add an additional drop down field when a particular shipping method is selected, on the order information page during checkout. I only found how to add additional plugin option when adding a ...
0
votes
0answers
20 views

Combine two Media fields in Product types and Product variation types

i'm drupal beginner, i install drupal 8 commerce 2, i create a media field in Product types and create another media field Product variation types also. when i create new product, i want to give user ...
-2
votes
0answers
23 views

Monetize content and add subscription plan on register

Need some help with commerce, payments and all of those things related. :) i am somehow comfortable with drupal, but i confess i never used the commerce module and now i have a client who wants to ...
0
votes
0answers
4 views

Adding Order Items to a Complete order and process the payment for newly added Items

I want to add more items to a order that is complete using the default workflow. Is it possible to change the state of the order again to draft and accept payment for the newly added items in drupal 8 ...
0
votes
2answers
33 views

How do I override an entity view controller?

I am trying to override the entity view controller for a commerce product view, so that I can redirect the user based on certain conditions. I am trying to do this through the RouteSubscriber::...
-1
votes
0answers
10 views

Stripe products dashboard / Commerce products

I have implemented stripe with commerce module on my website. I created several products in commerce shop. However, I would like to see how can I link my products to the products that I have created ...
0
votes
0answers
11 views

Channel island shipping cost

we are looking to charge a different rate for Channel Island, but for some reason I think we have set up the process wrongly. See here: https://www.screencast.com/t/AdwyRbzpc. I understand the JE and ...
0
votes
0answers
37 views

How to go back to the store in the product template?

In the product template, I can add the code below and display the store : {{ product.stores }} How to go up in the store to display the store fields. For example, how to display the currency of the ...
0
votes
0answers
7 views

update new variation price in cart

Drupal 8.9.6 - I have to update my products/variations prices for 2021, which I have done successfully using commerce_price_updater but it reflect new prices in cart only for those products which are ...
0
votes
1answer
37 views

How to display a message according to the country of the store?

On Drupal 8, I installed Drupal Commerce 2 I want to modify the TWIG file of the products to show "Made in France", if the store country is France and made in Belgium, if the store country ...
0
votes
0answers
25 views

How to create a shipment migration for each tracking number using join

I am migrating shipments from Drupal 7 to Drupal 9. We have orders that have multiple tracking numbers, so in my shipments migration, I would like to create a shipment for each tracking number that is ...
0
votes
1answer
57 views

Change page title

I've created a view to display products based on the taxonomy vocabulary Categories. I followed a few how tos and check for answers on drupal.org, here & other websites but none is working. I ...
1
vote
1answer
39 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
30 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 ...
-2
votes
1answer
51 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 ...
0
votes
0answers
15 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
26 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
23 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
26 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
8 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
22 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
16 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
34 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
95 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
74 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
1answer
23 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
22 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
56 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
28 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
24 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
29 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
26 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
25 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
25 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
25 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
11 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
12 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
30 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
31 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 ...

1
2 3 4 5
76