Questions tagged [commerce]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
604 views

Strange Issue with displaying information of the current term

I have built a series of views to build a Drupal Commerce display for products based on the Taxonomy terms of those products. These terms have a hierarchy. There are nearly 40,000 products being ...
1
vote
1answer
562 views

Address book problem when user edit the billing address

i just installed commerce address book module but i noticed that when authenticated users try to edit their billing address they have some options in the bottom that seems very strange and not ...
-1
votes
0answers
21 views

Parent store URL is not working

I am having problems since the last update of Drupal Commerce to version 2.23 At the top of my products page, there is an area with the parent store. This area is a link to the parent store. Before ...
-2
votes
0answers
24 views

Duplicate image in shopping cart [closed]

Since the update to version 2.23 the image of product variations are duplicated in the shopping cart. Normally I should see a single image of the product. I haven't changed anything in the settings ...
-2
votes
0answers
17 views

How to remove duplicate title from product variations? [closed]

On my product page, I already have the title su prosuit. When I select a variation, the title is repeated again and i is completely unnecessary. It should be removed for a better user experience. How ...
-1
votes
0answers
16 views

Stripe php implementation

I tried to install the Stripe module to use it in my commerce shop on my Drupal 9 site. However, this yielded many errors so I decided to implement Stripe using php and based on this tutorial : https:/...
1
vote
2answers
340 views

Drupal Commerce - product attribute price based on quantity

I'm here with a tricky question about Drupal Commerce. Here's my need: I have a group of products that have a variable price based on quantity. Each product has specific (only for that product) ...
0
votes
1answer
706 views

how to add a remove coupon button to commerce checkout page

I assumed this would be included in the module, but as far as i can see it isn't. Im using the latest versions of Commerce, Rules, and Commerce Coupon. I want a "remove" button next to the added ...
0
votes
1answer
570 views

Shopping cart views are not show product links

I am using Commerce Kickstart V t-7.x-2.2 I realized the next: When I add a new product and I add to cart it, not show the link "view product" . But when I edit that product and modify something on ...
0
votes
1answer
481 views

How to display selectable variations without attributes?

With Drupal Commerce 2, each of my products have multiple variations which are unique and can be adequately described by their variation title. I can not figure out how to display a dropdown for the ...
1
vote
1answer
1k views

Reload page after applying commerce coupon

I'm quite obsessed on one page checkout using drupal commerce kickstart. I'm using commerce coupon(wonderful module) and we all know that there's a possibility that the order total price could be zero ...
0
votes
2answers
786 views

Upgrade drupal commerce kickstart

I'm trying desperately to update a customer's e-commerce site. I am a novice in Drupal. Drupal version: 7.18 Drush version: 8.1.10 Install profile: commerce_kickstart I checked with Drush for ...
-1
votes
0answers
32 views

Headless ecommerce system with Drupal commerce [closed]

I'm considering using Drupal + Drupal commerce for an headless ecommerce. Is it possible to to consume all the Drupal Commerce modules such as order, checkout, products via Restful API only, without ...
1
vote
1answer
33 views

Commerce framework: How on earth do I offer recurring license subscriptions? [closed]

I'm new to the Commerce framework. My goal is to sell licenses to users (via the commerce_license module). Purchasing a license should grant the user a particular role for the duration of the license. ...
0
votes
1answer
28 views

How can I add Commerce Wishlist share mail template variables from form?

I am trying to add 2 additional form fields to the Wishlist Share form where the user input will be rendered in the email. I have been able to add the fields to the form, but I am not sure how to add ...
2
votes
1answer
616 views

Create commerce product through web services

I want to create products using commerce services resource module. At this moment, I can create a product calling the resource .../product with POST, but It seems that It only creates a product ...
1
vote
2answers
860 views

How can I add the sku code in [commerce-order:commerce-email-order-items]

