Questions tagged [plugin-craftcommerce]

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

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

Tax applied to line item before Discount Adjuster

I've made an adjuster that applies an additional unit pricing. For example, the first of an item is charged at £5 and then each additional unit is charged at £2. This works great as far as the line ...
0
votes
0answers
16 views

Commerce Shipping/Tax Estimates

Within the checkout flow, I am looking to offer an up to date 'shipping/tax' estimation. Looking through the Craft Commerce docs, I found the 'Estimate Cart Addresses' (https://craftcms.com/docs/...
0
votes
0answers
19 views

show shipping methods from backend based on total order weight

I've the following shipping rules on paper: shipping costs according to total weight of order: 5kg: 8,- 10kg: 11,- 20kg: 16,- 30kg: 23,- pickup: 0,- if customer wants priority shipping: 5,- ...
0
votes
1answer
20 views

Add users to a group upon purchase [check if a purchasable has a variant]

I have a module to add a user to a group after a specific product type purchase. This was working fine, until I added Events to the mix. From what I understand, Events don't have variants so now I'm ...
1
vote
1answer
13 views

How to convert currency is there any way or any plugin available?

I am working on E-commerce website and I am using craft commerce for that.Is there any way or any plugin available for that?
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 ...
1
vote
1answer
24 views

Can't register custom adjuster with Craft CMS commerce

following https://craftcms.com/docs/commerce/3.x/extend/adjusters.html#writing-an-adjuster I am trying to make a custom adjuster: I placed class myPlugin extends Plugin{ Event::on( ...
1
vote
2answers
21 views

How can I check if a product has any variant that is on Sale?

I want to check if any variants (not the default variant) have any active sales applied. How can I do this at a product level when looping through products (think teasers).
1
vote
1answer
19 views

Showing and hiding details (price, sale price, sku etc)when product variant is selected on details page

I currently have price, sku and variant title swapping when clicking between variants on a products details page. This works with AlpineJS and looks something this. https://codepen.io/amasci/pen/...
1
vote
1answer
19 views

Manually Set Craft Commerce Currency

Is it possible to manually set the currency during the checkout process? Right now Im trying the following (set currency to CAD for Canadian buyers), which seems to break the cart array.... {% if cart....
1
vote
1answer
19 views

Set Default Shipping Option for specific User Group

I need to set the default shipping option for one specific usergroup but I cannot figure out how to do that. What I currently have that is not working is: <label> <input type="...
0
votes
0answers
11 views

Error when making CSV file from craft commerce orders

So I have a _export.csv file that contains code like this: {% spaceless %} {% set slug = craft.request.getSegment(2) %} {% set product = craft.products.status(null).slug(slug).one() %} {% ...
1
vote
1answer
78 views

Module: adding amounts to total item price, based on chosen option (e.g. giftWrapped)

I made a module, which should add an amount to an item, based on the chosen option. For example, if user checks "gift wrapped" 5$ gets added, if "Gift wrapped with Card" is chosen, ...
0
votes
0answers
14 views

Commerce Order Webhook

I need to export all orders to a Google Sheet, including address fields. Unfortunately, the built in export tool doesn't include address fields, so I want to add to a Google Sheet via Zapier (open to ...
0
votes
0answers
24 views

Restrict Shipping Options to certain user groups - commerce

Craft 3.7.4 Craft Commerce Pro 3.4.0.3 Postie 2.4.8 I'm working on an inherited site which is my first using Commerce. I've been tasked with restricting shipping methods based on logged in user group ...
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 ...
1
vote
2answers
47 views

Applying several discounts for amount range (> 100$ -> 5%, > 200$ -> 10%)

i added two discounts: if the amount in the cart is greater than 100$ a discount of 5% is applied. if the amount in the cart is greater than 200$ a discount of 10% is applied. if i have a cart of ...
2
votes
2answers
50 views

Send Customer Email based on Product Bought

I've discovered ways to do this with a single email template and lots of logic but I'm considering purchasing Sprout Email cause of all the features we would gain. Basically: I need to know if/how ...
1
vote
2answers
56 views

Adding second option on payment-method (buying without paying, getting physical invoice with order (pay on account))

I am using the Craft Commerce templates as a starter, haven't altered that much yet. On the payment-method page, I have a gateway for credit card/Paypal, etc. via a plugin, which works fine. I would ...
1
vote
1answer
18 views

input fields in getpaymentformhtml auto click out of card holder information

To reproduce issue: <label for="card-element"> {{stripeGateway.getPaymentFormHtml({})|raw}} </label> Then whenever I click either the First Name or Last Name input field my ...
1
vote
1answer
30 views

Commerce 3 Subscription form

I'm trying to make a 2-step subscription process. Where someone clicks 'subscribe' and it takes them to a new page. Free trial button goes to url('subscribe?plan=' ~ plan.uid) I then retrieve that on ...
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 ...
1
vote
1answer
27 views

Trigger Order Emails Programatically

I have created a module that processes certain order statuses. I have two PDF attachments I need to attach to these orders. These orders are processed after payment gateway authorization so I'm ...
1
vote
1answer
31 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
20 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
84 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
36 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
19 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
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
24 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
28 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
21 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
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
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 ...
1
vote
1answer
52 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
22 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
36 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-...
1
vote
1answer
73 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
30 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
30 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
16 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
43 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
37 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
17 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
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
56 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
60 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 ...
1
vote
0answers
72 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
2 3 4 5
16