Stack Exchange Network

Stack Exchange network consists of 175 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.

13
votes
0answers
593 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
49 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
232 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. ...
2
votes
0answers
81 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
88 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
273 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
408 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
17 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 ...
1
vote
0answers
22 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 ...
1
vote
0answers
23 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? ...
1
vote
0answers
8 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+...
1
vote
0answers
36 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 ...
1
vote
0answers
30 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
24 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
57 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
24 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
27 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
54 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
137 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
37 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
27 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
48 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
16 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
85 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
64 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
129 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
46 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
88 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
47 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
58 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
131 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
46 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
118 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
55 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
104 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
124 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
136 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
81 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
185 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
70 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
69 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
304 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
179 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
23 views

Localization - “not found” in CP on language selection

Folks: I'm creating a localized site on Craft2 and CraftCommerce. I have followed the instructions for creating a localized site but none of the content shows at the localized URL and the homepage ...
0
votes
0answers
16 views

Commerce 1 create a new order programmatically

How can this be done in PHP? I can't find anything in the docs.