Questions tagged [plugin-craftcommerce3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
40 views

Specific emails failing in queue

I have craft 3.7.11 with commerce 3.4.2 installed. The majority of site emails send correctly, but every few days, one order status change email fails. The prior emails for these orders send correctly,...
0
votes
0answers
9 views

Commerce 3: on user registration take adress also for shipping adress (stored in customer info tab in backend)

Not sure if i understand the user and customer relation correctly: i have a craft commerce site and want user to register. Right now if a user puts in all the information for registration, the ...
1
vote
1answer
28 views

Commerce: Is there any way to give a discount for Product A if the costumer buy 3 Product B?

In Craft Commerce 3, there is a Order Condition Formula that allow us to condition for the discount. So here is my Case. I have product A and Product B, so I will give a discount to Product A if the ...
0
votes
0answers
7 views

Sales not applying to products

I'm having trouble getting sales to apply to products. I'm running craft 3.7.2 and Commerce 3.3.5.1. The product I'm attempting to apply the sale to is marked as promotable. As far as the sale, I've ...
0
votes
0answers
29 views

craft commerce "Invalid payment or order. Please Review." on hasFlash('error')

Just trying to make a merchandise web shop with Craft CMS 3 and Craft Commerce 3. However, whenever payment is attempted to be made for merchandise on checkout page with commerce/payments/pay, there ...
0
votes
0answers
22 views

Commerce Trying to get property 'abbreviation' of non-object

I am getting this error after payment. payment is successfully done not redirect. And getting this error Trying to get property 'abbreviation' of non-object. I don't know why i am getting this error ...
1
vote
1answer
32 views

Checkout Without Payment

Recently Craft provide checkout without payment but not working for me. I followed the instruction of craft doc. set config variable: allowCheckoutWithoutPayment https://craftcms.com/docs/commerce/3.x/...
0
votes
1answer
27 views

Commerce search: return products containing keywords in related entries' fields

Craft CMS 3.6.11.2 / Commerce 3.2.17.4 We have a Stores structure section that contains fields (searchable) such as phone, address, etc. These Stores are assigned as Entries (searchable, max of 1) to ...
0
votes
0answers
26 views

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data when checking out with PayPal Checkout for Craft Commerce

Hi I'm a bit lost with getting my new shop to work with the PayPal Checkout for Craft Commerce plugin. I've installed the plugin and set everything up over in Paypal sandbox adding my client ID and ...
1
vote
1answer
33 views

Get related variants from entry and then show products for related variants and then loop only the variants that are related in commerce

Struggling with this one. If anyone can help me...? I have a section of entries called Vehicles. In this I have a related Variants field type. This has many different variants that related to each ...
1
vote
1answer
31 views

Do "update cart" and "complete cart" as one action

I am developing a site which has "normal" shop stuff that is added to cart and bought through the checkout process. But it also has to support submitting requests for food catering jobs. ...
0
votes
0answers
18 views

Commerce module - update purchasable ID on save line item

I'm trying to update a purchasableId against a line item (eg if the variant changes) via a custom module/controller (long story short native controller is not updating options stored against against ...
0
votes
0answers
20 views

Commerce 3 update line items

We are updating an old Craft Commerce 2 site to Craft Commerce 3 which features a fair bit of bespoke code from a previous developer. The site features bespoke pricing based on a values stored in/...
2
votes
0answers
20 views

Craft Commerce - Stock And Cart

What if two people have the same item in the cart and it is the last in the stock one of those people finishes the purchase, then technically that product is no longer in the inventory that happens ...
2
votes
2answers
43 views

Craft Commerce: Frontend Validation on Address Fields

Yes I know there is this post But how do you do address validation in the frontend of Commerce 3? The problem is the way Billing Address & Shipping Address are set up. Billing Address are the same ...
1
vote
1answer
29 views

In Craft Commerce, is it possible to make the product variant weight a required field?

In Craft Commerce, is it possible to make the product variant weight a required field? We are using weight to calculate shipping so it would be good if we could make it a required field to ensure that ...
2
votes
1answer
21 views

Is there a way to get a variants stock quantity in commerce?

Like the question says. I know you can check if a variant is "in stock" with v.hasStock, but is there a way to pull the current stock quantity value? In my particular situation I would like ...
0
votes
0answers
30 views

How to programatically (e.g. in a custom a plugin) create a Discount Code? (Craft Commerce)

I've been working on some custom plugins recently to handle various bits of API functionality for the project I'm working on, and I'm now roughly familiar with Craft's OO approach to carrying out this ...
1
vote
1answer
59 views

In Craft Commerce, is it possible to show a more meaningful error when the customer tries to add more of a product than is in stock to the cart

Currently, if a customer attempts to add a greater quantity of a product to the cart than is in stock, an "Unable to update cart" flash message in shown. e.g. there are 3 in stock and the ...
0
votes
0answers
33 views

How to validate email address entered during checkout on Craft Commerce?

The craft commerce templates have too many checkout steps for us in practice. So I have combined them. I have moved the email field into the Address page. But I can submit this form without ever ...
0
votes
0answers
27 views

Triggering different webhook when product is updated by Feed Me

I have two different webhooks that need to run when a product is saved. Webhook 1 should only run after manually saving the product Webhook 2 should only run after Feed Me saves the product Is ...
1
vote
1answer
241 views

400 bad request ("Unable to verify your data submission.") when Adding product to cart

When a user tries to add something into the cart the following error appears: 400 bad request ("Unable to verify your data submission.") 2021-02-23 09:08:42 [-][-][...
0
votes
0answers
28 views

New shipping/billing address fields getting auto-populated (Craft Commerce)

The shipping and billing address forms in our checkout are based loosely on the ones from the example templates. With the example templates, if you checkout as a logged in user and that user has ...
0
votes
0answers
37 views

Users creating their own custom subscription or bundle in the frontend?

I am trying to add a feature to a store (using Craft Commerce 3) that allows users to create their own subscription or bundle by selecting which products they want to buy and choosing the frequency. ...
1
vote
1answer
23 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
93 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, ...
0
votes
0answers
75 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 ...
1
vote
1answer
157 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....
0
votes
0answers
27 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, ...
1
vote
1answer
41 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 ...
1
vote
0answers
45 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
3answers
72 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
85 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 ...
2
votes
1answer
89 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 ...
0
votes
0answers
30 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 ...
1
vote
1answer
64 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
21 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
1answer
24 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
120 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?...
2
votes
1answer
38 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
132 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
21 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 ...
1
vote
0answers
57 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
377 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
31 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
41 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
56 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
87 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
159 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
46 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 ...