Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drupal-commerce]

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

-2
votes
0answers
22 views

jQuery vulnerability issue [on hold]

I am using jQquery version 2.2.4 in my drupal site but I got vulnerability issue with that jQuery version. I tried to upgrade with 3.1 but it break the site. I got 2 vulnerability issue with jQuery@...
0
votes
0answers
10 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
17 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
29 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/ ...
-1
votes
0answers
10 views

Can't able to add Drupal 8 Commerce PayPal Checkout details [closed]

I'm trying to add paypal module in drupal 8 commerce functionality. And i downloaded paypal 8.x-1.0-beta4 version then installed and enabled. After that i trying to add paypal checkout payment gateway ...
0
votes
0answers
13 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
43 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
13 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
13 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
12 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
11 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
23 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
11 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
11 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
16 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
17 views

Commerce Bundles development and support

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
39 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
9 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
19 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
23 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
24 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
30 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
12 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
81 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
25 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 ...
2
votes
1answer
60 views

Is it compatible with PHP 7.2?

We have a Drupal 7 site running Drupal Commerce. Our host has now informed us that they will be updating PHP from 5.6.3 to PHP 7.2. Is Drupal Commerce for Drupal 7 compatible with PHP 7.2? I have ...
0
votes
0answers
14 views

Strange Behavior of Product Attributes

Using Drupal 8.6.15 with Php 7.2. This issue I have checked with a fresh drupal installation no other theme, only with Bartik. I have created a product attribute called Tiles Color. It suppose to ...
-1
votes
0answers
4 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page [on hold]

I want to add a quantity widget in the content of my product page. It wasnt present in my interface. I dont why the quantity widget shows up automatically in other content types. I viewed managed ...
-1
votes
0answers
5 views

Put a product image on the tile view of products [on hold]

I had installed Drupal 7 Ecommerce Kickstart. Whenever I search something, the products list are shown with no cover images shown. I can only see images, when I particularly click the product link. I ...
-1
votes
0answers
11 views

Make “Add to Cart” Button Appear Below

I have installed Drupal Ecommerce Kickstart. I want to make the "Add to Cart" button below and not in the middle. How will I do that in Drupal 7?
0
votes
0answers
18 views

How do i alter commerce product price?

I have installed Drupal 8 and using commerce 2.x, I want to alter price according to the user set its own price on user field of a user who created the product. example: user1 has its user price 10 $ ...
0
votes
0answers
18 views

How to create product from image

I'm quite desperate right now and pretty newbie with Drupal. Anyhow, I wan't to develop my WordPress site and change this current system to Drupal. So now i'm able to set user specified galleries and ...
0
votes
0answers
8 views

Drupal Commerce membership for family members

I'm attempting to setup Drupal 7 to sell memberships. The basics are all setup, and selling roles seems to be working fine. However, I'm getting stuck on additional memberships for the user's family. ...
0
votes
0answers
43 views

Drupal commerce 2 add to cart form not working for anonymous user

When anonymous users add a product to the cart it’s not working, but it works for authenticated users. Following code is creating the form function mycustommodule_preprocess_commerce_product(...