Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-craftcommerce]

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

12
votes
0answers
534 views

Issues with Craft Commerce and VAT taxes

We've just completed our first Craft Commerce website at Base Design. Overall everything went well but we encountered issues with taxes and the way VAT works on online sales in the EU. Craft Commerce ...
2
votes
0answers
41 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 (...
2
votes
0answers
77 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. ...
2
votes
0answers
76 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 ...
2
votes
0answers
36 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 ...
2
votes
0answers
253 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 ...
2
votes
0answers
390 views

Craft Commerce Product Reveiws

For those who have implemented Craft Commerce and needed product reviews, what has been a good solution for you?
1
vote
0answers
28 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 ...
1
vote
0answers
22 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 ...
1
vote
0answers
49 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. ...
1
vote
0answers
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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
20 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}...
1
vote
0answers
7 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 ...
1
vote
0answers
44 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 ...
1
vote
0answers
110 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 ...
1
vote
0answers
172 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. ...
1
vote
0answers
33 views

1 free shipping item in cart, minimum shipping fee still applied

I understand why it is happening, but I'd like some help figuring a way around it. I suppose its probably a plugin. I'm using weight based shipping calculations and its all fine. Except when I have ...
1
vote
0answers
26 views

Commerce filter with width, height and length with tolerance

Hope you guys can help. I need to create a search feature on a craft commerce site that will allow the user to search for products in this principle: Product Type Width +- value height +- value ...
1
vote
0answers
46 views

Making discounts gives error on payment gateway

When i applied discounts, my payment gateway gives an error. It says that Basket items price must be greater than zero. Here is the section that takes items in cart: // Add items $basketItems = [ ...
1
vote
0answers
15 views

Can I use relational parameters that query as items on their own?

I am running a craft site on craft 2.6.2997 and latest craft commerce. I am building a url query that allows the user to add query params to the url with a bit of js. The url structure is as follows ...
1
vote
0answers
76 views

Set Shipping Address country dynamically depending on locale for multi-country website

I have a multi-country website that I am building with Craft Pro Commerce. I have set up locales for 5 countries. So, for the New Shipping Address section, I would like to have the country options ...
1
vote
0answers
49 views

Add fields to Product Type itself

I want to create product groups and save some data in themselves. but I only could add field to individual product, not product type itself. Or it is nice if product could have hierarchal structures. ...
1
vote
0answers
102 views

Include adjusters in order total

We're building out a Commerce site that needs an "Insurance" option set on an order. Based on the selected option, a percentage of the subtotal should be added to the total amount in the cart. I've ...
1
vote
0answers
45 views

Simple Payment Form with Worldpay

Currently looking into a site which requires a simple invoice payment form which needs to checkout with Worldpay. Forms fields are simply Name, Email, Address, Invoice No and Invoice Amount. I would ...
1
vote
0answers
80 views

commerce_orders onOrderComplete not triggered?

Problem: I want to trigger an action (Instant Analytics plugin) whenever a payment (Craft Commerce plugin) is successful (webhook). Payment provider is Mollie. So far I created a plugin that listens ...
1
vote
0answers
43 views

How do you apply a sale/discount to digital products?

When using the digital products plugin, is there a way to apply a sale or discount to these products? This answer mentions a digital product only has a price property and not a salePrice property. ...
1
vote
0answers
31 views

Is it possible to ask a user arbitrary, changing questions at checkout with Craft Commerce?

Craft Commerce allows us to have one set of custom Order Fields associated with a checkout process. I have a situation where we are selling tickets to a yearly event and I need to ask two questions of ...
1
vote
0answers
51 views

Remove discount from Commerce

Basically, a client needs to provide a discount that offers free shipping over a certain item total. Easy enough. But the discount needs to only apply to one shipping method, not all. I can easily ...
1
vote
0answers
126 views

Craft Commerce: Sort products by Sale price

Trying to sort products by price. {% set products = craft.commerce.products({ type: 'footwear', limit: shopSettings.productsPerPage, order: 'defaultPrice asc', }) %} It works fine. Please ...
1
vote
0answers
45 views

Showing products from many categories becomes very slow

We have 8000 products imported in the database, with a few 100 categories, sometimes up to 4 levels deep. What we try to do is that when a user clicks a main category, we show 4 random products of ...
1
vote
0answers
106 views

Importing User Orders into Craft Commerce with Sprout Import?

