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
0answers
16 views

I’m trying to create a link to a user user/%user/stores on a commerce marketplace and open social

I’m using commerce marketplace and open social, I need to create a link to the user products and my store. But somehow I’m not able to get it running. I keep getting access denied when using "...
-3
votes
0answers
16 views

Webform form payment

Am working to enable payment after filling up a webform in a Drupal 7 site. Specifically users can fill up a form and before the form is submitted should pay a small fee. Once the transaction is ...
-3
votes
0answers
30 views

Different prices for each country?

I'm working on shop that covers multiple countries and I need a way to have different prices of some products for each different country. I.e. t-shirt in Italy costs 15 €, but in USA it costs $17 and ...
0
votes
1answer
17 views

Get product variation type from item id [closed]

How can I get programmatically the product variation or more specifically the product variation type by the item id from an order? In the view, I manage to do this by relationships order item and ...
-2
votes
0answers
22 views

Serialization failure Deadlock found

I am using AWS Services CDN and I get the following error while adding products. Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying ...
0
votes
0answers
20 views

Drupal 8 Commerce : How to do 0$ checkout? [closed]

I am using Drupal 8 commerce. Is there any module for gift card or we need to consider as Product entity. Because Gift Card only contains : Image, Code, Start Date, End Date, Enable/Disable. First ...
0
votes
1answer
589 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 ...
0
votes
1answer
376 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 ...
0
votes
0answers
13 views

Get the current ProductVariation from the formElement of a custom widget in the “Add to cart” form

I've a custom field in my Order Item, i need the value of a field of my ProductVariation in the widget of my custom field. Let's say that my Variation has a "remote ID" field, when i select ...
3
votes
1answer
540 views

How to create a packing slip?

We want to be able to print a packing slip from a completed order. I see that the line items is a view but how can I create a new page or tab on the order page to display a clean packing slip?
1
vote
1answer
493 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
18 views

In the settings for payments, what is the meaning of “Test transactions in a live account”?

What actually happens if I complete a transaction with the payments setting on "Test transactions in a live account"? The only documentation I see is language like "Under Transaction ...
-3
votes
0answers
27 views

ERPAL Stripe payments not showing up

I've been given a Drupal 7.x ERPAL (https://www.drupal.org/project/erpal_platform) project to maintain and I'm attempting to add online Stripe payments using Commerce Stripe (); it may also be worth ...
-4
votes
0answers
17 views

Problem Add to Form Lost [closed]

Hello I have a problem the button add to the cart not found, do not show.
2
votes
1answer
466 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 ...
2
votes
1answer
468 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
2answers
426 views

Hide progress bar

I am using commerce checkout progress module for showing the checkout progress to the user. I am showing this block in cart page also. I want to hide this block if the cart is empty. How can I ...
0
votes
1answer
23 views

How to get user all order_items from different orders by entityQuery

I want to know if the user has purchased the specified product. I know the SQL. But I am learning to use entityQuery. Example: user_id = 1, product_variant_id = 5 SELECT * FROM commerce_order ...
0
votes
0answers
21 views

Alter Address field in order to add a list of cities

I need to alter the address field because I want to transform the locality textfield in a nested select box along with administrative_area value. I've tried to do that with a hook widget_alter, form ...
1
vote
1answer
40 views

What are the effects of the “access commerce administration pages” permission

The SA-CONTRIB-2020-020 security patch was titled "Further restrict anonymous user access to anonymous orders." Unfortunately it seems to have broken some sites I work on. We are now seeing ...
6
votes
1answer
480 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
0answers
24 views

Class not found in Drupal\Component\DependencyInjection\Container->createService()

I have a custom module (srs) that has an event subscriber as a service. That event subscriber class uses other custom helper class files after it catches the event. I tried to register the helper ...
0
votes
1answer
59 views

How to imitate EVA with TWIG?

On my Drupal 8.9 (with Twig Tweak module) home page I integrated a block with the following code : {{ drupal_view('accueil_page_liste_des_taches_boutique', 'block_1') }} This block displays the ...
0
votes
0answers
9 views

How to access custom customer shipping profile fields during shipping calculation

I'm attempting to create a shipping calculation based on fields I've added to the shipping customer profile however I've been unable to access them through either the rules interface nor by creating a ...
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
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 ...
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 ...
1
vote
1answer
563 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 ...
0
votes
1answer
537 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 ...
5
votes
1answer
592 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
587 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
0answers
28 views

How do I create a view showing all the commerce store products?

I am using Drupal 8 Commerce v2.19. I am trying to create a view that shows all the store products. I have created the Search API index of the products, indexed the store field as in this screenshot. ...
0
votes
2answers
459 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
2answers
545 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
29 views

Ajax callback never called / triggered

I'm working on a payment gateway, so I've created a BasePaymentOffsiteForm form where I'm trying to make an ajax callback, but it is not working. Can you help me to know what is wrong with my code? ...
0
votes
1answer
462 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
1answer
479 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
2answers
21 views

After selecting “My billing information is the same…” an Edit button is shown

QQ - When registered user goes through their cart to their payment information the "My billing information is the same as my shipping information. - Optional" is shown as default checked. ...
1
vote
0answers
30 views

Trying to add a shipping calculation rule using “Order Address component comparison” condition

I'm attempting to create a basic "Shipping rate by country" Calculation rule in Drupal Commerce using the Flat Rate shipping module. I've followed the official tutorial for this exact thing (...
0
votes
0answers
58 views

How to render in commerce-product.html.twig calculated price?

I can render calculated price via {{ product.variation_price }} Is it any chance to this price from product_entity variable in twig? I have used custom resolver class to update price. updated at 16/06/...
0
votes
1answer
418 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?
1
vote
1answer
478 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
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
1answer
544 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 ...
2
votes
2answers
862 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-...
1
vote
3answers
755 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
2answers
422 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 ...
0
votes
2answers
26 views

How do I recalculate the price based on a given address?

I have a basic commerce shop setup and I need to recalculate the price based on the delivery region within the country. The first approach I tried was to add a list field for the customer profile ...
0
votes
2answers
39 views

Product structure

While building a demo webshop for wine, I am not sure about how the product structure should be. So, I have to map the next structure and I am not sure what is the right approach. For example, we ...
0
votes
1answer
26 views

Show the cart icon only if it exists and it isn't empty

I'm looking for an easy way to show on my template a cart icon only if the cart has 1 or more elements (Drupal 8, commerce 2.x); I've tried with a view, but I had problems to identify the cart ...

1
2 3 4 5
74