Questions tagged [plugin-craftcommerce]

Use this tag for questions relating to the Craft Commerce product.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Craft Commerce: Wrong payment currencies in orders

I have Craft Commerce installed on my site (which uses Craft CMS 3.5.14). I have set up multiple payment currencies for it (NZD - which is the base currency, AUD, EUR, GBP, JPY, USD). When I go to ...
1
vote
1answer
14 views

Commerce - add new tab to order page in control panel

I'm am creating module that provides integration with shipping service for Craft commerce. UX wise, it would be best if I could put module functionality in separate tab on order page. Mind you, I know ...
1
vote
1answer
32 views

Can I apply adjustments (discounts) through a controller?

I have a controller which when called (actions/some-module/discount-link/apply?code=abc) associates abc with an entry and based on some stuff in that entry populates the cart with some specific ...
1
vote
1answer
16 views

Commerce - show description of discount without coupon applied to cart

We can retrieve description of discount applied to cart that has its own coupon like this: craft.commerce.discounts.getDiscountByCode(cart.couponCode).description Is it possible for discount that do ...
1
vote
1answer
16 views

Plug-In Store doesn't have the option for adding / trying plugins (post upgrade 2.6 -> 3.5)

Having recently upgraded a dev instance of CraftCMS 2.6 to 3.5, I'm trying to add the plugins via the store. I can find all the plug-ins I want to add, however there's no option on the page to add / ...
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
13 views

Feedme plugin - importing users into craft commerce

I have few questions about importing users into Craft CMS using feedme. These users would be also Craft Commerce customers. Users will be imported without passwords. Would this provide some kind of ...
2
votes
1answer
47 views

Update billing details for a subscription

The Craft Commerce config allows you to set updatebillingdetailsurl. The docs say, The URL for a user to resolve billing issues with their subscription. There’s an example of this in the example ...
0
votes
0answers
13 views

Sort variants by product (not variant) field?

