Questions tagged [plugin-craftcommerce]

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

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

Eager-Loading Cart images

The cart of Craft Commerce can't really be cached so I try to increase performance by loading product images in the cart via eager-loading. All tutorials tell me to use the .with(['variantThumb']). ...
KSPR's user avatar
  • 3,776
1 vote
1 answer
25 views

Commerce show customer only once even with multiple orders

Is it possible to print a list of customers but display a customer only once even when he/she ordered multiple times? {% set orders = craft.orders.completed(true).limit(null).orderBy('dateOrdered ...
KSPR's user avatar
  • 3,776
2 votes
1 answer
124 views

Craft Commerce multisite mail origin

I have a multisite setup where 2 sites can make orders on the same commerce, but I would like to have dynamic mail settings (domain name, origin, api keys, etc) based on the site of the order. Do you ...
Antoine's user avatar
  • 143
1 vote
2 answers
130 views

Sending Craft Commerce Orders to Salesforce.com

I know similar questions have been asked before... but they are a bit dated and there was never a clear answer. I'm looking to send order information from Craft Commerce to Salesforce.com. It's a ...
gwineman's user avatar
0 votes
0 answers
34 views

Twig call to get REFRESHED payments

I use commerce for subscriptions. We design a twig page to show subscriber's payment history. For some reasons, the very last purchase don't show as we need to perform a "refresh-payments" (...
Sylvain Tremblay's user avatar
2 votes
1 answer
129 views

Craft Commerce Subscriptions

We're using commerce 3.2 and were testing the plans options with the default templates. We've put in the Stipe test keys, but when we try to subscribe, we get the message: Unable to start the ...
Mark's user avatar
  • 277
1 vote
1 answer
75 views

How do I reset all Commerce order references?

By default, Commerce uses the {{number[:7]}} format to set an order's reference on order completion. Now (after the site already has orders and I can no longer reset the site's data), I need to use a ...
Paul's user avatar
  • 6,338
2 votes
1 answer
81 views

Redesign of existing commerce site with content/structure changes - whats the best way to manage this?

So I am currently working on an existing clients craft and craft commerce website and looking to completely redesign and revamp this. Earlier in the yer, this underwent a major upgrade in terms of the ...
Terry Upton's user avatar
  • 1,884
0 votes
0 answers
45 views

Displaying paymentCurrency

Folks: I've got a multi-currency store. The user can switch their currency using a drop-down menu. In the drop-down menu, I display the currency they are using with: {% if cart.paymentCurrency == 'CAD'...
Wonko's user avatar
  • 471
1 vote
1 answer
59 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.
KSPR's user avatar
  • 3,776
2 votes
1 answer
239 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 ...
Jai Redden's user avatar
2 votes
1 answer
169 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 ...
supazu's user avatar
  • 564
0 votes
0 answers
92 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/...
Christopher Healey's user avatar
2 votes
1 answer
71 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 ...
cannon303's user avatar
  • 309
1 vote
1 answer
53 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 ...
cannon303's user avatar
  • 309
1 vote
1 answer
148 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?
supazu's user avatar
  • 564
0 votes
0 answers
43 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 ...
Tim Print's user avatar
  • 343
0 votes
1 answer
341 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.
Malcolm Maclean's user avatar
1 vote
1 answer
89 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 ...
KSPR's user avatar
  • 3,776
1 vote
1 answer
78 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 ...
supazu's user avatar
  • 564
1 vote
1 answer
71 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?
user49799's user avatar
1 vote
1 answer
182 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 ...
aodihis's user avatar
  • 731
1 vote
1 answer
154 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( ...
Steven Zhang's user avatar
1 vote
2 answers
168 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).
Terry Upton's user avatar
  • 1,884
1 vote
1 answer
58 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/...
Terry Upton's user avatar
  • 1,884
1 vote
1 answer
162 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....
Document Services's user avatar
1 vote
1 answer
45 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="...
CreateSean's user avatar
  • 1,963
1 vote
1 answer
184 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, ...
Henrik's user avatar
  • 383
1 vote
2 answers
134 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 ...
Henrik's user avatar
  • 383
2 votes
2 answers
155 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 ...
Carlo Laitano's user avatar
1 vote
2 answers
117 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 ...
Henrik's user avatar
  • 383
1 vote
1 answer
94 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 ...
Steven Zhang's user avatar
1 vote
1 answer
101 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 ...
supazu's user avatar
  • 564
0 votes
0 answers
157 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 ...
Steven Zhang's user avatar
1 vote
1 answer
40 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 ...
spence's user avatar
  • 33
1 vote
1 answer
63 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()....
Bmk's user avatar
  • 13
1 vote
3 answers
368 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/...
Steven Zhang's user avatar
0 votes
0 answers
54 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 ...
Jaytrix's user avatar
  • 187
1 vote
1 answer
79 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. ...
cannon303's user avatar
  • 309
1 vote
1 answer
48 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 ...
Terry Upton's user avatar
  • 1,884
1 vote
1 answer
80 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, ...
Gemma McColl's user avatar
1 vote
1 answer
102 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 ...
Priti Rathod's user avatar
1 vote
1 answer
278 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. ...
bhu Boue vidya's user avatar
2 votes
0 answers
32 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 ...
Johanna Maldonado's user avatar
1 vote
1 answer
58 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.
Johanna Maldonado's user avatar
2 votes
1 answer
44 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 ...
John Henry Donovan's user avatar
0 votes
0 answers
166 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-...
juanjosezg's user avatar
1 vote
1 answer
219 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 ...
juanjosezg's user avatar
1 vote
1 answer
123 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 ...
Laurence Cope's user avatar
1 vote
1 answer
97 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 ...
Wonko's user avatar
  • 471

1
2
3 4 5
17