Questions tagged [commerce]

One of the modules that implements an eCommerce framework and ecosystem is the Drupal Commerce module.

-2
votes
0answers
14 views

Make a catalog with view and taxonomy [on hold]

How can I build a catalog type view with taxonomy terms to access to my products?
0
votes
0answers
5 views

Setting up Drupal commerce orders being sent to company erp system

I am new to Drupal and therefore bear with me. This might be a really simple question. Instead of using any of the payment functionality in drupal Commerce 2x i want the order to be sent to my ...
0
votes
0answers
9 views

Custom offsite payment module (redirection)

I've created a small module to add a custom payment method to my drupal commerce website, but I have a problem with the redirection to the offsite platform. Here is my payment method infos : ...
0
votes
0answers
6 views

How do I email the file?

I am trying to send files 'purchased' with commerce file as HTML mail. I've created a rule that loops over the line items (commerce-order:commerce-line-items). I would like to get access to the ...
1
vote
1answer
9 views

Handling anonymous orders in custom commerce module

Drupal: 8.7.2 Commerce: 2.13 I have a custom module set up that adds the following functionality to Commerce: It prevents the user from adding more than one item to their cart. If they try to add a ...
0
votes
0answers
7 views

How can I make volume (tier) discount across multiple products variants

I'm looking for a solution to make it possible to give the customer a volume discount if he buys product A or product B. I tried with the module "Commerce pricelist" https://www.drupal.org/project/...
0
votes
0answers
20 views

Receipt Email only shows Billing and Shipping data when an order is placed as an admin user [on hold]

I have triple checked all the User Permissions on admin/people/permissions. All checked permissions for under Commerce are checked with the exception of those that have the "Warning: Give to trusted ...
0
votes
0answers
9 views

How to mix preset amounts and a user entered amount in commerce

I am implementing donations functionality with Drupal commerce 2.x I have found a patch that allows for a direct checkout form (kind of "buy now" button) https://www.drupal.org/project/commerce/...
1
vote
1answer
20 views

Custom checkout pane for order comments not saving

