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
0
votes
2answers
461 views

How to add Drupal Coupon discount for selected category or item only?

Project: Commerce Coupon Version: 7.x-1.0-beta7 Hi, We are using drupal percentage coupon module for our websites and its very good.We have a request from customer where they need to exclude ...
0
votes
0answers
10 views

What is the correct way to create a store with REST API?

method: POST url: http://localhost/drupal/entity/commerce_store?_format=hal_json Headers: Content-Type:application/json Accept: application/json X-CSRF-Token: ...
0
votes
0answers
8 views

Variable price field for donation

Is it possible to create a variable price field where the user may enter any donation amount they like.
5
votes
1answer
2k views

How do I bypass cart and go straight to checkout?

I know that you can easily achieve this functionality in Drupal 7 with the Rules module or using the Commerce Checkout Express module. Since Rules and Commerce are not that much integrated yet, I am ...
1
vote
1answer
488 views

Taxonomy view doesn't display products

This is the situation. I have a product type and in this type i use a term reference field. Then i add some products. Next step, i create the product displays using the product reference field (the ...
0
votes
1answer
478 views

Why does the same Rule Calculating The Sell Price Of A Product fire multiple times?

I'm having dreadful performance with Commerce Kickstart 2. Trying to troubleshoot. I noticed that when viewing any Product in the catalog, the Rules Evaluation log looks like the log below. ...
0
votes
1answer
521 views

How to add Shipping method for commerce flat rate module?

i am working on drupal commerce's "shipping" part, i want to create two methods for shipping as 1.Free Shipping 2.Express 2-day Shipping for USA . For "free shipping" condition is if order total ...
0
votes
1answer
376 views

Address Module 8.x-1.3

I am trying to run address field on my web page, but I get an error The website encountered an unexpected error. Please try again later. So I checked the logs and get Error: Class 'CommerceGuys\...
-2
votes
0answers
18 views

Drupal begins, shipping module, different prices for different cities

I hope someone can help me with my problem. I am migrating a woocommerce website to drupal commerce, everything was going well until I had to configure the product shipments. Woocommerce has a ...
1
vote
2answers
1k views

Add to cart form AJAX not working when loading a product display via AJAX

I am trying to create "quick buy" functionality. I have a product listing and a customer is able to click on "quick buy" for that product and then I want to be able to load up a view mode for that ...
0
votes
1answer
463 views

How to setup a rule to redirect to shopping cart?

I am trying to create a rule that after a user creates an account they are sent to a Checkout page that will eventually have them pay via PayPal ( I am using the Commerce Module ). My steps so far ...
0
votes
1answer
387 views

Currency switcher

Is there a currency negotiation service in Drupal Commerce 8? How can I change product currency on my multi currencies e-commerce?
0
votes
0answers
14 views

How do create /cart page html twig file in drupal commerce drupal 8

I am using drupal commerce module in drupal8. And I want to create a twig file to change the layout of cart page. Like I want to divide this cart page in 'col-sm-4' in three part. for this I am not ...
0
votes
1answer
44 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 ...
1
vote
2answers
583 views

Shopping cart form footer

I wanto to display Prices with no decimal Places, in shopping cart footer (commerce order: order total ), but in the shopping cart view i found nothing to which does this. what shoud i do?
0
votes
2answers
458 views

product display image not showing drupal

I have a question about Drupal Commerce (I'm using Drupal 7). I've added a number of products and created a multi-product display for them. I added a product image (it's common for all these products) ...
1
vote
1answer
553 views

How to apply (% off) commerce discount for second and next items only if line item quantity > 1?

Using Commerce Discount and Commerce Discount Extra modules there is no problem to set discount rule condition for product type and quantity. This way I can set up 20% off discount that is applied for ...
1
vote
1answer
476 views

How to add custom price for custom line items added using commerce customizable products?

I have created custom line items using "commerce customizable products" module by following the steps provided in this screencast. I want to add custom price for each added custom line item and it ...
1
vote
1answer
23 views

Drupal Commerce and large product inventories

Does anyone have any insight into using Drupal commerce with a large inventory? We are utilising using Drupal 8.1 headless and scoping an eCommerce integration using Drupal Commerce with around 30 ...
2
votes
1answer
474 views

Pricing changes based on line item fields in the add to cart form

I've been using commerce_custom_product to add custom line items options to products I'm selling in the shop. The shop is selling servers and if someone when adding a server to their cart wants a ...
0
votes
1answer
535 views

Show attribute widgets even if the Add to Cart form only represents one product. - Does not work

I'm having problem with display option, of Product variation field as "Add to Cart form": With that option it should show variation switcher, whenever there is one or more product variations. But it ...
0
votes
2answers
539 views

How can I force users to input a shipping address when using the Commerce Paypal WPS submodule?

I just built a store in Commerce using Drupal 7 and I am taking payments by the Commerce PayPal WPS submodule. However, when I tested checkout, I found it was possible to buy a product without ...
0
votes
1answer
297 views

Drupal 7 commerce stripe stripe-php library refuse to load

I'm trying to implement commerce on my D7 site and after installing packs of modules I've installed commerce_stripe module to use Stripe payments. After I created all necessary things(stripe account, ...
6
votes
1answer
476 views

Order list: Pay unpaid invoices

I have created some extra statuses: Paid and Unpaid. Now they got the functionality and react on the transaction balance perfectly fine. However, on the user site, it is kind of a dumb thing. Even ...
1
vote
1answer
682 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) ...
2
votes
2answers
773 views

Overriding an entity add/edit form through alterroute

I want to create my own version of the add/edit form for an entity defined in contrib module (drupal_commerce). I assumed i'd be able to adapt the example here http://www.foreach.be/blog/how-...
0
votes
1answer
458 views

Price formatter for range of variation products

Is there a way to write a price formatter to display the lowest and highest price of a collection of product variations? My reason for thinking it might not work is the scope of the product variation ...
0
votes
2answers
340 views

Drupal 8 Commerce: Pay-Per-Node Functionality

My client would like a content type that has to be purchased by a registered user on a node-per-node basis. A previously registered user will see a view with the available content they can purchase ...
3
votes
1answer
530 views

URL to catch post data from off-site payment gateway in Drupal commerce

We have to set up an Drupal 7 e-commerce site with Commerce module (Kickstart) that accepts payments via an off-site payment gateway. For which we are developing a commerce payment method that will ...
2
votes
1answer
520 views

Why doesn't my code to save an order work when invoked by AJAX?

I am programmatically creating an order in Drupal Commerce. It works perfectly with a user who is logged in, but for anonymous users it redirect to a checkout page and shows a "page not found" message....
1
vote
2answers
885 views

Add print button in the “Review order” page

I want to know, is there any way to add print button to "Review order" page. by clicking this button, a pop up page is loaded with good style for print mode and user can print the cart items , taxes ...
0
votes
2answers
36 views

Commerce 1 or Commerce 2?

I am not a developer although I have been using Drupal since it came out 19 years ago. I have an existing D7 Ubercart site that works well, but I want to move to Drupal Commerce. I have installed ...
0
votes
1answer
514 views

Custom Theme for Commerce Kickstart 2 not working as expected

hi I followed this really good guide on how to create a custom theme for Commerce Kickstart. Basically this is what I did: made a copy of - xx\profiles\commerce_kickstart\themes\omega\starterkits\...
5
votes
1answer
572 views

Drupal Commerce causing database deadlocks

I'm trying to get to the bottom of a known Drupal Commerce bug to do with row locking. When a user logs in on my development site, Drupal Commerce starts multiple identical queries that look like ...
1
vote
2answers
461 views

How do I display a block on the checkout page based on the product type?

I have created some custom blocks in code that are shown on the Drupal Commerce checkout page. I would like the block to have differ content basing on which items are in the cart. How can I achieve ...
0
votes
3answers
1k views

Show tax from shipping?

I'm building on Commerce Kickstart 2. The problem is that for shipping it displays only flat price, there is no tax amount calculated seperately. Is it possible to shipping like: Express shipping ...
0
votes
0answers
10 views

Adding a value to shipping cost by product type

Actually i have a drupal 7 with commerce, and only one product type with his shipping cost. I want to had 2 new product types (easy) but i want also to add a special amount when this types are on the ...
0
votes
1answer
474 views

Commerce Product Collection View Block: What Determines CSS For Each Header Link?

In Kickstart 2 there is a view called collection_products which displays a list of products in a given collection, grouped by category. There is a header which uses a Block display to give anchor ...
0
votes
1answer
546 views

Permissions to edit only the Status of an order

I have created a role called "Order Manager", he should be able to View all the orders. Update the status of any order. Not be able to edit(can edit only the status field, nothing else)/or delete any ...
0
votes
1answer
101 views

Creating commerce users programmatically

I need to import customer data from CSV files with billing and shipping data using Drupal 8.8 and Commerce 2. I want to create the customer with its address data programmatically, but i do not know ...
0
votes
1answer
17 views

mysqlnd with php7.3 on debian buster

I ma quite new to drupal . I've tried to install commerce 2.x on debian 10. However, php-mysqlnd is only a virtual package referring to php-mysql. there is no real mysqlnd and commerce gets stuck with ...
0
votes
1answer
527 views

Filter and display all commerce product sales by date in a block?

In my Commerce Order settings I have created a custom select list field with the following Allowed values. Allowed values list 1|01/03/2013 2|02/03/2013 3|03/03/2013 4|04/03/2013 ...
0
votes
0answers
22 views

How can you calculate shipping costs by weight and city?

I am using commerce in drupal 8. What I need is to add some conditions in shipping cost like the following: if the weight is less or equal to 3kg then: For Athens 5.00€, Outside Athens 6.00€ ...
2
votes
1answer
521 views

Selecting a product attribute from a select list won't update other attribute fields

I'm working on a store created with Drupal Commerce where I have first created a product variation, then I created a corresponding product display type and finally I created different products, e.g. ...
1
vote
0answers
30 views

Drupal Commerce 2 updating with composer

I am a retired civil servant -- NOT a developer by a long shot -- and while I have used Drupal for about 19 years, I am new to composer and drush and Drupal Commerce 2. I was able to successfully ...
1
vote
2answers
652 views

How to resolve fatal error 'Cannot redeclare commerce_kickstart_preprocess_html'?

I have installed an ecommerce website with Commerce Kickstart, not in demo mode. Everything was OK and I began to add products and then my problem started; when I click on 'products category' I ...
1
vote
2answers
45 views

How do I update customers cart prices and add discount and then let them checkout?

I'm using Drupal 7 Commerce and Commerce discount, amongst many others. So the use case is this. We often get enquiries for bulk orders containing many products. We want our customer to go to the ...
0
votes
2answers
539 views

How do I fix this commerce_auction_node_presave error message?

I am working on a reverse auction for our youth group. I'm using D7 with the commerce_auction module. I ran into the error below when setting up the content type for the auction: Notice: Undefined ...
1
vote
1answer
569 views

Why my query string generates page not found for my view?

In Drupal 7 I'm using a view export to download information for my orders. If i go to the default url /admin/commerce/orders then the page downloads correctly. However, I also have some filters so I ...
0
votes
2answers
153 views

How do I overwrite a page template?

I created a bunch of products, but I need to style them per the designer's design. I know that I have to overwrite the template from /modules/contrib/commerce/modules/product/templates/commerce-...

1 2 3 4 5 73