Questions tagged [plugin-craftcommerce3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 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
17 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. ...
0
votes
1answer
11 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
28 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
21 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 ...
1
vote
1answer
19 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 ...
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
24 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 ...
1
vote
2answers
91 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
0answers
22 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 ...
0
votes
0answers
17 views

Address validation error on add to cart

When using EVENT_DEFINE_RULES in module adding items to cart fails as address validation is run. Should address validation only happen when address fields are present in the post data to 'commerce/...
1
vote
2answers
26 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
39 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
57 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 ...
0
votes
0answers
19 views

Craft commerce stripe - Starting subscription without payment fields

Is there a form similar to {{ plan.getGateway().getPaymentFormHtml({})|raw }} for starting a subscription that has a free trial, without taking payment details? So essentially when the trial is up, I ...
0
votes
0answers
19 views

Craft Commerce Fixed Shipping Rate (without currency conversion)

I'm trying to create a fixed shipping rate that isn't affected by payment currencies - it's X2.50 where X is whichever currency. I've been trying with an adjuster but it's also affected by the ...
1
vote
1answer
20 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
51 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
34 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
29 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
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 ...
2
votes
1answer
40 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
65 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
1answer
106 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 ...
0
votes
0answers
16 views

Shipping Rules and Shipping Categories

I'm trying to set up some shipping rules. I've created a new shipping category called "Sample" I can apply it to the product fine. When I set the rules I want and then head to the checkout ...
2
votes
1answer
172 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 ...
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, ...
0
votes
0answers
24 views

Default stock levels when importing Commerce products with FeedMe

I've got a Commerce 3 store where the customer maintains the majority of the product listings by updating a Google Sheet, very few fields are edited via the Control Panel. However, now they are ...
1
vote
1answer
162 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
52 views

Lightspeed retail POS integration with Craft Commerce

Does anyone know of a plugin to integrate Lightspeed retail and Craft Commerce?
1
vote
1answer
28 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 ...
0
votes
0answers
13 views

Craft Commerce cart carrying over to other sites

I've never noticed this before and am wondering if this is what is supposed to happen. I have my main site and a subdomain set up, I've never noticed my orders carrying over from one site cart to the ...
1
vote
1answer
20 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 ...
0
votes
0answers
63 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 ...
0
votes
0answers
15 views

Is it possible to get the user groups or categories that a sale applies to?

I have set up sales and discounts that apply to certain categories and certain user groups. Craft commerce "knows" which categories and user group this sale applies to and I can get a list of sales ...
1
vote
1answer
94 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 ...
0
votes
0answers
78 views

Craft Commerce 3 Custom Adjuster

I created a new plugin to register an order adjustment to remove tax for Tax Exempt customers, but I'm having troubles getting the adjustment to actually take place. I have a main plugin file as ...
0
votes
0answers
22 views

Eager Loading in commerce cart

I'm trying to improve the performance of the craft commerce checkout process. I have some image thumbnails in the cart. Since I can't cache the cart I want to use eager loading for improving the db ...
0
votes
0answers
20 views

At what point is siteId set for orders?

I have an adjuster I am trying to get to work, but the order has to come from a specific site in order for the adjuster to be applied. The siteId is 2, but when I try to get the siteId from the Order ...
5
votes
1answer
52 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/...
0
votes
0answers
13 views

How can I change a Commerce tax rate dynamically mid checkout flow?

Many European countries have different tax rates for food and non-food items purchased. For example, Austria charges 10% for food items and 20% for non-food items. Germany, however, has 7% for food ...
1
vote
1answer
27 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 ...
0
votes
0answers
20 views

Paypal Express, Commerce 3.0, more information on Paypal Invoice

Using Craft 3.4.9 and Commerce Pro 3.0.11 What's the best way to get more information onto a Paypal invoice so that I can match Paypal data with a Craft Commerce order? Does anyone have some success ...
1
vote
0answers
27 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 ...
2
votes
1answer
55 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 ...
0
votes
0answers
12 views

Distribute entries to a specific user group

I'm a complete module/plugin newbie and I'm trying to find a solution for this issue, but I really don't know where to start. I have a subscription model in which each month a bundle of digital goods ...
1
vote
1answer
45 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
15 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 ...
1
vote
1answer
44 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
22 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 ...