I've created a custom checkout pane for commerce 2.x, Drupal version 8.7.x. I've added a textfield called field_order_notes on the order entity. The pane works, and I can run $this->order->set('...
0
votes
0answers
11 views

Commerce Order receipt email html stripped [closed]

I'm using Drupal 8.7.3 with Commerce 2. When the order process is completed, the receipt email is sent but html tags are stripped. The email has "content-type text/html; charset=UTF-8;". Key Value ...
-1
votes
1answer
39 views

Other twig syntax in templates

In some twig templates of the commerce modules, I can see the use of an alternate syntax: Ex. in commerce-cart-flyout-offcanvas-contents-items.html.twig : <% _.each(cart.order_items, function(...
0
votes
0answers
15 views

Altering Shipping/Billing address inline entity form

Now that Drupal 8 Commerce moved to Inline Entity Form approach. I am having trouble of altering Address for fields for the checkout... In the past I could do this: function ...
0
votes
1answer
23 views

How to change order currency in cart/checkout page?

I want to change the price of the order in the cart/checkout page. Let's say I have a product ABC with $100(USD) and I added that in cart. But after adding I want to change the currency to EUR and ...
1
vote
0answers
32 views

How can I round up price matrix percentage to two decimals?

I'm looking for a way to round the percentage from Drupal 8 Commerce Shipping Price Matrix module to cents in USD. Is this possible? I found this function in the commerce_shipping_price_matrix/src/ ...
0
votes
0answers
15 views

Error: Class 'Drupal\Component\Render\FormattableMarkup' not found in custome_module()

I have been working to insert a edit link for each row in a table for that... function my_sub() { $results = db_query("SELECT * FROM {my_form}"); $header = array(t('NAME'), t('EMAIL-ID'), t('...
0
votes
1answer
45 views

Capture amount on order state change

I would like to know if it is possible to capture payments by subscribing to order transition events. Example: Transaction mode: Authorize only On order placed - Capture some amount (application fee)...
0
votes
0answers
14 views

Displaying Field Collection Items of a Commerce Product in Twig

I'm trying to display field values within a field collection for a commerce product. In my product template file I'm simply outputting {{ product.field_components }} then using a separate field ...
0
votes
0answers
14 views

Reserve stock on order complete not working

I am working on Commerce 2.x and I am trying to reduce the stock value when someone adds an item in the cart. When I check the stock config there is an option to check the Reserve the stock on order ...
0
votes
1answer
13 views

Rules to clear commerce cart on adding new item of a different product type

I've several product type with corresponding product displays. The scenario is a case where there is only a product type per time on the cart. That is, you cannot have multiple product types at the ...
0
votes
0answers
9 views

Accessing submitted values in Drupal commerce checkout form alter

I have added a checkbox to the Drupal commerce checkout form using hook_form_alter. I have also added a submit handler to the form but when I try to use $form_state->getValues() in the submit ...
0
votes
1answer
6 views

How do you get Product Variation Type fields and display modes to show up when displaying Products in a View?

I've created a Product Variation Type for all my products, all of which have the following custom fields: Display Title, Subtitle, and Top Rated Product? (boolean checkbox): When setting up a View to ...
1
vote
0answers
12 views

Need to add SKU to order confirmation email - Commerce 2

I have been able to customize the order confirmation email twig file for a client to some degree, however when it comes to adding the SKU for each item ordered I cannot find a way to have it populate. ...
0
votes
0answers
24 views

Commerce Dunning and how to send notification to users with credit cards expiring soon

I am using Drupal Commerce with Commerce Card on File and the Commerce Recurring Framework to bill recurring payments. There is a desire to send email notifications to users stating their credit ...
0
votes
0answers
12 views

Ubercart 7x Migration to Commerce 8.x with Drush?

I've been experimenting with upgrading an Ubercart 7.x site to Commerce 8.x and I haven't had much luck so far. The migration process times out when using the migrate UI, so I've tried re-running the ...
0
votes
0answers
17 views

How to print contact email in the receipt email?

I've got a question regarding receipt emails. I saw the doc about customization of receipt emails espacially the available theme_hooks. I'll need to get the contact info (email) in the receipt email....
-2
votes
0answers
12 views

Can we show products from all stores?

I have 10 stores in Drupal commerce 2 site, and all have products of the same category. Can we show all the products in a single view, or on the front page?
0
votes
0answers
17 views

Commerce 2: Custom Checkout Pane Plugin

I'm fairly new to OOP and am trying to create a custom checkout pane. I need to collect some input from the buyer at this point. I have figured out how to add the questions to the Order Information ...
0
votes
1answer
25 views

Pay order only after it been placed and validated

I need to create a following workflow for the store checkout: The user adds a product(s) to a cart. The user goes to checkout. During checkout, the user can register or authenticate on site. This is ...
-3
votes
0answers
18 views

Commerce Bundles development and support [on hold]

I was wondering if there are any developers familiar with the Commerce Bundles module who would be interested in working towards a stable D8 release, as well as implementing some upgrades to the D7 ...
0
votes
1answer
40 views

“Add to Cart” button/from in template (form ID from Node ID)?

I'm working on a website made with D7 and the Commerce Module, with a "Products" view (for the Product content type) having this relationship field: (Products referenced by field_info_prodotto) ...
0
votes
0answers
6 views

Show widget of count product only on the one view mode of product

How to show widget of count product only on the one view mode of product? Example: Show on the full mode, but hide on the teaser mode.
0
votes
0answers
10 views

How to implement a price resolved Commerce 2 adjust the prices of items already in the cart?

I have a custom PriceResolverInterface to calculate discounts based on quantities. However, the returned, adjusted price only affects the item(s) currently being added to the cart and does not adjust ...
0
votes
0answers
20 views

Custom CSS for Entity Print Views

I need to print Cart form view in drupal 8 site. I have installed Entity Print & Entity Print Views. I can generate pdf successfully using tcpdf pdf file or debug version does not considering css. ...
0
votes
1answer
11 views

Add product - price and sku field missing

When I want to add a product, the field price and SKU are missing. Running on Drupal 8.7.1 on MAMP on macOS and PHP 7.1.23 Any idea?
0
votes
1answer
35 views

Drupal 8 get cart item programmatically

I need to create pdf of user's cart items with custom header & footer. I decide to create custom module in which I can get cart items details. But I have no idea about how to do this? I have tried:...
0
votes
1answer
25 views

Commerce Address Book – need to reuse customer profile without address

In addition to the default shipping and billing addresses I have added a customer profile in Drupal Commerce, where the customer can add additional info, like email for invoices, special marking on ...
0
votes
0answers
29 views

Doing a checkout via API?

I am trying to figure out if it is possible to do a checkout via API for Drupal commerce 2. In Drupal 7 there was a module Commerce Services Resources. I found some posts, but they don't answer my ...
0
votes
0answers
25 views

Send shipment tracking number to customer

Drupal commerce 2.x Seems all shipment tracking number modules are for drupal 7. How can I enter and send a tracking number to the customer when order is marked as fulfilled in the commerce ...
0
votes
0answers
26 views

How can I configure half dollar amounts to be displayed as $n.50 while whole dollar amounts display as $n?

In drupal commerce, I have a product variation type with a price. In the 'manage display' area, in the 'format' section I have 'strip trailing zeroes' selected. My prices are all either whole dollar ...
0
votes
0answers
20 views

I accidentally deleted basic_cart_vat, there's a way to a restore this field?

I accidentally deleted the field basic_cart_vat from Orders, now I'm receiving an error because I don't have the field. InvalidArgumentException: Field basic_cart_vat is unknown. in Drupal\Core\...
0
votes
1answer
16 views

Why are the terms filled when they are actually empty?

Below is the JSON output of a product I am having the issue with: { "StkGrupKodu1" : "10090", "StokAdi" : "7 Parça Kombine Anahtar Takımı", "StkGrupKodu2" : "", "...
0
votes
0answers
12 views

How can I manually complete an order in admin?

I have a drupal 8 / commerce 2 shop with online payment. Whenever a payment is made, I call the event 'commerce_order.place.pre_transition' to do stuff (ordernumber, ...) Now, the online payment also ...
0
votes
0answers
11 views

Tax rate depending on customer country

I want to specify a zero taxrate for customers in EU not Belgium. (The zero tax rate exists for Belgium) I found a way to add a taxresolver on product type. That works fine.... Should I create ...
0
votes
2answers
31 views

How do I load a field of a product in a custom module?

A customer want to have the possibility to use different discounts on products. I'm working with the price resolver and I'll give the possibility to manage different discounts with taxonomy terms. I ...
0
votes
0answers
14 views

Drupal 7 Entity registration / commerce add to cart wait list

I'm using Drupal 7 with Entity Registration, Commerce and Registration Commerce to connect those two modules. I have an issue concerning registration : if a reservation is canceled, the one on wait ...
0
votes
0answers
15 views

Is there a Drupal Commerce integration with Facebook/Instagram Shopping?

Facebook catalog allows selling through their catalog. They have integrations for several platforms like Big Commerce and Shopify. The basic integration without commerce requires manual shipping. Big ...
0
votes
1answer
84 views

Taxonomy Term Field of a Reference Field in a Product not available in Data Selector for CheckOut Rules

I installed Drupal Commerce Kickstart 2 with drupal version 7.54 and drupal commerce Version: 7.x-1.14. My problem is I want to send email to the store owner every time an order is completed. So in ...
0
votes
0answers
14 views

Filter out refunded orders / payments in Views with Drupal Comerce 2

I'm running Drupal Commerce 8.x-2.13 with Commerce Stripe 8.x-1.0-rc2 as payment gateway on Drupal 8.6.15. I have several views where I list all the order items for each product with some fields from ...
0
votes
0answers
9 views

Can't get labels to print in Commerce_POS

I'm running a new install of drupal with commerce & commerce_pos. I have a few test products with variations. I also have jquery installed with composer. My problem is, when I try to print labels, ...
-2
votes
1answer
26 views

Sell a unique product with

I would like to sell a single product (a CD) on a Drupal 8 site and I'm looking for a simple way to pay. I guess in this case, it's not worth using the Commerce or Ubercart module. In fact, I intend ...