40 votes
Accepted

What is the current landscape regarding e-commerce plugins for Craft?

E-commerce Master List This is a compilation of all publicly available solutions. Other answers here describe each plugin in greater detail... This is simply a complete list of every known option. ...
15 votes

What is the current landscape regarding e-commerce plugins for Craft?

I just finished my first Snipcart project and I'm in the process of making a plugin for browsing orders and customers from the Craft control panel. Lindsey D's got the landscape covered with his ...
12 votes
Accepted

What are the options for taking membership subscriptions via Craft?

I don't think that there currently is a plugin option right now, but keep an eye on the craft plugin page. However, given your requirement to "automatically assign users to different membership groups"...
user avatar
12 votes

What is the current landscape regarding e-commerce plugins for Craft?

I've yet to try it but Snipcart seems to be on of the most viable options right now. Essentially it works though HTML/JavaScript and integrates with fields you define in your Craft setup, see their ...
10 votes

Craft Vs Drupal?

If you are a php developer Craft will be the more interesting option because it uses the great Yii framework that provides many good tools. A few years ago we decided to drop our custom CMS ...
user avatar
9 votes

What is the current landscape regarding e-commerce plugins for Craft?

Foxycart indicates they are jumping in https://twitter.com/foxycart/status/478952251239567361
8 votes
Accepted

Craft Commerce: Dynamic Product Price

[** Updated Dec 2016] I think at this stage the best approach will be plugin based. Create a business logic plugin if you haven't already. Two good ways of doing that are : Business Logic Plugin ...
user avatar
6 votes
Accepted

Cart Items Total to include qty of variants

You can get the total quantity of items with: cart.totalQty Docs: https://craftcommerce.com/docs/order-model#totalqty
user avatar
  • 6,637
6 votes
Accepted

Commerce: what is the purpose of a line item's snapshot?

The snapshot is there so that the key details of an order are forever more available on the order record. Imagine living with Commerce for a long time - you will of course most likely add, change and/...
user avatar
5 votes
Accepted

Craft Commerce: Sort Products By Price

Close! This should do it: {% set products = craft.commerce.products({ relatedTo: (category), order: 'defaultPrice', }) %} With the quotes it's a string. Without the quotes, Twig is ...
user avatar
  • 66.4k
5 votes
Accepted

How do you gain PCI compliance without certifying your server for Craft, with or without Commerce?

The takeaway is to use api packages provided by payment providers such as Stripe and Authorize.net. The Craft Charge plugin can very much simplify and smooth doing so with Stripe. Here's a link to a ...
user avatar
  • 1,697
5 votes

What are the issues with adding Craft Commerce to an existing Craft CMS site?

You should absolutely use Craft Commerce to store the products, as there is no migration from Entries -> Craft Commerce products. You don’t need to pay for a Craft Commerce license if you are not ...
user avatar
4 votes
Accepted

Getting image for product in Cart Screen

This actually depends where the image is stored - if the asset (image) field is on the product, and is called myImage, then as per Brad's example you'd use: lineitem.purchasable.product.myImage ......
user avatar
4 votes
Accepted

Craft Commerce: Custom address model validations

You can do either or both of: Use javascript validation on the front end (with e.g. parsley) Create a plugin with a method that is registered as a listener on this event: https://craftcommerce.com/...
user avatar
4 votes

Simple webshop solution (Craft Commerce)?

You could use https://snipcart.com/, with the product data populated via Craft fields, for an easy/low-cost solution. No plugin required for this - although https://superbig.co/plugins/snipcart is in ...
user avatar
4 votes
Accepted

Partially pay for an order

This is certainly still possible with Commerce 3 and Craft 3. In a custom plugin or module you can listen for the Transactions::EVENT_AFTER_CREATE_TRANSACTION event and amend the transaction amount at ...
user avatar
3 votes

Developers Needed

I'd recommend you join the Craft Slack and post this in the #jobs channel, you might get a better response! https://craftcms.com/community#slack
user avatar
3 votes

Have the country in craft.commerce.countriesList default

I needed to add the country values to the array so used Brad's answer to come up with the following: {% set countryList = [{'77':'United Kingdom'},{'233':'United States'}] %} {% for key, country in ...
user avatar
  • 3,833
3 votes

Have the country in craft.commerce.countriesList default

Not particularly proud of this code, but if you want to do it from Twig, something like this: {% set countryList = ['United Kingdom', 'United States'] %} {% for country in craft.commerce....
user avatar
  • 66.4k
3 votes

How can I notify store owners when stock levels are getting low?

We have created an working example plugin that can notify users by email when the stock of a variant drops below a defined threshold. https://github.com/pixelandtonic/CommerceStockNotifier
user avatar
  • 6,637
3 votes

How can I notify store owners when stock levels are getting low?

Just like Craft itself, Craft Commerce has lots of events you can have a plugin respond to. In this case, you'd want to write a plugin that waits for commerce_orders.onOrderComplete (per documentation)...
user avatar
  • 3,901
3 votes

Option and notes fields after cart at checkout for order, not just line items

First, add a custom field to your orders, let's call it orderNotes. Then, in any updateCart form, you can use an input with name="fields[orderNotes]" to set the value of that field. (Line items ...
user avatar
3 votes
Accepted

How do you show which Sale a product has applied in Commerce?

The real answer is: {% for sale in variant.sales %} {% sale.description %} {% endfor %}
user avatar
  • 6,637
3 votes

Can I use Craft CMS for a large custom web application?

Craft isn't opinionated on how your site works; it just organizes and outputs your content however you want it to. You have 100% control over your HTML whether you want to use templates or dish out ...
user avatar
  • 1,887
3 votes

Craft Commerce > 2.2: How can you order line items?

I am posting the answer of Craft Commerce Support in case somebody stumbles over the same thing: It is possible to order them differently if required. The code example below shows how to order them ...
user avatar
  • 555
2 votes
Accepted

Custom Labels for Address Fields Craft Commerce

I think you're looking for the attribute function: {% set field = attribute(addressFields, key) %} {{ field.label }}
user avatar
  • 6,637
2 votes

How sell products with Craft and secure the product viewing pages?

I can only really comment on securing content as I haven't used any ecommerce solutions with craft. But as far as that is concerned — one approach would be to add a related entries field-type on the ...
user avatar
2 votes

Craft Commerce, variable product prices based on weight. Is this possible?

1oz = $1 ∴ 10oz = $10 Sell in units of weight as the quantity of the item.
user avatar
  • 1,661
2 votes

Craft Commerce: How to manage different prices with one product?

Craft Commerce support has answered to my question : Currently Craft Commerce can not have a stock counter that covers more than one variant. The default product+variant system is not designed ...
user avatar
2 votes

Getting image for product in Cart Screen

You'd access the product images just like you would any other Assets field in Craft. Assuming you've already got the cart, and your Assets field is called productImages, something like this should ...
user avatar
  • 66.4k

Only top scored, non community-wiki answers of a minimum length are eligible