I'm attempting to migrate customer orders from a Wordpress website using Woocommerce to an out-of-the-box install of Craft Pro + Craft Commerce. I've been able to export the user orders as a CSV file, ...
1
vote
0answers
52 views

Commerce Plugin Unintentionally Rewriting Past Orders - Commerce Bug or Something Else?

We are experiencing very unexpected behaviour with a very simple plugin we wrote and are stymied as to whether this is revealing a bug in Commerce or whether we have completed missed something. Here ...
1
vote
0answers
92 views

When is the order email sent out in Craft Commerce?

I'm updating a custom field within a product to contain a discount code. The code is generated and the custom field updated using the onBeforeOrderComplete event. All works well, apart from the order ...
1
vote
0answers
116 views

How to create delayed charges with Craft Commerce or use Stripe's stripe-php library directly

I need to have delayed credit card charges for my client. From Stripe's end it looks fairly straightforward by creating a customer and saving their information for a later charge. https://stripe.com/...
1
vote
0answers
125 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 ...
1
vote
0answers
79 views

Commerce products returning different results on page load

I have a great many products which have a date field (they're class dates) and I want to show the next three which have any stock left (available places). The following works fine to display the next ...
1
vote
0answers
181 views

Adding custom actions to Craft Commerce orders page

I'm trying to add custom actions to the order page. Following the documentation on hooks and Element Actions, I did this In my main plugin file (OrderExporterPlugin.php) public function ...
1
vote
0answers
38 views

How can I split a discount/line item during checkout?

I have built a credit system that is working great. My original plan was to use the onOrderComplete event, but it turns out after testing I need to update the user's credits before they actually pay. ...
1
vote
0answers
68 views

How do I embed a form within a modal?

With Craft Commerce, users have the ability to save, edit and delete addresses. At present, if a user wants to add or edit an address, they are taken to a separate page. I want to know how I can ...
1
vote
0answers
65 views

Update a variant by searching for a custom field value

I've written a stock import routine that takes data from a CSV, the column I need to match on is a custom field supplierSku. I can't find an easy way to search variants for this specifically so am ...
1
vote
0answers
299 views

Commerce - Get Model via Custom Field

I have the following $criteria = craft()->elements->getCriteria('Commerce_Product'); $criteria->search = 'unquieId:' . $result['id']; $criteria->status = null; $product = $criteria->...
1
vote
0answers
175 views

Dynamics Nav 2015 (Navision) integration

I'm looking for advise and a strategy for integrating Dynamics Nav 2015 with Craft Commerce. I realise this is a broad question and a hard one, certainly since Craft Commerce has only been recently ...
0
votes
0answers
17 views

Craft Commerce - Ability to create product options

We're hoping to develop a new ecommerce website for our client. They're a printing company (not the one referenced in the link). We'd like to develop on Craft Commerce but before we convince our ...
0
votes
0answers
19 views

Craft Commerce Discounts - Promo code for one free item if there are five items in cart

Our site will offer only one product. Can we create a promo code that will apply 100% discount on 1 product if there are at least 5 products in the cart? I was playing with the conditions and had: ...
0
votes
0answers
20 views

Craft Commerce: Validation on custom variant field

This is a Craft Commerce question and it's very similar to this question, but I believe it's different. I need to validate some custom fields inside product variant before saving, so I added ...
0
votes
0answers
48 views

Craft Commerce Plugin - How to refresh/reload/redirect page in onStatusChange

I need some help in a craft backend plugin. I use this plugin in a commerce order page. I'm using it to handle onStatusChange (commerce_orderHistories). In this event, i'm testing a custom variable ...
0
votes
0answers
18 views

Reducing number of queries for craft()->commerce_variants->saveVariant($sku)

Is it possible to reduce the number of queries for saveVariant ? craft()->commerce_variants->saveVariant($sku) This line adds 26 queries. When adding multiple variants at the same time this ...
0
votes
0answers
7 views

Show sales price to all visitors although price applies to specific group

I'm building a shop using Craft Commerce Pro that offers a discount to all registered members. For each product, I want to show all visitors both the full price and the discount price of each product ...
0
votes
0answers
37 views

Is there a way to show lineitem has been removed from cart?

Does Craft Commerce has native functionality to show user when a lineitem has reached discontinuation? I see that the cart will remove item from cart if it has been disabled, but is there a way to ...