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.

0
votes
0answers
3 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
16 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

Warning: A non-numeric value encountered in alpha_calculate_primary() [on hold]

I just installed Drupal Comerce, haven't done anything to it yet but it's already giving me a warning. I have no clue what it's talking about and I can't get it to not display warnings on live site. ...
0
votes
1answer
8 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
15 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
20 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
22 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
23 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
24 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
11 views

Drupal How to lay out admin content to page?

Is there any option to lay out content displayed in this screenshot: on the page of the website:
0
votes
0answers
17 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 ...
-1
votes
0answers
25 views

Sell Node Access

I currently use Drupal 8 with Commerce 2 for my site and I would like to implement a way to sell node access to users. Looking around I have found a guide for Commerce 1 to sell nodes, though ...
0
votes
2answers
28 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
11 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
77 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
13 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
8 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
57 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
10 views

Add A Field in Product Variation that lets user Choose From A List of Terms in A Specific Vocabulary

I want to add a field in product variation that lets customer choose from a list of terms in a specific vocabulary. For example, I have a vocabulary of "Pizza Recipes". The terms in the vocabulary ...
0
votes
0answers
2 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page

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

Put a product image on the tile view of products

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 ...
0
votes
0answers
10 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
16 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
15 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
38 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(...
0
votes
0answers
11 views

Desable showing language en in url for specifique content type

i have website multilingue version english and french i find a module who can add EN And FR to link here This module work for me but , but the problem this module enable languages in all pages but i ...
0
votes
0answers
18 views

no default store (drupal commerce 1.x)

Is there a way to adjust or add the "default store" value directly in a SQL table? I have no default store listed - if it is applicable to version 1.x and all the products I imported from Ubercart ...
0
votes
0answers
11 views

how can i get list of commerce order purchased by specific user programatically?

how can i get list of commerce order purchased by specific user programatically? i want to create function for it so that other developers can use it in further development by simply calling that ...
0
votes
0answers
6 views

Drupal 7 Commerce KickStart 2 Installation [duplicate]

Upon installation of Drupal Commerce Kickstart, A warning prompt shows up. After finishing installation. My site looks like this. The site is a mess, images were non-existent. It's ugly compared to ...
-2
votes
1answer
18 views

Adding product to blog sidebar

In Drupal 8 commerce 2, how would I embed a product with an add to cart button and select ID of my choosing into the sidebar of a blog post?
0
votes
0answers
29 views

How do I add extra cost with cash on delivery?

I have implemented and eshop with commerce module in drupal 8. How can I add extra cost in case the customer chooses the cash on delivery method? I use payment module. Is there any solution or some ...
0
votes
1answer
25 views

Remove left sidebar shopping cart

I know the shopping cart is generated by the view shopping cart form. But how do I remove the shopping cart block on left sidebar of the home page and still maintain the the view on /cart page? I have ...
0
votes
1answer
32 views

Drupal Commerce Payment Module

I am creating a Drupal commerce Payment module and planning to sell it through codecanyon. Is there any licencing issues if I proceed with this?
-3
votes
1answer
36 views

Order comments text area in checkout [closed]

I need a order comments text area in checkout. How can I do this? I'm using Drupal Commerce 2.
0
votes
0answers
9 views

How to provide a tax rate based on a shipping method (local pickup) in Commerce 2?

We need to provide a static tax rate for customer's selecting a specific method (Local Pickup). This tax rate would not be based on a customer zone and would supersede any zone rates that may exist. ...
0
votes
0answers
20 views

Force order refresh on load

I'm developing using Drupal Commerce 2.x. The cart/order refreshes when a change is made to it triggering some code I am developing. I am wanting the order to refresh on every page load while I'm ...
0
votes
0answers
30 views

How to use inline entity form field in custom form?

I have a site with Drupal 8 and Commerce 2. Now trying to build a custom "Create new order" -form for admin. Created a custom module and form with buildForm() function. Managed to add selection for ...
0
votes
1answer
12 views

Can I handle calculating/charging for shipping after order placed?

I am trying to determine if Drupal Commerce is the right ecommerce method to use for my client's project. The workflow my client is looking for is: Customer place order, and pays nothing for ...
0
votes
1answer
24 views

Is there any way to create a discount that only discounts one product in an order?

We have a Drupal 7 site using Commerce and Discounts and we need to create a discount that will discount one product in the order by 100%. Basically, we need to give a coupon discount for ONE free ...
0
votes
0answers
31 views

How do I set minimum and/or maximum total price for orders?

I've been looking around unsuccessfully for both a configuration or coding way to implement setting to block the checkout of an order if it doesn't meet minimum and/or maximum total price conditions. ...
0
votes
0answers
27 views

How to implement a donation functionality?

I'm looking to implement a donation functionality with Drupal 8 Commerce. My question is if there is a solution for Drupal 8 similar to the one Randy Fey described in his tutorial in 2011 for Drupal 7?...
0
votes
0answers
12 views

How to change payment method depending on product field

I´m running a D7 Commerce and I need to activate a payment method for some special products. On the Payment Rule conditions I need to check if the product included in the order has a specific value. ...