Stack Exchange Network

Stack Exchange network consists of 174 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

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

0
votes
0answers
7 views

How to allow outputting of Commerce Order Item (product) information in a View that the user does not have permissions for?

I have a Drupal 8 View of Orders that have order items related to them. This View needs to show order items to a user that does not have the "View Orders" permissions. I've checked the "Disable SQL ...
-3
votes
0answers
24 views

Admin account gets 17% discount for no apparent reason?

I'm on a fully updated D7-site and for some reason my Admin account get's a 17% on all products. Other registered users see the normal prices. The only percentage-based discount that's going on on ...
0
votes
1answer
14 views

How to show price range

I got Drupal 8 / Commerce 2 installation, and trying to create product category pages, showing product image, title and price range (min & max price) I've created product category page with Views....
0
votes
0answers
11 views

Filter variation by attributes on product page

Is it possible to achieve something similar to this: https://buy.garmin.com/en-US/US/p/552982/pn/010-01688-20 in Drupal Commerce? If initially I set the product to a color variation which doesn't have ...
-1
votes
1answer
16 views

Do not want store credit card details [on hold]

I am using Drupal 8 Commerce 2 Onsite payment gateway with USAepay payment gateway. I do not want to store credit card details in the database, even it should not save last 4 digit last of card number....
0
votes
1answer
29 views

How to set up a recurring payment

I need to set up a recurring payment on Drupal 8. I discovered these two possiblity : https://stripe.com/us/billing https://www.drupal.org/project/commerce_recurring What is the difference between ...
0
votes
1answer
15 views

Assign programmatically created order to anonymous user

