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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
2 views

Add extra data to order detail page

How can i add more data to default commerce order detail page opens on "user/uid/orders/order_id". I want to show some more information example: detailed information about product owner. How to ...
0
votes
0answers
8 views

How does a PaymentGateway signal a completed order

I'm trying to implement the Commerce Ingenico payment gateway for a Drupal 8 Commerce site. As this module is still in unfinished for Drupal 8, I'm fixing it up as I go. Most of the implementation is ...
-1
votes
0answers
13 views

Canada Post API Shipping Module - An illegal choice has been detected. Please contact the site administrator

I am using Drupal 8 commerce 2 with Canada post module, I have setup everything API authentications etc, I am facing An illegal choice has been detected. Please contact the site administrator while ...
0
votes
0answers
15 views

Drupal Commerce - Is it possible to issue temporary logins for guest users to check their order status?

I have a client who is wanting his users who order as guests to be emailed a temporary login and password so that they can check their order status. Is this possible in Drupal Commerce? (Drupal ...
0
votes
0answers
10 views

Price display on node-product .tpl

I have one product with 5 variations book: paperback, hard cover; audio; ebook(epub, mobi) How do i display the individual prices per item on node
-2
votes
1answer
30 views

How do I fetch an array value? [on hold]

I have the following array. [field_add_options] => Array( [x-default] => Array( [0] => Array( [target_id] => 8 ) ) ) How do I fetch the value of the target_id ...
0
votes
0answers
14 views

How do I programmatically create a payment for an order?

I know how to programmatically update a payment for an order. $payments = \Drupal::entityTypeManager()->getStorage('commerce_payment') ->loadByProperties([ 'order_id' => [$order_id] ]); ...
0
votes
1answer
21 views

How to update payment status inside an order?

I am trying to update order status and payment status depending upon the value we get in a variable called $payment_status. I am able to update order status but I am unable to update payment status ...
0
votes
0answers
10 views

Using as shipping address the value entered as billing address

In Drupal Commerce 2 how can we allow a customer to select as shipping address the same address entered as billing address?
-1
votes
0answers
14 views

Clicking on a product produces a blank white screen [closed]

I'm running Drupal Commerce 7.x-1.14 and all of my commerce modules seem to be up to date. When I try to add a product to my cart a blank page is displayed and the error message in the log is: ...
-1
votes
1answer
24 views

Editing text above downloadable products

I am trying to change the intro text above a form for downloadable products in Drupal Commerce, it needs a privacy policy link. I didn't create the website and I can't find where the text is generated....
0
votes
1answer
16 views

One product in multiple categories

using drupal7 commerce and trying to figure out how to have a product assigned to multiple categories(old ubercart user here). The only way I have found so far is to create a new product view for each ...
0
votes
1answer
8 views

Clone Commerce Product Option Sets

This issue hints it's possible to clone Option sets https://www.drupal.org/project/commerce_option/issues/1319618 To reproduce: On page admin/commerce/products/option-sets Click 'clone' on any ...
0
votes
0answers
21 views

Is there any way to auto generate an entity reference (behind the scenes) using only the entity ID?

I'm looking for some help with my workflow on my Drupal 7 website... Currently: 2 user types ( user type 1: u1, user type 2: u2 ) u1 creates content u2 creates a product referencing u1's content u1 ...
0
votes
0answers
8 views

View More Link on Product Teaser on Products Catalog Page

I have created a product catalog using search api and views as per instructions in this link https://docs.drupalcommerce.org/commerce2/developer-guide/catalogs/create-a-catalog I now want to add ...
0
votes
0answers
24 views

how to get all orders filtered by one product using EntityFieldQuery?

The below code will filter by date but what i really need is to filter by product. $query_invoice = new EntityFieldQuery(); $query_invoice->entityCondition('entity_type', 'commerce_order') ...
0
votes
0answers
11 views

How to Dynamically Set Price in Commerce 2

In Drupal 8, Commerce 2, is it possible to dynamically adjust the price? I have looked into Price Resolvers (as per here and here), however the Resolver only runs once as the page is rendered, and I ...
-1
votes
0answers
23 views

How to save/update cart programmatically?

I am new to Drupal 8 and wonder how to add new product to cart in Drupal 8 programatically? I have seen post Add product to cart programmatically for drupal 7 but I want same answer for Drupal 8.
0
votes
0answers
20 views

Conditional completion message content using JavaScript and PHP code is not working

In my Drupal commerce site (Using DRUPAL 7 and Commerce 1.x), I am trying to create a custom “Checkout complete” page based on the chosen payment method. Depending on the method chosen, the user will ...
1
vote
1answer
21 views

Fetch Customer Profile from Line Items

In a webshop I’ve build I want to send individual e-mails to owners of a prodruct in the shop after a product is sold. To do this I got this as a solution: Send mail to product owner with Rules But ...
0
votes
0answers
24 views

Taxonomy Terms Not Displaying Results

I have added product categories vocabulary to my default product type. Added few products through that default product type and selected relevant terms for each product I added. When I am going to ...
0
votes
0answers
12 views

How can I make a product tax resolver work in Commerce 2

I have been trying to get a resolver to work in order to apply VAT rates to my products, based upon the value of a custom boolean field in Drupal Commerce. The field indicates whether the product ...
0
votes
0answers
32 views

New install: Missing product attribute tabs: “Manage Fields”, “Manage Form Display”, “Manage Display”

Issue TLDR; My Drupal Commerce site, still in basic configuration stage, is missing tabs for "Product Attributes". I need to figure out how to fix this. I'm hoping this is a case of a missing module ...
0
votes
1answer
21 views

Multiple shopping cart view in cart page

I want to show shopping cart view in different style on mobile view . how can I clone shopping cart view to show it on another format like unformatted list or what is your approach to show this views ...
0
votes
0answers
6 views

View of referenced products data displayed to admin only

I'm trying to create a view displaying products and some of their attributes. I created a product type and then products using the Commerce Module Interface. Then created a item content type with ...
0
votes
0answers
12 views

Evaluating available inventory/stock module

I have built Drupal 8 Commerce 2 website. for now this website supports only payments on delivery. But I have been asked to add support for stock management. Set the available quantity of each ...
0
votes
0answers
6 views

How to set related products view contextual filter to get its value from current product category id

I have build a Related Products view that supposed to show latest products which in the same category of the current product being viewed. so I set a contextual filter for the category_id field, but ...
1
vote
0answers
58 views

Get all commerce product types

I am creating a module that needs to add a number of fields to all commerce product types. In Drupal 7, I used the function commerce_product_types() to get all the types and than used that, but I can'...
-1
votes
0answers
16 views

How do I show the email text in the order completion page?

I want to add a print button in the order completion page, but the order completion page prints only the order ID. How do I embed the order or the email sent to the user into the order completion ...
0
votes
0answers
8 views

Saving value from computed field without array for language and cardinality

Using a computed field, I grab the value of the commerce SKU field, alter it and want to safe it. I am using varchar and my computed PHP code looks like this: $entity_field[0]['value'] = str_replace('...
0
votes
1answer
25 views

Update manually installed modules

I have installed Drupal Commerce 2 through composer as mentioned in https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation after that, I have installed a few modules ...
0
votes
0answers
17 views

Adding offline functionality to Commerce POS

I'm looking into using drupal commerce on drupal 8 to make a custom pos. I'm also using the commerce pos module. One of the features required is a limited offline functionality. As mobile terminals ...
0
votes
0answers
11 views

How to manage groups of products and permissions per user

I'm using Drupal 7 with commerce module. I need to define different groups of products and give the user permissions to view or not products of a specific group. Specialy in a view page where users ...
0
votes
1answer
17 views

How to search for complete SKU like “K-00019” (without splitting it at “-” and without removing leading zeros)

I am using Search API to search commerce products by SKU. But when I enter "K-00019" as search string, every item is retrieved that contains "19". I investigated why this happens and found, that a ...
-2
votes
0answers
15 views

Is the Fedex module compatible with UK Fedex services?

Is this module compatible with UK Fedex services and therefore UK post codes? When setting conditions does the post code need to be written in a certain format? If there are any tutorials out there ...
0
votes
0answers
13 views

How to translate a Commerce Promotion

commerce_promotion is an entity. In the class for this entity (Promotion.php), the annotations say this can be translated. In the same annotations, there is no link to a translation form. How can I ...
0
votes
0answers
16 views

Separate sessions created when adding products as authenticated and anonymous user

Here is an issue I'm having with commerce module (Drupal 8 ) and hoping anyone can help me fix this. I first add a product to the cart as a logged in user which works fine but then logout, add another ...
0
votes
0answers
19 views

Add values to line-item fields

I am using easy_booking with rooms and commerce. To avoid that updates override my code I've created a module. So, in this module I added fields to the booking form block via hook_form_alter. Also I ...
0
votes
0answers
30 views

Drupal 8 Commerce: Need payment instruction in confirmation mail

i am creating my first online shop in Drupal 8 with Commerce. Now, i am configuring the order confirmation email. Everything works, but there is no payment Information/ instruction shown. I use the ...
0
votes
2answers
21 views

How do I update the unit price of an order item on Add to Cart in Commerce 2.x?

I added an event subscriber for add to cart event. There I defined a function to react on add to cart event. Everything works fine as my eventsubscriber is being called. I want to update the unit ...
1
vote
1answer
23 views

Send mail to product owner with Rules

I have a Drupal 7 site running including Commerce. I'm asked to make the webshop work in a way that the mail send after completing payment is send to the product owner(s). So when creating a product ...
0
votes
1answer
24 views

I can't find product types UI

I'm trying to add a new product type, but I can't find the tab for the product types. In Manage product structure, it is very clear where that tab is, but I cannot find it. I'm using Drupal 7.59 and ...
0
votes
1answer
23 views

Add result to view with webservice

In my drupal 8 Commerce, I have a view with product and filter criteria. And I want to know, if it's possible to add result to this view with a result of webservice. I try to inspect $view->...
0
votes
1answer
12 views

Which events are invoked when an order is removed or cancelled?

I have already an event subscriber class with commerce_order.place.post_transition defined. I need to remove nodes when an order is deleted or canceled. What event could I use in that case?
0
votes
0answers
15 views

Send payments to 2 different paypal accounts from 1 order

I asked this question in the normal stackexchange before finding this section. I apologize for a duplicate question. I have Ubercart setup and working with paypal. Some of our products are kits. We ...
1
vote
1answer
156 views

Change the order of product variations on the “add to cart” form

I have a product type with three variations (to make this simple, let's assume it's a t-shirt store): Color Size Team On the "Add to Cart" form (configured at /admin/commerce/config/order-item-types/...
0
votes
0answers
36 views

Tagging products on Facebook or Instagram shows full price instead of sale price

When I post product pictures on Facebook and Instagram, I am able to tag products but it seems that the product tag can only show full price so when a product is on sale it is not showing the Sale ...
0
votes
0answers
34 views

Unable to evaluate action commerce_shipping_service_rate_order

Right now, I am using Drupal 7.59, PHP 7.0.30, Commerce shipping 7.x-2.2, Commerce UPS 7.x-2.0 and Entity API 7.x-1.6. when I take an order through to checkout and then return back to the cart page. ...
2
votes
2answers
288 views

How to stop using Hindi number in Arabic translation of products

When using English version of website, price is shown in Arabic number (common one). But when using Arabic version of website, price is shown in Hindi number. I don't want price to be shown in Hindi ...
0
votes
1answer
15 views

How can I refresh the adjustment tax after changing the line-item price?

I create orders programmatically, and I have a tax problem: the order, after changing the line item price, always has the tax cost with the old product price. How can I refresh the adjustment tax ...