Questions tagged [plugin-craftcommerce2]

Questions related to the Craft Commerce v2 plugin.

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

Update an order afterwards

Have to update an order afterwards cause the client can choose a retail partner. <form method="post" name="submitOrder" style="width: 100%" onkeypress="return event.keyCode != 13;"> <...
2
votes
0answers
54 views

Add custom column to the orders list page

Does anybody know if it is possible to add a column to the orders list page? I can choose the 'Foo' label, but when the page want to show the orders list I get the following error: "{"error":"An ...
2
votes
0answers
91 views

Commerce 2 Multi-site Support

I'm currently working on a multi-market Craft3 project with Commerce2. Each product can and will have a different fixed price on each page. Product A project.tld/de-de - € 120 project.tld/en-gb - £ ...
1
vote
2answers
159 views

Commerce 2 Subscription Prices

We've currently got Subscriptions setup on a site which works a charm, but my main issue is outputting the price of the subscription, after the user has subscribed. From the docs/templates I can even ...
2
votes
2answers
59 views

How to get all users with active Commerce 2 subscription

How do I get all the users with an active subscription in Commerce 2? I want to be able to filter entries by subscribed users.
1
vote
1answer
246 views

Using a custom Commerce 2 Adjuster in a Craft Plugin

I wrote a little commerce 2 price adjuster that works fine if i place it in /vendor/craftcms/commerce/src/adjusters/FriendsDiscountAdjuster.php and register it manually in /vendor/craftcms/commerce/...
1
vote
1answer
78 views

getTransactionByHash() must be of the type string, null given

I'm building my first Payment Gateway (offsite gateway) for Commerce 2. This one is for Moneris. I'm hitting an error when the page returns the response. Argument 1 passed to craft\commerce\...
2
votes
1answer
275 views

Is it possible to import orders into Craft Commerce?

We have to migrate a CSV dump from a Drupal commerce shop to Craft Commerce. It is important to import ‘Order Email’ / ‘Username’, ‘Order Date’, ‘Ordered Items’ (Name or ID), ‘Item Price’. Address ...
1
vote
1answer
241 views

Craft Commerce 2: PayPal Express not working - Correlation id: unknown

I try to get PayPal Express running but have quite some difficulties. I use the default templates for testing and can get through the whole checkout and payment process, but then PayPal closes and in ...
1
vote
0answers
81 views

Craft Commerce 2: Get products which are availableForPurchase

I try to get all the products of a certain category which have availableForPurchase set to true. {% set criteria = craft.products.type( 'weine' ).relatedTo( cat ).search( 'availableForPurchase:1' )....
2
votes
1answer
131 views

User-determined price for a product variant?

Is there a way in Craft Commerce 2 to have a user-input price as a product variant? In my case, I'm offering several pre-set amounts for a donation product (each is a variant), but I also want to ...
1
vote
1answer
64 views

Is there a way to localise error messages in Craft Commerce 2?

I'm using Craft Commerce v2 on a Craft 3 Pro website. The checkout process of the shop includes a number of forms such as the ones that visitor can use to add or edit shopping and billing addresses. ...
2
votes
1answer
466 views

Craft Commerce 2 - get order data for plugin

I want to write a plugin which writes all the order data into a CSV file. Unfortunately the documentation for Commerce 2 isn't quite complete yet so I have difficulties to find out how to do the ...
1
vote
1answer
135 views

Upgraded to Craft 3 and lost my Commerce Gateways

I upgraded to Craft 3 and I went to my payment gateways and I have the old ones in there with no details such as keys. And my only gateway options are Dummy and Manual. I know there were changes such ...
1
vote
0answers
49 views

Complex shipping logics

In Craft Commerce 2, we have two shipping categories: PostNL, which is one of the Dutch main shipping methods, which we use for packages that fit in the mailbox. For this category we use the weight ...
0
votes
0answers
79 views

Custom Commerce product type URL from custom field

I've run into a dead end when trying to create custom URL's for a product type in Commerce 2. I want to create the URL from a custom field -- a Commerce Product field to be exact. This product does ...
2
votes
1answer
95 views

How can I show a list of product options as checkboxes in the cart?

In my cart (Craft3/Commerce2), I need to show a line item's possible options from a checkbox field called "productOptions", and allow the user to select the desired options. Based on the Craft Docs, ...
1
vote
1answer
528 views

Craft Commerce 2 — Remove Line Item (and other actions)

Knowing that all other actions besides update-cart has been deprecated I'm curious what needs to be passed with the action to remove a line item from the cart using a button as opposed to check a ...
2
votes
1answer
142 views

Getting previous order history in a Commerce 2 adjuster

I am trying to write a Commerce 2 adjuster that will apply a discount on all items from a specific type if a customer bought a specific item with another product type in the last year as well as a ...
1
vote
1answer
248 views

302 redirect when updating the cart via Ajax using Craft Commerce 2

I'm working on a site that has recently migrated from Craft v2 with Commerce v1 to Craft v3 with Commerce v2. Using Commerce v1 I was able to update the cart via Ajax and get a data object with the ...
1
vote
1answer
315 views

Craft Commerce 2: Subscription Payment Gateway

I am working in Craft 3 with the Commerce 2 plugin. I am trying to create new subscription plan there. But I am not able to do so because I don't have any Payment Gateway Installed that supports ...
1
vote
1answer
65 views

Is there a way to retrieve discounts for a product in Craft Commerce v2?

I would like to retrieve all available discounts for an eshop using the Craft Commerce v2. In Craft Commerce v1, I could use the following: craft.commerce.discounts.all() However, I can't find an ...

1 2 3
4