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
2 answers
31 views

Make views output more dynamic with knockout.js or other similar framework?

I am currently experimenting with knockout.js so i can make views output more dynamic. I know React and angular among other newer frameworks are recommended but i do not want to create single page ...
user avatar
0 votes
1 answer
11 views

Payment method that can only be selected in admin UI

How can I make a payment method only available to select when an admin is manually entering an order in the admin UI, and not visible to customers when checking out normally? Restricting the payment ...
user avatar
  • 67
-2 votes
0 answers
16 views

How to cleanup field_revision_commerce_line_items table?

Table field_revision_commerce_line_items (Drupal Commerce) has hundreds of MB on a few commerce sites I maintain and it is starting to cause problems. Backups are unnecessarily getting larger, ...
user avatar
0 votes
0 answers
18 views

CommercePrice input array is invalid for destination

I have a problem trying to migrate from D7-D9.I'm migrating the products and the field that gives the error is the field_cost. "upgrade_commerce1_product_variation_product:field_cost: ...
user avatar
0 votes
0 answers
6 views

Drupal commerce / Commerce Pricelist with Prices per Store. How to use the default currency from the store in the variation type?

We have Drupal Commerce 2 stores using commerce pricelist for store-specific prices. Each store represents a country. Prices are working fine so far, but static in EUR. But how can we provide the ...
user avatar
0 votes
1 answer
15 views

Fee amount is incorrect

I have created a fee type. I set up a rule according to the steps on the module's front page. I have it set to add $5.50 to the order. However, it is only adding $0.06 to the order instead. Here is my ...
user avatar
1 vote
0 answers
13 views

No shipping info is collected

Update: Well, now it is showing, but we're still running into another error. Will post in a new thread. I've got our store set up with products that are all shippable. There is one Product variation ...
user avatar
-2 votes
0 answers
28 views

Can you post step-by-step installation instructions?

On Drupal Commerce's project home page it states that *Works with Drupal: ^9.2 || ^10. Trying to get it installed for 9.x led me to this thread where the fix was to update the minimum version ...
user avatar
  • 3,770
0 votes
1 answer
20 views

Allow users to add extra products/services in the cart

The idea is to allow users to choose supplemental products right in cart (for example, insurance or assembly). Those are in no way related to main product type items. I know there is the Commerce ...
user avatar
2 votes
0 answers
36 views

Variations created with a queue worker sluggishly slow

The site my team is currently building is meant to import a list of all available trips for a travel booking agency. The method we settled for (for now) can be summarized as such : A daily cron job ...
user avatar
-2 votes
0 answers
17 views

Using EJS value in twig function

I'm using the Flyout module for my drupal commerce. I'd like to use this syntaxe <%- orderItem.purchased_entity.product_id %> inside my twig function {{ getMediaUrl(THE_ID) }} How can I mix both ...
user avatar
  • 51
-2 votes
0 answers
15 views

Drupal 9 "Add to cart" theming hide color attribute from custom display view

I need little assists, I am following Commerce 2 "Add to cart theming" Link And I cannot hide my custom display view the "color" attribute, what's wrong with it? {# /** * @file * ...
user avatar
  • 1
1 vote
0 answers
33 views

Session/cookie not working for some data on certain conditions

I'm trying to simply redirect to a certain page after is visited. The scenario : the user click on a link. If the user a certain data (a store, for drupal commerce), he can go to my node. If not, ...
user avatar
  • 51
1 vote
0 answers
22 views

Commerce product vatiation attibutes as individual selections

I hope this is easy, something I haven't grasped yet learning drupal and commerce. I have a product, "Vinyl Lettering", and my variations there are three attributes, Height, Width and Rows. ...
user avatar
0 votes
0 answers
9 views

Credit card month & year automatic migration

I am using Braintree with Drupal 8 and need for the user to be able to go from the 'Month' to the 'Year' field automatically when typing without having to manually place their cursor in the 'Year' ...
user avatar
0 votes
0 answers
13 views

Adjust total price in commerce checkout

I have a store setup with 2 products. Public and private tours. Public tours are 10 for each unit. Private tours on the other hand are only meant to collect a deposit. I need the total to be $50 no ...
user avatar
  • 407
0 votes
0 answers
11 views

Location of product attributes

Probably field_data_field_attributes holds attributes data in SQL. How can I relate this data with a specific product?
user avatar
  • 1
