Questions tagged [plugin-craftcommerce3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
59 views

Import Stripe subscriptions into Commerce 3

Is there a straight-forward way to import Stripe subscriptions into Commerce 3? I had hoped FeedMe or similar would do it, but it seems not: https://github.com/craftcms/feed-me/issues/472 Any help/...
3
votes
1answer
62 views

Is it possible to provide an option to pick up an order from the physical store in Craft Commerce?

We're setting up a Craft Commerce site and the merchant wants to give the option to the customer to pickup the order from their physical store instead of shipping it to a specified address. If the ...
2
votes
1answer
201 views

Commerce: what is the purpose of a line item's snapshot?

Having nearly completed my first real Commerce project, I managed to utilize most of the features offered in Commerce 3. However, I never quite figured out what the use of a line item's snapshot is ...
2
votes
1answer
26 views

Partially pay for an order

Is there any way of partially paying for an order, so if the order total amount was $100, how can I programmatically set the payment amount to $50, and then pay the other $50 using another payment ...
2
votes
1answer
18 views

paymentMethodID payment method id cannot be blank

We're using Craft Commerce 3.2.11 and Stripe as the payment gateway. We can put through a purchase using test cards no problem, but when we try with an actual card we get the message: paymentMethodID ...
2
votes
1answer
193 views

Generate PDF Receipt in Craft commerece causes error in dompdf

We are using: Craft 3.4.20 with Commerce 3.1.4 and PHP 7.4.6 We tried to generate a PDF of an order with default settings and template in cp We got following errors: yii\base\ErrorException: Invalid ...
2
votes
1answer
43 views

Commerce: are Shipping prices always assumed to include tax?

A client is asking if the order calculation can show a 20% tax calculation on the shipping price. From looking through Commerce 3, it seems this isn't possible, eg Shipping prices are always assumed ...
2
votes
1answer
77 views

Best approach for Craft Commerce 3 - Variants & Custom Text

I'm working on a Craft Commerce 3 project and for something I initially thought would be easy to do with variants seems to have completely thrown me off course so any feedback would be great. I have a ...
2
votes
0answers
109 views

Commerce 3 products with dynamic options

I am well-versed in CraftCMS and am finally able to use Craft Commerce 3 for the first time on a project (first time for any version of Commerce, actually) and it's to build a platform for a butcher ...
1
vote
3answers
49 views

Get a list of countries available for shipping with Ajax in Craft Commerce

I need to fetch a list countries available for shipping in Craft Commerce. The problem is that I use decoupled frontend on Nuxt.js and I need fetch it with Ajax call and not with the twig code. I ...
1
vote
2answers
145 views

How to create a faceted search/facet filter in Craft Commerce

I want to create these kinds of filters on my Craft Commerce site: I have poked around with the Faceted Navigation plugin, but haven't gotten it to work the way I want yet (posted an issue about high ...
1
vote
2answers
133 views

How does one get an order confirmation email to fire immediately in Commerce 3?

Curious if there is a way to fire order confirmation emails immediately? Basically how this was handled in Commerce 2. There are cases, and I'm dealing with one currently, where there is no command ...
1
vote
1answer
18 views

Craft commerce 3 - Module - Lineitem - Get usergroup

I have the following code working. The only thing i have to do is to check which usergroup is the customer in. Is there a simple way to check what usergroup is the customer in? This is my first custom ...
1
vote
1answer
36 views

Remove item from cart

Ok, I'm getting pretty crazy here. I'm trying to remove a variant from the cart. Adding works fine, like this: <input type="hidden" name="purchasableId" value="{{ variant....
1
vote
2answers
39 views

Getting a new cart after adding the product in decoupled frontend

I'm using the headless Craft together with decoupled frontend on Nuxt.js. I have to implement Craft Commerce 3 cart logic on the frontend, for that purpose I'm using graphQl/axios requests. However ...
1
vote
1answer
35 views

Custom shipping cost

One of the shipping companies that my client will use works by distance. This company offers an api where you tell the pickup address and the shipping address. You also specify what type of package to ...
1
vote
1answer
29 views

Searching for a way to add products to cart and sending the csrf token with ajax

Searching for a way to add products to cart and sending the csrf token with ajax This is my current code; $('.add-to-cart-form').on('submit', function(e) { e.preventDefault() ...
1
vote
1answer
19 views

Enable single line item mode on Commerce Pro

Is there a config option or something that would enable the 1 line item limit in cart. That means once customer adds second line item to cart first one would be removed so that only one would be left. ...
1
vote
2answers
29 views

Commerce - Advanced shipping cost calculations

What is the best way to implement advanced shipping cost calculations? Custom adjusters were deprecated right? I need to add shipping costs based on the total price of all products from a specific ...
1
vote
1answer
23 views

Craft Commerce Product Options that increase price, but do NOT affect stock

My client wishes to sell artwork online. They're all one-off pieces and once one is sold, it should not be available to purchase thereafter. However, the artwork needs to have an option to be framed ...
1
vote
1answer
71 views

Commerce: How to update an order status via the frontend

Is there a way to edit an orders status via a frontend template?
1
vote
1answer
55 views

Tax validation in Craft Commerce

We have a single page checkout where the items are selected and addressed added before going to a cart summary page showing amount owed and tax due. Was confused as to why certain codes were not ...
1
vote
1answer
26 views

Accessing Commerce ‘Product Fields’ in events hooks

I've added an Entries field called linkedCourseEntry to a Product (Product Type > Product Fields tab). In the Product itself I've assigned an entry. I need to access linkedCourseEntry from one or ...
1
vote
1answer
30 views

Commerce custom field output

I have a custom field that allows customers to order a sample from a list of all products. It also allows a custom value to be entered for a custom color. I conditionally show/hide the fields with ...
1
vote
1answer
37 views

Discount for subscription plans?

In the CP there are discounts that are applied to products in cart. Is there an option in the CP to apply discounts to subscription plans or would this need to be done by creating a module? Just need ...
1
vote
1answer
48 views

Cannot delete user that was subscribed to a subscription

A user was subscribed to a subscription with 30day trial. User decided to unsubscribe "Immediately" within 30day trial. Now In CP I cannot delete this user. I check user, then delete, and confirm ...
1
vote
1answer
23 views

Commerce 3 upgrade question

We're about to launch a Craft Commerce 2 site. I'm wondering how involved the Commerce 3 upgrade is as far as template changes? And if we decide to upgrade now what's the best practice for making ...
1
vote
1answer
61 views

Server-side address validation in Craft Commerce 3

Was wondering how to do this in Commerce 3 as there were a few different older methods discussed here.
1
vote
1answer
15 views

Commerce new order error : mail::getRenderLanguage() must be of the type string

I just pushed an update to the latest version of craft cms and craft commerce and ran into an error that is blocking new orders from finalizing. Everything works on the local site. On the live site, ...
1
vote
1answer
19 views

Craft Commerce: Filter completed orders based on a product category field

I know how to filter entries or products based on a category field with .relatedTo, but how can I filter completed orders based on a product category field? In this specific case, I have an overview ...
1
vote
1answer
45 views

Craft Commerce: ordering products like a structure

Is it possible to change the order of products in Craft Commerce (3) by drag & drop? Just like it is done with the entries of a structure? If not, how am I supposed to change the order of products?...
1
vote
1answer
31 views

Craft Commerce 3 Decrease line Item qty by one?

I may be missing something obvious but I'm trying to update a +/- quantity button system for adding products to work on Craft Commerce 3 The desired functionality is that click '+' increases the cart ...
1
vote
1answer
46 views

Free shipping discount on whole order doesn't appear as adjustment

TL;DR : Free shipping on order discounts don't appear as a discount (or any type of) adjuster. So how do I check if a free shipping discount has been applied? Sorry for the long post - hopefully it ...
1
vote
1answer
72 views

Craft Commerce — Update order status from frontend?

Following on from this question Commerce: How to update an order status via the frontend We'd like to make it easy for delivery drivers to update the status of a craft commerce order, from a frontend ...
1
vote
1answer
31 views

Is there a way to control the order of appearance of shipping methods in Craft Commerce?

If there are multiple shipping methods available for an order, is there way to control the order in which they appear? The CP doesn't seem to offer a way to re-order them. I'm using something like the ...
1
vote
1answer
18 views

What happens if I change base currency

If I set say NZD as the primary currency now and then change to USD or EUR down the track will I have to re-price the products or will they pick up the converted pricing? I'm planning on having USD, ...
1
vote
1answer
227 views

Is there a guide for using Craft Commerce headless?

I’m trying to figure out the work involved in using Craft Commerce in a headless setup. Is it possible? I think so. How do I expose the Commerce functionality via an API, instead of through Twig ...
1
vote
1answer
23 views

Passing variant info

We have products with multiple variants (varHeight). The variant information get passed to the cart successfully and order emails. However, they don't show up on the control panel. How can I get the ...
1
vote
1answer
47 views

Is there a way to re-order states in Craft Commerce?

I'm setting up a Craft Commerce site and for some of the countries the user must specify a State. However, the order of states appears to be alphabetical. The problem is that the site's traffic ...
1
vote
0answers
18 views

Add custom fields to the cart line items in Craft Commerce 3

I have a product variants with the custom field for the variant image. In a cart overview I need to show an image of added line item (image should be of the added product variant if there are variants ...
1
vote
0answers
24 views

Paypal Express Redirecting to Undefined

I'm moving a site from craftcms/commerce-paypal to craft/commerce-paypal-checkout but I'm having an issue with the redirect after payment. Steps to reproduce: Choose Paypal as my gateway I choose pay ...
1
vote
1answer
61 views

Lightspeed retail POS integration with Craft Commerce

Does anyone know of a plugin to integrate Lightspeed retail and Craft Commerce?
1
vote
1answer
98 views

Update Cart’s address ID from plugin

I want to try and stop Commerce 3 creating a new customer address if it’s a duplicate of an existing one. As an example, a store selling digital products has a checkout form that simply asks for the ...
1
vote
0answers
34 views

How do I allow partial payments?

The closest thing I found to what I need is here, the problem is, even though it's only 8 months old, it appears outdated. I see there is an "outstanding balance" in the PayController, but I have no ...
1
vote
0answers
18 views

How to apply sales to custom order adjustment?

Is it possible to apply a discount voucher to custom order adjustments? EG i want 5% off everything. I have two order adjustments, one is rush delivery and the other is an engraving fee. At the ...
0
votes
0answers
13 views

Craft Commerce 3 + Stripe for Craft Commerce, error while attempting to pay with iDEAL

I'm using headless Craft CMS + Craft Commerce 3 + Stripe for Craft Commerce plugin to create the webshop. My frontend is decoupled and built in Nuxt.js. I need to implement the payment form with the ...
0
votes
0answers
18 views

How can I edit/change an existing customer's email address?

In Craft Commerce (v3), we have a number of orders of customers with a typo in their email address. I'd like to correct those email addresses in Craft, so I went to commerce -> customers. However, ...
0
votes
0answers
20 views

Craft Commerce - On the fly product / product from entry form

Good Evening. Does anyone know if the following is possible within Craft Commerce Can data from normal entries be used to populate a one-off on-the-fly product? Can an entry form be used to create ...
0
votes
0answers
15 views

Craft Commerce Barclays ePDQ integration

Has anyone got this plugin/payment gateway to work? Having issues with both client and test account details - testing on Craft Commerce 3 and know plugin was developed for Craft Commerce 2 so it is ...
0
votes
0answers
28 views

How to send automated Commerce Subscription related emails?

What’s the best way to send automated Commerce Subscription related emails? For example, if a user sets up a new subscription they would get sent a confirmation email with details about it, how to ...