Questions tagged [plugin-craftcommerce]

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

105 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
155 views

Add billing address to user on registration

I am working on a craftcms + commerce project and I need to add a billing address to new user during its registration process. The idea is to have a billing address added to any newly registered user ...
juanlopez4691's user avatar
3 votes
1 answer
169 views

Craft Commerce - Different confirmation email address for different product types or category

On a website I will be setting up there will be different ranges/types of products. Basically purchased from different departments within the organisation. I can filter the products in different ways ...
mmc501's user avatar
  • 1,779
3 votes
0 answers
603 views

Currency switcher

Folks: I'm setting up a multi-currency site (CAD, USD, EUR). I'd like the user to be able to select their currency before they actually put anything in the cart. And once selected, prices throughout ...
Wonko's user avatar
  • 471
3 votes
0 answers
639 views

Craft Commerce Product Reveiws

For those who have implemented Craft Commerce and needed product reviews, what has been a good solution for you?
mjr's user avatar
  • 1,405
2 votes
0 answers
131 views

Commerce shipping tax rate based on tax rate of line items

I have a shop with products that have 6% VAT & products with 21% VAT. The VAT rate that is applied to the shipping cost should depend on the VAT rate of the line item with the highest subtotal (...
Fred's user avatar
  • 21
2 votes
0 answers
133 views

Commerce 3 - Register user and save payment source after order complete for guest checkout

We register and send account activation emails to guest customers after checkout using registerUserOnOrderComplete. We also want the guest customer to be able to save their payment card during ...
iamkeir's user avatar
  • 458
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
2 votes
0 answers
110 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 ...
James's user avatar
  • 1,138
2 votes
0 answers
29 views

Prevent Shipping from being discounted

Is it possible to prevent a coupon code from also discounting the shipping costs associated with an order? We've run into a situation where a customer cart totaled $0 after they used a coupon code we ...
Jon's user avatar
  • 33
2 votes
0 answers
36 views

Is it possible to set up Amazon's "Subscribe and Save" type feature for Craft Commerce

I'd like to allow customers to be able to automatically set up recurring purchases at a discounted price, much like Amazon's Subscribe and Save. I had originally skimmed through the subscription ...
kamicrafted's user avatar
2 votes
0 answers
100 views

Is it possible to pass metadata to Stripe from Craft Commerce

With Craft 3 and Craft Commerce 2 with the P&T Stripe gateway is it possible to pass metadata to Stripe? I've tried various combinations of hidden fields but without success so far. I was hoping ...
Tim Print's user avatar
  • 343
2 votes
0 answers
200 views

Line item not found when trying to remove item from cart

I'm trying to remove a product from a cart but i'm getting an {error: "Line item not found"} error and I can't figure out why. Here is my code: $('.js-item').on('click', function(e) { e....
nmsdvid's user avatar
  • 305
2 votes
0 answers
260 views

Creating multiple plan subscriptions

Versions: - Craft CMS (3.1.21) - Craft Commerce (2.1.2) - Stripe for Craft Commerce (1.2.0) Problem: - My website offers user's ability to subscribe to several subscriptions at the same time. ...
Gavin Vaske's user avatar
2 votes
0 answers
109 views

Commerce 2 Subscriptions (Using Stripe API)

I'm currently trying to implement and understand how Subscriptions work on Commerce 2. I'm using Stripe API and have created the subscriptions on their CP. I've listed them on my shop page and added ...
tutchmedia's user avatar
2 votes
0 answers
252 views

Get field type of product or variant with element api

Trying to get type of a field (dropdown, checkbox, etc) to render those fields in app, there is all sorts of info available in $variant->fieldLayout->fields like handles, values, ids except type ...
Alex's user avatar
  • 31
2 votes
0 answers
103 views

Creating customer records and saving cards during Stripe checkout?

My client is looking to, on occasion, assign a recurring Stripe plan to a one-time donor (most donations on this site are one-time). The best way to do this would be to create a customer in Stripe (...
Derek Hogue's user avatar
2 votes
0 answers
459 views

Craft Commerce 2: Adding subscriptions to cart

I am porting a Shopify "multi-site" to CraftCMS using Commerce and I need to be able to add subscriptions to the shopping cart (customers can subscribe to a monthly box), together with other products. ...
Rosana Ruiz's user avatar
2 votes
0 answers
150 views

Craft Commerce price lists with discounts

I have configured several discounts based on usergroup conditions in Craft Commerce. Now i would like to create a price list for the shop owner, that contains the prices for the several usergroups. ...
Tom Bauer's user avatar
  • 1,327
2 votes
0 answers
159 views

Filtering products by categories and showing number of products related to selected category

I currently have about 420 products and over 100 of categories to choose from for each products, showing the list of categories and filtering it, works fine, and performance is not too bad when it's ...
pinksorceress23's user avatar
2 votes
0 answers
256 views

Craft Commerce: send notification emails when setting status dynamically?

How would I get a status notification to send when setting the status of an order dynamically via a plugin? I've got a few different order 'types' that need a different default status (for different ...
Max's user avatar
  • 73
2 votes
0 answers
39 views

HTML renders "

Hello I haven't touched my clients webpage for some time and a week ago a problem started happening when it called the item description and size from the POST. It started displaying " instead of ...
JustinTheeDude's user avatar
2 votes
0 answers
429 views

Klarna Checkout - Omnipay

I am trying to create a custom payment gateway by extending / adding it to Omnipay which is already implemented in Craft. I have used the Ogone and other plugins as base, but I cant seem to get it ...
Syversen's user avatar
  • 475
1 vote
0 answers
37 views

Object of class craft\commerce\models\ShippingMethod could not be converted to int Error generating from craft commerce

At a little bit of a loss here, just updated a Craft 3 site and I've started getting an error thrown whenever the cart is accessed. Relevant updates were: CraftCMS 3.7.11 -> 3.7.27.2 Craft ...
Josh Parylak's user avatar
1 vote
0 answers
273 views

Craft Commerce 3 guest checkout flow – can't update addresses

I'm finding a guest checkout flow in Commerce 3.4.14 insanely confusing, docs aren't much help. I'm using Craft Solo and Commerce Lite. TL;DR I realize the code below is probably too complex, so even ...
Yawner's user avatar
  • 65
1 vote
0 answers
225 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+...
Oleksandr Staniev's user avatar
1 vote
0 answers
144 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 ...
owenmelbz's user avatar
  • 129
1 vote
0 answers
139 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 ...
Piotr Pogorzelski's user avatar
1 vote
0 answers
47 views

Paypal Express Redirecting to Undefined

I'm moving a site from craftcms/commerce-paypal to craft/commerce-paypal-checkout but I'm having an issue with the redirect after payment. Steps to reproduce: Choose Paypal as my gateway I choose pay ...
Emily Fitton's user avatar
1 vote
0 answers
24 views

Is there a way to react to Control Panel changes to an order?

One of the major issues I have been having with my current project is how to reconcile changes to an order in the control panel (product amounts and the like). I thought I might be able to react to ...
Fireynis's user avatar
  • 111
1 vote
1 answer
98 views

Is there a Zendesk plugin to fetch order information from Craft Commerce?

I'm looking for the same functionality as https://wordpress.org/plugins/mwb-zendesk-woo-order-sync/ but for craftCMS's Commerce plugin and not Wordpress's Woocommerce plugin. Basically, it would use ...
Aryeh S.'s user avatar
1 vote
1 answer
263 views

Update Cart’s address ID from plugin

I want to try and stop Commerce 3 creating a new customer address if it’s a duplicate of an existing one. As an example, a store selling digital products has a checkout form that simply asks for the ...
James's user avatar
  • 1,138
1 vote
0 answers
28 views

How to apply sales to custom order adjustment?

Is it possible to apply a discount voucher to custom order adjustments? EG i want 5% off everything. I have two order adjustments, one is rush delivery and the other is an engraving fee. At the ...
Dean Sanderson's user avatar
1 vote
0 answers
97 views

Is any way to add translations for Braintree Gateway dropin interface?

The correct way to add translation to an instance of braintree.dropin is to add options.translations array when calling the braintree.dropin.create method, for example: if ($dropinUi.data('locale') =...
Alexey G.'s user avatar
1 vote
0 answers
30 views

EagerLoading on category pages with different product types

I have a category template like so; {% extends '_layouts/_site' %} {% set products = craft.products .with( [ 'department', 'productImage', 'finish', 'pcd', 'variants', 'thread', '...
Terry Upton's user avatar
  • 1,884
1 vote
0 answers
124 views

Upsell/Cross-sell plugin on Craft Commerce

I am an end-user and I help run an e-commerce company. We are exploring Upsell/Cross-selling during checkout and I am not able to find a plug-in or documentation on how to implement it. Has anyone ...
Faraz's user avatar
  • 19
1 vote
0 answers
314 views

Is it possible to take a partial payment of an order in Craft Commerce?

I have a request from a client to be able to take deposits for events purchased through craft commerce. These are high ticket items and customers would like to spread the cost of payment over several ...
Dave Coggins's user avatar
1 vote
0 answers
49 views

Is it possible to change the group that a user belongs in the front-end?

A little background: The website runs on Craft v.3 Pro and Commerce v.2 Pro The user can register as a member from the front-end. They will be able to select only one of 3 different groups to ...
Panos Spiliotis's user avatar
1 vote
0 answers
27 views

Exclude User Group from Sale

Is there a way to exclude a User Group from a sale? We have a trade user account that applies a flat 20% discount across all products but we're trying to run a different sale for all customers on a ...
RyanB12's user avatar
  • 11
1 vote
0 answers
28 views

Shipping and billing addresses dissapear when close and open the page

I have the following problem. When I set shipping and billing address on my cart and exit the page, the addresses are cleared once I open the page again. Is it possible to disable this behavior? ...
Камен Великов's user avatar
1 vote
0 answers
31 views

Paginate a list of product variants with categories parameters

I have got a category multi-select feature that allows users to filter variants by more than one category. On selection the URL is concatenated as a new category as follows: ?cat=blue ?cat=blue+...
Jay's user avatar
  • 1,042
1 vote
0 answers
106 views

Adjustables - Tax and VAT

I'm working on a custom payment gateway, and the concept of tax adjustments are giving me some headache. How is this adjustment system, especially regarding tax, supposed to be used? Would it be ...
Jørgen's user avatar
  • 165
1 vote
0 answers
37 views

404 error on entry template in dev tools, but layout template loads

I created a Shop page here: https://www.intermountaincleaning.net/shop/products/diamond-magic. The rest of the site is just static HTML (not Craft), and the Shop page is in a Shop folder within the ...
Jon Weedin's user avatar
1 vote
0 answers
47 views

Product variant association

On my Products details page I have 2 selects. The 1st select list out the Primary variants. Based on the selected Primary variant the 2nd select is auto-completed in with Secondary variants that have ...
Tad Ward's user avatar
  • 317
1 vote
0 answers
134 views

Some orders recieve double amount of products

I have a pretty critical issue with one of my clients websites. The site, running Craft CMS 2.7.2 and craft commerce 1.2.1364, uses a event/tickets plugin and uses Mollie as the payment provider. ...
Mosh's user avatar
  • 153
1 vote
0 answers
11 views

Shop setup for subscribed members

Before I start to build this store on my own, I would like to ask if anyone can provide some guidelines on the following setup. I am trying to build a store with a member area for subscribed members ...
Nermin's user avatar
  • 23
1 vote
0 answers
62 views

Commerce: reading Stripe object in Craft Transaction model

I'm looking to add the credit card last four digits to my customer's frontend order history. Stripe is the gateway. The Stripe transaction object doesn't seem to be available in the Craft ...
biko's user avatar
  • 660
1 vote
0 answers
83 views

Add optional segment to Craft Commerce product Url

I currently have a Craft Commerce site where the product url is setup like this: {productCategory.level(1).first().slug}/{productCategory.level(2).first().slug}/{productCategory.level(3).first().slug}...
Steve Holland's user avatar
1 vote
0 answers
23 views

Select products that have stock and products where showWhenNoStock is true

We've been working on a sneaker shop and the product overview page is only showing the products that are in stock. Now the client also wants to show some selected products on the overview even if ...
John Ripmeester's user avatar
1 vote
0 answers
157 views

Filters using multiple query strings with pagination and Craft Commerce

I want to build the ability for the user to be able to filter by certain categories when browsing an existing category. As well as this I would like the user to be able to control the ordering of ...
Terry Upton's user avatar
  • 1,884
1 vote
0 answers
271 views

Craft 3 / Craft Commerce Installation - Can't see products

I recently tried to install Craft Commerce onto Craft 3. I installed the plugin via the plugin store and added in the templates folder which I downloaded straight from https://craftcommerce.com/ and ...
Amy's user avatar
  • 407