0 votes
0 answers
19 views

How do I get coupons usage in a view

There is no field for the number of times the coupon was used in Add fields when creating a new view. while other related fields such as Usage limit are available, according to database check: The ...
user avatar
0 votes
1 answer
19 views

How can Commerce Stores be imported with Feeds?

I'm trying to set up a feed to import Commerce store entities. I installed the Feeds module and the Commerce Feeds module. I then created a CSV file feed with the following mappings: Name: The store ...
user avatar
0 votes
0 answers
21 views

Custom payment module form problem

I'm a bit new to drupal and i'm trying to create custom payment gateway module and stuck with a problem. When creating OnSitePaymentGateway, everything is ok and i can edit checkout form with ...
user avatar
0 votes
0 answers
14 views

Non-admins cannot see commerce entity bundle labels

I've got a drupal commerce site with two types of user roles -- admins and merchants. Merchants the ability to administer products for their stores, and so they have the Access the products overview ...
user avatar
  • 1,781
0 votes
0 answers
11 views

Results from "end date" in date range excluded from Views results [duplicate]

I have a view of Commerce orders, and I need to add an exposed filter to filter the orders by date range. I have added two exposed filters for Order: Placed. One filter is "greater than or equal ...
user avatar
  • 1,234
0 votes
1 answer
43 views

How to refresh and reload (with ajax?) order checkout panes and order calculation independent from commerce cart refresh (e.g. billing address change)

I have following problem: During checkout, my customer has to fill in his billing address (at least at the first time) to calculate VAT rate and gross price. Further calculation is done via an order ...
user avatar
  • 129
0 votes
0 answers
31 views

What event is triggered when adding an order line item manually from orders admin page?

I cant seem to find the correct event that is called when an admin manually creates an order item by clicking the 'Add new order item' button at: /admin/commerce/orders/430/edit I believe it should be ...
user avatar
  • 67
1 vote
0 answers
47 views

CartEvents::CART_ENTITY_ADD vs OrderEvents::ORDER_ITEM_CREATE