Is it possible to get variants ordered by product (not variant) field? I have tried following without success: craft.variants().orderBy('productField asc').all(); craft.variants().orderBy('product....
0
votes
0answers
13 views

Commerce removing customers

Is it possible to remove commerce customers? I removed users, but customers stay and I don't see any options to remove them in the control panel.
1
vote
0answers
20 views

Eager loading for fields attached to commerce variants when listing products

Let's say that I perform element query for commerce products and want to display an image that is attached to the default variant of each product. How can I eager load these images, if they are not ...
1
vote
1answer
20 views

Get All Line Items Checkout Event

I'm looking to fetch all line items and send it as a POST request to an endpoint. I've had a look through the class references but can't seem to find a way to get all the line items that are currently ...
1
vote
1answer
42 views

Craft Commerce - explain transaction types and statuses to me

Commerce transactions have multiple possible types and statuses: const TYPE_AUTHORIZE = 'authorize'; const TYPE_CAPTURE = 'capture'; const TYPE_PURCHASE = 'purchase'; const TYPE_REFUND ...
1
vote
1answer
39 views

Eager load commerce order data in custom ElementExporter for Users

I have a custom ElementExporter for users and I'd like to include commerce order data. The below code works, but it's a ton of queries. I don't have a ton of experience with SQL queries, how can this ...
0
votes
0answers
15 views

Custom ENV Variable for Conditional Stripe Keys

I'm trying to define the Stripe Keys based on what the current environment is set to, so I can use the test keys when in Dev and the live keys when not. I dont seem to be able to define the keys using ...
1
vote
1answer
26 views

How to update the lineItemStatus of an order on the front end with twig?

I'm building a simplified interface that is only going to be used by employees preparing the orders. They are in a usergroup that has the right permissions to update orders. I'm building this because ...
0
votes
0answers
23 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
1answer
24 views

Multiple Stocks levels

I was wondering if Craft supported having multiple stocks for one product. Something that Magento for example would call stock source. I'm looking at having one set of stock associated to trade ...
0
votes
0answers
8 views

How to pass extra filters to products field type?

We are adding a 'Featured products' field to a category fields config and we're looking to filter the list of products that are selectable by the category this field is appearing in. For example, if ...
1
vote
1answer
23 views

What is a Webhook Signing Secret?

I could not find any documentation on the 'Webhook Signing Secret' used in Commerce Settings > Gateway > Stripe Gateway. Can someone tell me what this is, what it's used for and typically what I ...
1
vote
1answer
28 views

Error on functions in queue: “Session does not exist in a console request.”

I already experienced this same problem with Craft Commerce a while ago (Error on functions in queue: "Session does not exist in a console request.") and got a solution that solved the ...
0
votes
0answers
15 views

Commerce Address Validation [duplicate]

Is there a recommended way to handle address validation in Craft Commerce 3? I've searched around but haven't found a solution on this. Would this be better handled by a third-party service and/or ...
0
votes
0answers
22 views

How to remove the default cart notice after adding the line item?

I'd like to remove the default notice (Cart updated.) after adding the item into the cart. I have an event for checking the product with the warehouse system and have an error message for showing to ...
0
votes
0answers
27 views

Building a payment form for Stripe gateway

I'm trying to get my Stripe payment form, following the docs. However, I'm having difficulty with this assumption: we’re assuming the payment gateway is set on the cart and the cart variable is ...
1
vote
1answer
22 views

Craft Commerce Upgrade Stuck

My installation of Craft Commerce seems stuck after purchasing the Pro license. Im getting similar errors throughout the site: Base table or view not found: 1146 Table 'craft_xxx....
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 ...
1
vote
1answer
19 views

LineItems not showing in CMS

I'm scratching my head. My orders are shown perfectly except for one product. I have no idea why so I looked at the Order object before saving and I can't seem to figure out why he won't show the ...
1
vote
2answers
60 views

Add product to cart using code in Craft Commerce plugin

I want to add a specific product to a cart using its ID. I have created a module which runs on Order::EVENT_BEFORE_ADD_LINE_ITEM event. Here I am able to capture the current cart using the below code $...
1
vote
1answer
14 views

Get UI elements of entry in front end

Is is possible to get UI-elements of Craft 3.5 in the front end? Specifically wanting to get hold of the headers I use to separate fields of products. This is my current code: {% set layout = product....
1
vote
1answer
23 views

Empty cart should remove coupon discounts in commerce

Is there anyway to remove all the discounts if cart becomes empty?
1
vote
2answers
48 views

Guest user registration using Commerce 3

I have just started using Craft Commerce (only Lite version currently) and I'm currently trying to get to grips with what is possible. My question is regarding subscriptions. The site that I'm working ...
1
vote
0answers
18 views

Is there a way to react to Control Panel changes to an order?

One of the major issues I have been having with my current project is how to reconcile changes to an order in the control panel (product amounts and the like). I thought I might be able to react to ...
1
vote
1answer
36 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
41 views

Force donation purchasable to replace donation of the same amount in cart

I'm using Craft Commerce Lite and the donation purchasable. I don't want users to ever be able to add more than one donation to the cart. Using the Lite edition stops users from being able to add ...
0
votes
0answers
13 views

How do I send a specific payment source to a subscription?

There doesn't seem to be a way to use a specific card when signing up for a subscription. it will automatically choose the last entered card the user has. I need a way of sending one of the craft....
1
vote
1answer
28 views

Restricting Payment Gatways by User Group using Commerce Pro?

Is it possible to restrict payment gateways on a per user group basis? e.g. Say you want a user group to assign users into from a certain country that cannot use PayPal, so you can offer them a ...
1
vote
1answer
25 views

Commerce Order Status History

I am trying to bring some of the order status history from my clients commerce shop orders into a web page. I seem to be able to get the Current/Previous Status (prevStatus/newStatus.name), but cannot ...
1
vote
0answers
30 views

Add billing address to user on registration

I am working on a craftcms + commerce project and I need to add a billing address to new user during its registration process. The idea is to have a billing address added to any newly registered user ...
1
vote
1answer
34 views

Is there a Zendesk plugin to fetch order information from Craft Commerce?

I'm looking for the same functionality as https://wordpress.org/plugins/mwb-zendesk-woo-order-sync/ but for craftCMS's Commerce plugin and not Wordpress's Woocommerce plugin. Basically, it would use ...
2
votes
1answer
37 views

Error on functions in queue: “Session does not exist in a console request.”

I get the following error on multiple order mails from Craft Commerce. The error points out to the lines where a macro is called: Email template parse error for email “New order”. Order: “e35f244”. ...
1
vote
1answer
44 views

Craft Commerce “state” dropdown field fails to populate with states for new customer addresses

I'm having an issue with addresses on Craft Commerce 3 (specifically the State field). When a new customer adds an address, the State field defaults to a text field (not the expected Select field). If ...
1
vote
2answers
19 views

Commerce Product - show shipping category in template

I have setup some Shipping Categories (8 weeks, 4 weeks etc) and these appear down the side bar of a product when editing in admin next to 'Shipping' . How do i bring this value out via a tag on a ...
1
vote
1answer
48 views

How to differentiate EVENT_BEFORE_UPDATE_SUBSCRIPTION events in Commerce 2/3

I'm listening for various subscription events to send emails to members. Right now, I'm dealing with subscriptions where a renewal payment fails. I'm specifically listening for ...
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
21 views

Adding an additional Download PDF to orders

Is there a hook or something I can use to add an additional Download PDF option to the Edit Order screen? It looks like a dropdown, but I can't find any docs on how to add to it.
1
vote
1answer
41 views

How to search by title OR tag using Craft CMS?

I want to do a search query so the product title or product tag name matches the keyword. below is my code. if I remove the tag related query, this code works as it looks into the product title only ...
1
vote
1answer
39 views

Make dimensions common for all variants in Craft Commerce

When I enable multiple variants for product type that has Dimensions and Weight, fields "Dimensions and Weight" become available for every single variant. Product is tablet and all variants ...
1
vote
1answer
27 views

Missing field validation on user account edit

I've been implementing a user account page with Craft Commerce and copied over the template found here: https://docs.craftcms.com/v3/dev/examples/user-profile-form.html#simple-profile The issue is ...
2
votes
1answer
170 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
2 3 4 5
15