While the shortcode [commerce-order:commerce-email-order-items] is used to send several commerce emails, it does not includes SKU code. How can I add sku code or edit the output of [commerce-order:...
0
votes
1answer
910 views

Get the displayed node of a commerce_line_item in a component rule using 'commerce_display_path', doesnt work

I ve found something quite interesting in an other post Discount based on a field in product display node in Drupal Commerce? It describe a way to get the 'node display' associated with a line_item ...
-2
votes
1answer
47 views

Why did my event subscriber suddenly stop working and how can I debug it? [closed]

I've been working on a module in which I'm subscribing to commerce_order.place.post_transition event. However, it suddenly stopped working. Any ideas how I can debug it? I tried Xdebug but it won't ...
1
vote
1answer
340 views

Commerce Rule For Sales Tax On Shipping To One State

We want to only apply sales tax on orders shipped to a particular State. I tried to cobble together the following rule from the included 'Price Component' and it seems to apply tax on shipping for -...
0
votes
1answer
375 views

Generic orders URL

Is there a way to create a page that requires the user to log in and then shows them all their orders, but only the orders of the logged in user. I need it to the same URL for all users as an external ...
2
votes
1answer
1k views

How to resolve Catchable fatal error in entity.inc?

Locally (WAMP) I have created a new GIT branch to install Drupal Commerce on my site. Everything went well and I have begun configuring my new shop. But when I decided to pull this branch into my ...
-3
votes
0answers
27 views

The “Array” plugin does not exist after saving the order type form in Commerce

After saving any order type, the following error shows: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "Array" plugin does not exist. Valid plugin IDs for Drupal\...
-1
votes
0answers
12 views

Move Paypal pay button to another block [closed]

Is it quite simple to move the Paypal pay buttons to another block? Can someone let me know if this is possible? I checked on the Cart form page, but I could not find the query/variable that shows ...
2
votes
1answer
707 views

How to get the customer name in Commerce order confirmation e-mail?

How can I get the customer name from the billing information variable in the commerce-order-receipt.twig.html template of the Drupal 8 Commerce order confirmation e-mail?
1
vote
1answer
691 views

How I can include Commerce SKUs in search result?

How I can include Commerce SKUs in search result? I am using “Search API and Search API Solr” modules. Any suggestions?
0
votes
0answers
14 views

Commerce Payment method with custom fields

I am trying to create simple payment method with some text-fields the customer must fill out. Spend a lot of hours on this and can not figure it out. Right now I am trying to make a custom ...
0
votes
4answers
596 views

Alert message after add product

I am using Drupal 7 and the Commerce module. How can I set the alert message after adding a product in Drupal Commerce.
1
vote
0answers
23 views

Flag commerce product variation breaks page

I am building a shop on Drupal 9 ,Commerce 2, and want to implement a "my favorite products"-bookmark, so that a user can bookmark products and save them for later. So, I installed flag ...
1
vote
0answers
21 views

How can I change the state of an order in Commerce? [duplicate]

I can't find a way to change manually the state of an order in Drupal Commerce 2, like it used to be in Drupal 7. Any ideas about how to do it?
0
votes
1answer
21 views

How do I hook the stock status message to the product page?

I have a Commerce Demo site that uses the off canvas flyout cart and I am using the Commerce Simple Stock module to stop items being sold if they are out of stock. The module changes the stock number ...
2
votes
1answer
897 views

How to properly add a Commerce Shipping Service option via AJAX during checkout

I have the Payment and Shipping service block in the same checkout pane. I update the Shipping service block with AJAX when selecting a Payment method, as available Shipping services depend on the ...
2
votes
2answers
466 views

Showing both original base price and calculated price (inc. taxes), when using two price fields and rules

Building a webshop for customer with Drupal 7 + commerce. I've defined two price fields for commerce product entity: 1) base price (excluding tax) that is wholesale price 2) retailer price (excluding ...
0
votes
1answer
342 views

pass result of Rules loop to variable to use outside loop

In Drupal Commerce, i have created a rule that calculates the price by adding some fields (custom line items), and then sets a result. Now i want to make a loop (to pass over fields of a Field ...
1
vote
2answers
560 views

Display price in add to cart form BEFORE add to cart button

the logical flow of choosing attributes is seeing price adjustments based on the attributes chosen before the buy button ... how can i display the price in the form itself so it appears BEFORE the add ...
0
votes
1answer
346 views

How to change commerce order owner to someone else?

I create a commerce order for a spesific user prograticaly by admin user, after completing checkout process by admin, I want to change owner of order to someone else to show created order in order ...
2
votes
1answer
804 views

How to display physical dimension fields on node--product.tpl.php?

I am using the Drupal Commerce module and I want to print the physical dimension fields(machine name: field_width) value on product detail page. How can I print physical dimension fields value in ...
2
votes
1answer
739 views

How do I separate the “Product” select list & “Add to cart” submit form in a node product display?

I have a node product display which references 2 different products. When I use the code below, it prints out both the "product select" form + the "add to cart" submit form. How do I print them out ...
0
votes
1answer
1k views

Show prices excluding Tax/VAT but calculate and display only on checkout

In case of B2B store I need to display all prices without VAT taxes. But taxes must be shown on cart and during checkout process. What's the good way for this? I use commerce_vat.
0
votes
1answer
430 views

How do I add shipping costs to orders?

I have a really complex set of shipping rules I have three product types Product type A with a rate of £1 per product Product type B with a rate of £2 per product Product type C with a rate of £3 ...
0
votes
1answer
743 views

How to modify the commerce price formatter label to match shipping service?

Please see attachment. Using Commerce Kickstart 2. I have a working solution, but I am hoping someone can tell me how to improve it, as it 'feels' poor. The footer for the default shopping cart view ...
0
votes
0answers
20 views

Custom JSON api normalizer is not initiated

I am trying to figure out how to make a custom normalizer for an entity work. I've added the normalizer to my services.yml with the required tag and arguments and run into no errors. But when ...
0
votes
1answer
834 views

Returns 403 error after user login

My site was copied from production to test server. It works on Drupal 7 + Nginx + PostgreSQL. On production, user login works fine, but on test server I receive a 403 error on users/admin (or user/1) ...
0
votes
1answer
7 views

Altering commerce invoice mails fails

I'm altering different emails from my hook_mail_alter(&$message) function. But for some reason altering the email sent by commerce invoice module is not working. I'm trying to do it like: switch($...
0
votes
0answers
21 views

Make Paypal checkout wait for checkbox state

I wrote a small module to display an "agree-to-the-terms"-checkbox in Drupal Commerce checkout pane, following the documentation HERE and tweaked it to my needs. My PHP looks like this: <?...
0
votes
0answers
25 views

I am hitting 150lb per package limit on UPS with Commerce Shipping on D8

I have a project that needs to get quotes (via UPS) of 4 50lb packages. I'm hitting the 150lb per "package" limit/error. Are there any solutions for changing the shipping request to UPS be ...
0
votes
1answer
357 views

How do you programmatically get the shipping information from a placed order?

So far I have a working piece of code that sends me an email ($to variable) when a new order has been placed on my drupal 8 commerce. This is not the email the person that places the order gets. As ...
1
vote
1answer
389 views

Categories and brands

I have a product catalog that I would like to categorise into different categories (and subcategories). I would also like to have a grouping of the products by brands (which of course are orthogonal ...
2
votes
2answers
573 views

Update price via AJAX

I created a content type (main prod) that is referencing a product content type (sub prod). The sub prod is also referencing another product content type called (option sets) which will be the option ...
2
votes
1answer
769 views

Commerce Attribute price is not updating in cart

I am using commerce price attributes module then I am facing problem , price is updated on the product display node but not in my cart...also, there is no line item for the added price attribute. ...

1
2 3 4 5
75