I want to create a pre-made order in Drupal Commerce for an anonymous user, and redirect the user to the checkout. My use-case is that I have two sites: One big Drupal Commerce site (up and running ...
0
votes
0answers
8 views

New Line Item Type Not Displaying

new to Drupal. I have an interesting problem... I have a product that I'm assigning to a line item type, but it isn't showing on the checkout page for some reason. The Line Item Type name begins ...
0
votes
2answers
27 views

Sale price not showing in cart page

I have added a product in commerce. Each products have a price and sale price. In product listing page the price is cutout and sale price is displayed. When a product is added to the cart, sale price ...
0
votes
0answers
23 views

Call to undefined function gcd [closed]

I am making a custom module in which I am calling a function inside another function. I have defined that function in the class but I am getting this error call to undefined function gcd. I am sharing ...
0
votes
1answer
39 views

Why does the shopping cart display the login form?

When I'm not logged in and click on the cart logo, the following page appears with the login form: /cart 1) I want the contents of the shopping cart to be displayed. 2) When I click on the "...
0
votes
1answer
13 views

WPS - Payment status stuck at pending even though the sandbox paypal shows the completed payment [on hold]

I am having an issue to get the payment status to update to completed. See attached. I am able to complete the order payment from the site, to paypal sandbox and back. however on my drupal site, the ...
0
votes
1answer
22 views

In Commerce 2, is it possible to have the product variation automatically created during product creation?

We have a Commerce 2 store whose products will always only have one variation. The current workflow to create a new product and its variation is a bit complicated for the user's who will be entering ...
-1
votes
0answers
8 views

How to load a value in product attribute using \Drupal::entityManager();?

I am having product attribute called "plan type" inside that I have "basic" and "premium" values. How can I get the value if i know the id.
0
votes
1answer
25 views

How to customize the shopping cart?

This is a real puzzle, if I disable the image field of the display mode of variations, it is still displayed in the shopping cart. Can someone explain to me how to customize the shopping cart ? I do ...
0
votes
1answer
12 views

Year-end Commerce receipts

I've just stepped in to help work on a half-built Drupal 7 Commerce site for a non-profit who needs to provide year-end receipts to their donors. Ironically, I can't locate a module which summaries a ...
0
votes
1answer
26 views

How to change the variation title in the add to cart block in Drupal Commerce 1?

I'm building a store in D7 and Commerce 1. My product variations have a Size attribute - these are displayed in the Add to Cart block as a list of radio options. I would like the option labels to ...
0
votes
2answers
43 views

How to display the variation of a custom display in Twig

In my type of product variation, I have 4 different display : Default Panier (Cart) Teaser Teaser relation I have created a template for product type and want to display the "Photo" field of the "...
0
votes
0answers
14 views

How to add the terms of sale in the purchase tunnel?

I created a site with Drupal 8 and I have several stores (it's a marketplace). For the sale to be legal, the customer must accept the terms of sale during his order. Currently I have created a long ...
0
votes
1answer
24 views

I can't remove comma after currency in commerce price

In my project I had to change currency code from USD to IRR (Iranian Rial) but in Persian language after currency, there is always a "," character in rendered price (in price component or formatted ...
0
votes
0answers
9 views

Product Description On Separate Page

Does anyone know how to input text into a field-textarea and have it displayed as a word that's a link. I included a pic to visually show what I'm trying to do. Hopefully you can see the image. ...
0
votes
1answer
27 views

Error message in checkout step

I'm getting the following error on the return page of my off-site payment: #1 ... /httpdocs/core/modules/editor/editor.module(554): _drupal_error_handler(4096, 'Argument 1 pass...', '... /httpdocs/ .....
0
votes
0answers
17 views

Copy value from user field to custom field in commerce customer profile

I try using this rule to copy a value from a field in the user account and paste it into a field in a customer profile in drupal commerce: { "rules_kopiera_fran_anvandarkonto" : { "LABEL" : "...
-2
votes
0answers
13 views

Http 500 Error when going to commerce cart View [duplicate]

I'm getting http 500 error when trying to go to the cart form view and also in the cart form summary view. It only happens when there are products in the cart. It works fine when there are no products....
0
votes
0answers
19 views

How can I reduce the number of stocks after an order is completed?

I am using commerce 2 in Drupal 8. In product variation I have a field called stock. In this stock field I have the number of stocks left for the variation. I had subscribed for order.fulfil event by ...
-2
votes
0answers
22 views

How to build Donation within radio button with Drupal Commerce?

Does someone know how to build, step by step, Donation within radio button in Drupal 8 and commerce (not Drupal 7)? In Drupal 7, we can only do that with modules select_or_other and Commerce ...
0
votes
0answers
7 views

Drupal Commerce 1: How to link multiple customers to a Company entity and show them a list of all orders for that company?

I have a Drupal Commerce (D7, DC1) site where individuals are able to log in and place orders. In some cases, there are multiple users from the same company. My client would like a way to show a list ...
0
votes
0answers
17 views

Checkout Buttons Not Showing

I can't seem to find the source of the problem and I am really wondering what else could be missing. I have my store set up. I have 2 authorized payment gateways. I have tons of products. But when I ...
0
votes
1answer
34 views

Filter product displays by parent taxonomy term

I'm running a music store and have a taxonomy term field on products that that is used for the product's format. We tag the products from the following vocabulary. Vinyl 140g vinyl 180g vinyl CD ...
0
votes
0answers
13 views

How alter province (administrative_area) in address field

In my project, I need to alter address field. I want to change type of province (administrative_area) from textfield field to select list with specific options. I tried to do it via hook_form_alter ...
0
votes
0answers
47 views

Why do I get an error about the extension.list.module service non existing?

I installed Drupal 8.5.6 and Drupal Commerce with Composer. They installed fine, but after I cleared the cache, I got this exception in a WSOD. Uncaught PHP Exception Symfony\Component\...
0
votes
0answers
15 views

Display Commerce2 product variation attributes

I'm knew to Drupal and have been using this documentation to help me. I'm able to display everything, however, for each product, I need to display "top level" attribute value of the variation ...
0
votes
1answer
10 views

Order receipt e-mail language for guest checkout

Is there a way to have the order receipt e-mail be in the language of the site version that was used for placing the order? The order receipt e-mail that gets sent out (content of commerce-order-...
0
votes
1answer
28 views

Creating products with Rules and calculating price in Drupal Commerce

I am creating products on the fly with Rules, using Drupal Commerce. After user clicks on checkbox near product (additional service to product), I need to "add the service" to cart. Service is always ...
0
votes
1answer
63 views

How to create a message when a new store is created?

I installed the Message module on my site : https://www.drupal.org/project/message And I created a custom module from the Message Example sub-module. Here is the content of the ...
-2
votes
1answer
47 views

Commerce 2: Can a product buyer set the price they want to pay for a product during checkout?

I want to create a product where users can enter the price they'd like to pay for it. How can I do it? Edit: Just changed the question to be a little more clear. I will be trying the solution posted ...
0
votes
0answers
44 views

Updating throws an error which effects the site theme

I tried to update Drupal Commerce, before updating core to 8.6.0, with composer update drupal/commerce --with-dependencies. Now I get the following error for each page. Fatal error: Declaration ...
0
votes
1answer
21 views

How can I get the invoicing and shipping profiles for a user?

How can I get two separate profiles, one for shipping and one for invoicing? I can get the default profile for a user, but there does not appear to a type associated with it. In Drupal 7 I could use ...
0
votes
0answers
19 views

Shipping line item issue using Inline Entity Form module

The module "Inline Entity Form" is not compatible fully for adding shipping line items! am I right? While the widget "Inline entity form - Multiple values" is selected instead of "Line item manager" ...
-2
votes
1answer
35 views

Recovering a failed Commerce installation [closed]

Scenario: existing site 1G PHP memory install commerce modules locally do some dev and configuring cex my config and deploy upstream deployment fails with "php out of memory" try deployment again (4 ...
0
votes
0answers
25 views

Drupal Commerce Subscription rules

I am working on a Drupal 8.5 with Commerce 2, where I have already installed the subscription and Recurring module for Commerce. I have managed to set up the products and all the required settings ...
0
votes
0answers
8 views

Make drupal commerce cart ignore empty edit quantity field

The thing is that I have an ajaxified edit quantity field on cart line items and whenever a user removes the default value (in order to enter the quantity that he wants), he ends up deleting a line ...
1
vote
0answers
18 views

Adding a custom button to products-variation-list in article-display backend (see screenshot)

I added the functionality to duplicate product-variations, using the module commerce_product_clone and some custom functions to link the clone to the article-display after saving. For convenient use, ...
0
votes
1answer
26 views

Error on update from 2.3 to 2.8 and 2.7?

I'm using drupal commerce 2.3 and want to update to commerce 2.8. I just copied the files to the new folder and get the error: PHP Fatal error: Uncaught Error: Class 'CommerceGuys\Addressing\...
0
votes
1answer
17 views

How to disable obligated address fields in Drupal Commerce in checkout?

In D8 drupal commerce there is a step after the customer selects checkout. Left in the screen is de payment information which contains a form with: Country Company First name, Last name Street ...
0
votes
0answers
21 views

Cannot find a value from the local configuration manager?

In D8 in the configuration manager I have a value: CURRENT VALUE FOR COMMERCE_PAYMENT.COMMERCE_PAYMENT_GATEWAY.COINPAYMENTS with YAML file uuid: xxxx langcode: en status: true dependencies: ...
0
votes
0answers
9 views

Which token is available in drupal commmerce in order to show the price?

In D8 i'm using drupal commerce. I would like to display a product entity. For this I used a views which displays a block. In this view the entity mode of a product is displayed. In here there is ...
0
votes
0answers
17 views

Add custom select list values on node creation/edit?

So far you can only create a listing field list (text) and fill it with values that are available to select from only when creating a node with that field. Is there a way to add custom values for a ...
1
vote
1answer
36 views

How do I create a field template or template override for a specific display mode?

Because in the Drupal 7 Commerce module, the fields, 'sku,' 'title,' and 'status' aren't editable by Display Suite field wrappers, I'm unable to edit the field wrapper via the Drupal front end, I need ...
0
votes
1answer
10 views

How to add a view of product fields to a product display so that it changes when add-to-cart form is updated via ajax?

In Drupal 7/Commerce, I would like to display a view of product fields attached to a product so that when the add-to-cart selection is updated and product fields are updated via ajax, the view is also ...