Questions tagged [plugin-craftcommerce]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
13 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 ...
1
vote
0answers
18 views

Craft3, Plugin Craft Commerce, Tax without percentages

Is it possible to set Tax in the Rate field other than percentage?. In Tax I want to place an example amount: 10.50 without percentages.
0
votes
0answers
17 views

pass cart fields on checkout

I have a notes field shown on the cart page. When a customer fills the field out and clicks "Checkout" the contents are not saved. Same goes for Quantity or other custom fields. If "...
1
vote
0answers
14 views

EVENT_DEFINE_ADDRESS_LINES not pushing response back to Craft Commerce

I have a plugin to reorder the address lines in Commerce. Basically to move the Phone Number to the bottom as it drives all my clients nuts. While the final array, addressLines is the correct array ...
0
votes
0answers
24 views

Changing URL format in craft commerce products error 502

I have more than 150k products on craft commerce, and i need to do some changes in the URL format, but when i click save, the server returns a 502 error. I think that is because craft is trying yo re-...
0
votes
0answers
23 views

Craft Commerce Delete Customers

Is there a way to delete the users that were created in the customers section? I made a site and generated multiple accounts for testing purposes, but now I have to deliver it and I don't want those ...
1
vote
1answer
25 views

Commerce email receipt not sent after order, but manual Send Email in Order screen works

I have placed a successful order in Commerce and it's settings have an email setup to send an email to the customer and use the example special/receipt email. But the receipt email is not sent once ...
1
vote
1answer
27 views

Stripe order hangs when submitted

Folks: A site I have works great in test and has been pushed live. Orders do not complete on the live site. When the transaction is submitted "Card confirmed" appears (I'm riffing off the ...
0
votes
0answers
10 views

Auto collapse craft commerce variant matrix

Is there a way to auto collapse Craft Commerce Variant Matrix Blocks? I work with many variants per product and it is very cluttered when expanded. I've already tried this way: Possible have matrix ...
1
vote
1answer
34 views

Commerce element query on custom field in console command

I'm on Craft 3.4.30 (latest 3.4) and Commerce 2.2.25 (latest 2.2): My product type "ticket" has a custom date field with handle productStartDate. E.g. the following query in TWIG works: {% ...
1
vote
1answer
32 views

Update a remote stock database

I am building an online store with craft commerce, but I have a problem, I need to update a remote stock on every purchase, this stock is located in a remote server, do you know if exist a plugin ...
0
votes
0answers
10 views

Is it possible to override the product URI for Craft Commerce when using Headless Mode?

I've tried using an alias to override the product URI when using Craft Commerce, but it's not working, it doesn't go to the correct URL associated to the FrontEnd.
1
vote
1answer
20 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
48 views

Craft Commerce: Checkout without email / address

Is it possible for Users to checkout without an email or address? I want to give users the option to switch to a payment provider in the cart and fetch the address later via the provider. ...
1
vote
1answer
43 views

Commerce Subscription Prices

I need to be able to output the price of a subscription after the user has subscribed. I'm using the Stripe Gateway. This post indicates to use {{ subscriptionPlanData.plan.amount }} but that doesn't ...
0
votes
0answers
33 views

Craft Commerce 3 calling commerce/payments/pay from Axios returns errors

I have headless Craft CMS + Craft Commerce 3 + Mollie for Craft Commerce as backend and decoupled Nuxt.js frontend I'm trying to use POST request to "?action=commerce/payments/pay&note=from+...
1
vote
1answer
20 views

Swapping currency when swapping languages

Folks: I have a multilingual and multicurrency site. All works fine when switching currencies or languages independent of one another. But is there a way to have the currency switch when the language ...
1
vote
1answer
27 views

Is it possible to show commerce product id's in the control panel?

For entries you can show the ID in control panel listings. I can't find a way to show craft commerce product ID's in a similar way in the control panel. Commerce 3
1
vote
1answer
12 views

Is it possible to image upload on a particular size using a control panel?

I am using the commerce plugin. I want to display an image of the specific size without CSS is there any specific way in the commerce plugin?
1
vote
1answer
17 views

Want to add a custom field in craft commerce plugin

Is it possible to add a custom field in craft commerce plugin and is it a good idea to add it?
1
vote
1answer
28 views

How can I get the cart total item? I tried using a “length” filter but it’s not working with that

I am using the craft commerce plugin and I want to fetch total qty of the cart items. I have tried the length filter but its not working. Is there any other filter that can help in it?
1
vote
0answers
26 views

Running garbage collection with commerce errors

Anybody know how to resolve the following when using Craft Commerce? Running the command craft gc/run throws an error. Next yii\db\Exception: SQLSTATE[HY000]: General error: 1093 You can't specify ...
0
votes
0answers
28 views

Best way to manage bulk purchase discounts for a product

I am looking to manage bulk purchase discounts for individual products. For example if a customers buys 1 of a product it would not apply a discount, however if they purchased 10 it would apply 10% ...
1
vote
1answer
63 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
19 views

Re- Arrange the Address-Country select field

I try to increase the usability of my shipping address input form. The country list is pretty impractical. I'd like to have the most used countries on top. Dropdown List: Switzerland Germany UK USA ---...
0
votes
0answers
20 views

Ability to filter products inside Craft Commerce Admin?

I have multiple sub product types under the same product type in Craft Commerce. They are categorized by a category. Is there a way (plugin?) to get this kind of filtering? I see there is a ...
0
votes
0answers
37 views

Need advice for a new project

The customer currently has an app build with Symphony 3.4. The current set-up is too complex to maintain, user unfriendly and not flexible, lags a maintainable SEO structure. The main function of the ...
1
vote
2answers
40 views

Trouble with twig syntax for discount conditions

I'm trying to add a condition for a discount. It involves a custom date field. I want to discount anything that falls on Tuesday. I can't seem to get the twig syntax right. I've tried these two: ((...
1
vote
1answer
17 views

Commerce - Email users on new product input

Good Afternoon, Is it possible to have Craft email a list of users (based on a category) when a new product is added to the shop? Is there a pluigin that would do this, or is it a matter of a small ...
0
votes
0answers
16 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
25 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
47 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
35 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
17 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 / ...
2
votes
1answer
30 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
26 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
83 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
24 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
62 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
39 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
24 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
69 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
47 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
21 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
31 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 ...
1
vote
0answers
49 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
25 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
90 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
41 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 ...

1
2 3 4 5
16