Questions tagged [plugin-craftcommerce]

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

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

List User/Customer billing address

I need to export an exhaustive list of all customers info including their commerce primary billing address and a custom Section fields. I did most of the job except I can't get a grasp on how to fetch ...
1
vote
1answer
15 views

Subscribe a user to Campaign Monitor during checkout in craft commerce

I found this thread for Mailchimp. Is there somewhere also a plugin solution for Campaign Monitor? I can't find anything via google.
2
votes
1answer
52 views

Craft Commerce payments not going through - status "redirect"

I'm running a site taking orders via Craft Commerce. Most of the orders are fine, but a small percentage are failing, and going into the "Attempted Payments" section of the orders area. If i ...
2
votes
1answer
30 views

Multi-attribute product variants

I'm basically looking for a more up-to-date way to do this: https://www.vaersaagod.no/en/multi-attribute-variant-selection-in-craft-commerce So that I can allow users to select color and size in two ...
0
votes
0answers
17 views

Order Condition Formula in a Shipping Condition

I have digital products that are sold alongside physical products and need a way to set it so that the 'standard shipping' method is not shown as an option if ONLY digital products are in the cart/...
2
votes
1answer
36 views

Free Shipping toggle switch in product editor doesn't work

Hi in the product editor of Craft Commerce by default there is a toggle switch for Free Shipping on the right side column. I have the base rate set up as a standard flat rate charge but wanted to know ...
0
votes
0answers
11 views

sourceSnapshot not populated in lineItem adjustment

I'm querying the order, and from the order I'm looping through the line items returned from getLineItems(). When I then dump the line item, calling getAdjustments(), the sourceSnapshot never seems to ...
1
vote
1answer
13 views

Craft Commerce Checkout: How to prevent payment link from bypassing shipping section in nav-checkout

I'm using checkout.twig in the CraftCMS shop checkout examples templates. As the user proceeds though the checkout process, this nav strip appears at the top of each page and marks their progress. The ...
0
votes
0answers
11 views

Bulk editing Commerce products

Is there a recommended way to allow bulk editing of prices within Craft Commerce? What about variants? I thought of possibly exporting all data to a spreadsheet and using FeedMe to update the prices. ...
1
vote
1answer
27 views

Check if product type is in user's cart

I would like to redirect users to an additional page in my checkout flow if they have a particular product type in their cart. Does anyone know how I can do that?
0
votes
0answers
18 views

Commerce price difference for specific country

I have a fairly simple shop with one product. I would like to be able to adjust the price of the product (increase it by around 5%) for customers from one specific country. I have some price changes ...
0
votes
0answers
21 views

Craft Commerce/Sprig - change add to cart button dependent on what is in cart

I am using Craft Commerce with Sprig and I am hoping to get some help with the add to cart button, which I need to change dynamically dependent on what is already in the cart. Essentially I have two ...
0
votes
0answers
10 views

How to apply discount after taxes in Craft Commerce

I have a unique situation where the discount applied must be done AFTER taxes are applied to the total cart price. Can I reorganize the discounts to come after tax? Or is there another way to make it ...
0
votes
1answer
20 views

Craft Commerce product export to CSV?

Does anyone know if it us possible to export products from Craft to a CSV? I can't see anything native. Sprout reports seems like it might be able to but it looks quite complicated.
0
votes
0answers
77 views

SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''

My website is running on Fortrabbit with the following settings: PHP version 7.4.15 OS version Linux 4.15.0-50-generic Database driver & version MySQL 8.0.23 Image driver & version Imagick ...
1
vote
1answer
18 views

Disable Commerce 3 shipping altogether

Is it possible to disable the shipping feature altogether in Commerce 3? A shipping step decreases sales up to 30%. I have some quirky CSS hiding shenanigans going on in my templates to hide the ...
0
votes
0answers
13 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
19 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
20 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,- ...
1
vote
1answer
29 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
17 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
34 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
42 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
33 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
22 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
22 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
21 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
86 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
16 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
26 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
8 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
52 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
53 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
58 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
23 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
33 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
31 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
29 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
35 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
21 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
115 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
21 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
35 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
26 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
33 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
22 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
40 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
25 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/...

1
2 3 4 5
16