What is the actual difference between these two events? Is it simply that OrderEvents::ORDER_ITEM_CREATE is triggered for order items added in any way (like both from front end cart and from back end ...
user avatar
  • 67
0 votes
1 answer
28 views

How do I create sell product samples on the fly?

Our site sells fabric by the roll, not by the yard. Each roll is a unique one-off. Due to inconsistencies with color, we offer samples. It's unfeasible create sample Products for each roll Product we ...
user avatar
  • 11
0 votes
0 answers
19 views

How do I selective limit Product Attribute values when using them as an Exposed Filter in a Product list View?

I'm using the Commerce module 2.x. What I have: Product Category taxonomy List of product categories Product Color product attribute List of product colors It has a Product Category entity reference ...
user avatar
  • 11
0 votes
1 answer
27 views

How can I alter an order item field depending on inline entity form (IEF) validation?

I extended my order item type with an additional boolean field. Before the order item gets submitted via "order edit form" (/admin/commerce/orders/{order_id}/edit), it should be validated ...
user avatar
  • 129
1 vote
0 answers
23 views

How can we hide shipping information section if a user selects pickup shipping method?

Using Commerce 2, we have created a flat rate shipping method for Local Pickups. Since the order is not shipped for local pickups, we would like to avoid users have to enter their shipping ...
user avatar
0 votes
2 answers
40 views

Checkout Flow Submit Pane Form Checkbox to Boolean Field

I create a Checkbox in the Checkout Flow, CheckoutPane. How i can send the Value of the Checkbox to a Entity in the User-Profile or the Order. Description: I need a Checkbox in the CheckoutPane, when ...
user avatar
0 votes
1 answer
37 views

Best way to handle products with hundreds of different properties

I've started building a large Drupal Commerce shop for my customer. The customer has about 30000 products: clothes, electronics, decor, candies, etc. That means that in the shop there might be ...
user avatar
0 votes
1 answer
51 views

I can't see custom action

I am trying to create a custom action for bulk operations on commerce orders. I am using the following code. mymodule/src/Plugin/Action/DeleteOrderAndApps.php namespace Drupal\mymodule\Plugin\Action; ...
user avatar
  • 907
0 votes
1 answer
25 views

How do I print a view field content from Order field in the order receipt email?

I have a view field on the Order type that displays content from a webform submission that is associated with the order via the Commerce Webform Order module. This view field successfully displays ...
user avatar
  • 1,234
0 votes
1 answer
18 views

Modify cart view to allow direct quantity updates

In want to modify the cart view so that when costumer change quantity of item in cart, it will update cart and total price automatically and immediately through AJAX (instead of when pressing button ...
user avatar
0 votes
1 answer
19 views

If content not published, hide also for admin

I have a entity browser which list my produts. The products are shown only if they are published. But for some reason, if the product was added before the filtered "publish" was set, the ...
user avatar
  • 51
1 vote
0 answers
103 views

Reload commerce_cart_form view

I'm coupling Drupal commerce, DC add to cart ajax and commerce flyout modules. This is my view configuration : On my /cart page, I have the initial form (the view) to change the quantities, delete ...
user avatar
  • 51
-3 votes
1 answer
41 views

How do I add an exposed form to search products?

I installed the Search API module and followed the documentation to set up an index and a search box using views and facets. It doesn't show an exposed form to search, even though there is a view and ...
user avatar
0 votes
0 answers
30 views

Looping through media item field in commerce product template

I am currently building a commerce shop. Usually, I use embed, entity browser and dropzone js, to make a product images collection available to shop administrators. This time, I used a Drupal media ...
user avatar
0 votes
0 answers
48 views

Off-site payment gateway success/failure return is caught by a differnt custom module

I have created an offsite (redirect form) payment gateway Drupal 8 module for Opayo.co.uk. following drupal commerce documentation. Issue: My custom off-site payment gateway module based on form ...
user avatar
1 vote
0 answers
15 views

Commerce - empty cart of EXISTING items when adding new item of specific order item type

When an item of a specific order item type is added to the cart, I want to remove any existing items from the cart, but keep the item that has just been added. I presume CartEvents::CART_ENTITY_ADD is ...
user avatar
  • 67
-2 votes
1 answer
24 views

How do I capture bank account name, number, branch code, etc. in checkout for offline processing?

The Commerce Bank Transfer module claims this is part of Commerce 2.x, but I am not sure how to accomplish it. Any suggestions would be appreciated.
user avatar
  • 2,474
0 votes
1 answer
19 views

Default product URL for a pager

Does anyone know how to get around the view error about the default product that doesn't have a URL? The Commerce module has a default product and the view pager works without a More link, but it ...
user avatar
1 vote
0 answers
14 views

How do I decide where to put these fields in a Commerce License architecture?

I'm creating a License Type using Commerce License. It will allow a user that owns a group to purchase seats on that group for other users. Therefore, at purchase time, I need to associate a group ...
user avatar
  • 111
1 vote
1 answer
72 views

Drupal Commerce Product Variation SQL Injection Vulnerability

A PCI scan on my site is saying that there is a SQL Injection vulnerability. But where it seems to be indicating it is on pretty basic Commerce functionality. When visiting a product variation page ...
user avatar
0 votes
1 answer
58 views

Change product price title in form

How can I access the label of the product price field to change it for example to "amount" instead of "price"? The html for the field is: <div class="js-form-item form-item ...
user avatar
  • 733
0 votes
0 answers
41 views

Set minimum commerce product price

I want to set a minimum price that can be entered in the product add/edit form of Commerce. If users enter a lower price, an error should be displayed, when they click on the save button. I am using ...
user avatar
  • 733
1 vote
1 answer
88 views

Commerce order delete and order item delete events

Quick question I hope someone can easily answer. There are two order events for order delete listed here: https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/order/src/Event/OrderEvents....
user avatar
  • 67
0 votes
0 answers
19 views

How to add multiple items to the cart in one go - whilst including "order item type" with extra fields - Drupal9

I had this working using multiple AJAX cart submissions in D7 - using AJAX_Cart and https://www.drupal.org/project/commerce_add_to_cart_extras I'm now trying to find an elegant way to achieve the ...
user avatar
0 votes
1 answer
22 views

Event called when an order line is removed

In Drupal Commerce what event do i need to subscribe to when an order line is removed? This questions talks about an order being removed/deleted: Which events are invoked when an order is removed or ...
user avatar
  • 67
2 votes
0 answers
25 views

Error while trying to create a local task for user order history

I am attempting to add a local task here (/admin/commerce/orders/{order#}). This local task should contain a view that takes the userid from the current order and displays that users order history. I ...
user avatar

1
2 3 4 5
77