People who code: we want your input. Take the Survey

Questions tagged [plugin-craftcommerce]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

Variant SKU not accessible in Twig

I am unable to access a variants sku. {% set product = craft.products.id(productId).with('productImages').one() %} {% set defaultVariant = product.defaultVariant %} {% set variants = craft.variants()....
0
votes
0answers
17 views

Live site/server has different data to local site

I've been looking at a Craft site for a friend which suddenly started reported incorrect numbers for sales (they're using Craft Commerce). They noticed that one day they had an item that had 62 sales, ...
1
vote
3answers
58 views

CSS file not being read by other templates

So I am making a new craft cms website, I have my page entries linked to the template pages/_entry.html, which works fine. I then made another type of pages called news, linked to the template news/...
0
votes
0answers
32 views

Resend commerce email

We have a site that had a feature/plugin created that can handle payment deposits as well as full payments for events. We're wanting to create a job (like a CRON Job) or process that once a week goes ...
1
vote
1answer
17 views

Craftcms commerce product not showing

Hi I know my way around CraftCMS and twig a little bit but totally new to the CraftCMS Commerce plugin. I have installed the Commerce plugin and I have added the default templates to get me started. ...
1
vote
1answer
31 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
18 views

Craft Commerce - More detailed reporting

I'm looking to get more detailed reporting from craft commerce. I would like to be able to see a breakdown of what we've sold in a set period of time (week, month etc) which details out products, ...
1
vote
1answer
18 views

Freeform to show via Vue Js

I have 3 freeforms - form 1, form 2 and form 3. I want a select option on which I click and the necessary form opens as per the selection. Can I render the Freeform which are build using VUE js Select ...
0
votes
0answers
19 views

Commerce Gateway Response

Im looking for where to get the Gateway Response as the site I am working on is carrying over a legacy subscription system. Using verbb / commerce-payflow Plugin. Any pointers would be great we ...
1
vote
1answer
27 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
14 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
18 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
1answer
50 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
18 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
19 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
36 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
28 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
28 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
11 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
36 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
34 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
13 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
21 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
51 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
46 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
43 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
28 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
13 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
29 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
40 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
29 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
91 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
21 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
25 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
38 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
43 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
30 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
54 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
48 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
31 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
36 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
94 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
26 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
78 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
2 3 4 5
16