Questions tagged [commerce]
One of the modules that implements an eCommerce framework and ecosystem is the Drupal Commerce module.
3,877
questions
1
vote
0
answers
12
views
Always charge the most expensive flat rate shipping in an order
I have a Drupal Commerce site with two product types. One has free shipping, and the other costs € 3,-. When both products are in the cart, the customer is allowed to choose either of those rates, ...
1
vote
1
answer
469
views
Set default "Quantity" dropdown select in product. Commerce Kickstart
Using the Commerce Kickstart distribution I have a shop site listing products.
The product page shows a Quantity widget to allow the buyer to choose the product quantity to be added to the cart. (look ...
0
votes
2
answers
603
views
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 ...
1
vote
2
answers
399
views
Is it possible to turn off Ajax load for Commerce Coupon Module?
I am getting a bunch of issues with the Commerce Coupon module 7.x-2.0-rc3. Mainly there are inconsistencies with the forms updating and also intermittent timeouts. I'm assuming it's an Ajax load ...
0
votes
2
answers
548
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
1
answer
450
views
Users can't cancel their own order
I'm using Drupal Commerce Kickstart to create an E-commerce website.
How can customers cancel their own order if they accidentally ordered some wrong product?
0
votes
1
answer
576
views
How do I change order of completion rules in checkout?
How do I change the order in which completion rules fire?
There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it's never executed.
I see no ...
-1
votes
0
answers
7
views
End User page to place orders (i.e. Product display)
Team and contributors,
I am a long time Ubercart user and am accustomed to building a View to display products for purchase with attributes and options (and adjustments.) It seems that UC is now kind ...
0
votes
0
answers
10
views
Auto increment value less than max uid on users table
I'm seeing these errors flooding my log file.
They come from commerce order complete pages - and some registration pages too.
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity ...
1
vote
1
answer
634
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
1
answer
679
views
How can I translate the checkout system?
I have been translating my Commerce Kickstart site with no ease although with success until now. Have translated content, taxonomy, product fields etc, following some tutorials and Drupal own ...
1
vote
3
answers
856
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
1
answer
20
views
Export product image with Commerce Cart API module
I'm usng the "Commerce Cart API" module on my website to build a custom cart js layer.
The problem i am facing is the purchased entity has a field_image field and I would like get the url of ...
0
votes
1
answer
507
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.
...
2
votes
1
answer
493
views
How do I change the front page?
In commerce guys demos store I toggled off the main menu in commerce kickstart template and have enabled the main menu block to stay on sidebar first block. I want to get a vertical main menu instead ...
1
vote
1
answer
659
views
Is there any way to make Commerce Customer Profile save/store data in a predictable manner?
Heres the thing. We have a customer profile of type 'Delivery' which contains a delivery address for an order. It also has other non-addressfield data like driver route, delivery day (M-F, day of week)...
0
votes
0
answers
19
views
How do I conditionally restrict an attribute
I'm using Drupal Commerce 8.x-2.x on Drupal 9.5.x. I need to restrict a particular product attribute to certain regions (regions selected via an attribute). My thinking is that the region is selected ...
0
votes
0
answers
13
views
Switching from table to graph give wrong data
I'm using the Drupal Commerce Report module as a base for my stats. I have a table which give me data about my sales per month.
I'd like to use graph instead of table, to make it easier to compare. ...
1
vote
1
answer
524
views
Alter product variation view
I want to alter product variation view and want to display a new form which value depends on variation price. I can add the field to the node using hook_node_view_alter() but i want to add it to the ...
2
votes
1
answer
598
views
How to implement a Rules Action to loop through quantity of a products bought?
With the Drupal Commerce module, I created a new product type I use for selling points to my customers. The product has a custom field named “points” (field type integer) where I specify the amount of ...
0
votes
2
answers
50
views
How do I get the product item author id from the order object?
I have a website, where users can add their products. After a user purchases a product and pays for it, I want to create some custom logic. I need to know the authors of the individual items purchased....
1
vote
1
answer
502
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
0
answers
18
views
How to add variations of a product to the cart if only the first variation have all attr values
Consider a product. For example it has 5 different colors that is 5 product variations. But all other values of the product's attributes (size, weight etc.) are the same for all the variations of the ...
0
votes
2
answers
920
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 ...
0
votes
1
answer
405
views
How do you provide conditional checkout options depending on whats in the cart?
Is it possible to provide different payment options depending on what is in the cart? Say someone wanted to purchase a service vs a physical product. For service related items, I want to be able to ...
2
votes
3
answers
869
views
Hide products from a view
I know this may be very basic but I can't seem to figure out a way to hide a product that I've got set up in Drupal Commerce. I'm new to Drupal so thanks for your patience.
I am using the Expressa ...
0
votes
1
answer
496
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
1
answer
576
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
5|05/03/2013
...
3
votes
1
answer
608
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
1
answer
489
views
Admin approval of Commerce order
I am building a proof of concept ecommerce solution using commerce kickstart v2
I wish to implement a system where a user can submit an order but an admin must approve orders before the customer can ...
0
votes
2
answers
656
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
1
answer
602
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
3
answers
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
1
answer
505
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?
8
votes
1
answer
492
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 ...
0
votes
0
answers
8
views
Why aren't my states showing in the Default field when setting up Order Items Type State Workflow for order fulfillment?
I'm following the instructions to set up Order Fulfillment States as per Working with state fields but when I attempt to add a new State Field the states specified in my module.workflows.yml aren't ...
1
vote
2
answers
1k
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 ...
-1
votes
1
answer
22
views
Orders view personalization
Apache 2.4.29 + php8.1 + mySQL 5.7.41
Drupal 9.5.3
Commerce 8.x-2.33
Hi all folks !
I'm trying to personalize the orders view with custumer's name, adress, ...
To do that i add the "commande"...
0
votes
2
answers
607
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
2
answers
476
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) ...
0
votes
1
answer
556
views
How To get transaction details in commerce checkout complete page
Can anyone please help to get the transaction details in commerce checkout complete page. I could get using hook_commerce_checkout_complete($order). I can show the success/Error transaction and order ...
2
votes
1
answer
380
views
How to add a Related Products View for Commerce Kickstart?
I am trying to show related products in the products display for Commerce Kickstart. I tried using the method outlined in this tutorial but ran into a couple of issues:
The "Target Type" in the ...
0
votes
2
answers
470
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 ...
2
votes
2
answers
618
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 ...
1
vote
1
answer
489
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 ...
0
votes
1
answer
587
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
1
answer
829
views
Set default value for Enity Reference using View and Entity Reference View Widget Checkbox
Basically i have a field (in line item(commerce custom product)) with Field type: Entity Reference and Widget:View. The view is a list of terms and has an aditional field type:Entity Reference View ...
-1
votes
0
answers
27
views
Conditional checkout panes
In a pre-existing commerce setup (Drupal 9, Commerce 2), I have a need to show a login/register pane only under certain conditions.
In case A: if the user isn't logged in, the use case wants anonymous ...
0
votes
0
answers
10
views
onNotify called 3 times on error returned
I'm using the OffsetRedirect.php file to handle the return of my bank when the user pay his order.
Inside this file, i use the onNotify() method
public function onNotify(Request $request)
{
$...
0
votes
1
answer
475
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 ...