2022 Developer Survey is open! Take survey.

Questions tagged [ecommerce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
60 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 ...
user avatar
  • 437
1 vote
1 answer
97 views

Affiliate link system

Has anybody implemented an affiliate program system ? If yes, how ? I saw that Superbig has a plugin in his pipeline, but it's not out yet. Thanks a lot for your feedback ! Antoine
user avatar
  • 143
2 votes
0 answers
27 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 ...
user avatar
2 votes
1 answer
46 views

Partially pay for an order

Is there any way of partially paying for an order, so if the order total amount was $100, how can I programmatically set the payment amount to $50, and then pay the other $50 using another payment ...
user avatar
1 vote
1 answer
42 views

PDF creation with password

My client is setting up a digital downloads shop (PDF's) and has a requirement that after one or multiple products are purchased the PDF's are then available for download. He wants one or more of the ...
user avatar
2 votes
2 answers
552 views

How to create a faceted search/facet filter in Craft Commerce

I want to create these kinds of filters on my Craft Commerce site: I have poked around with the Faceted Navigation plugin, but haven't gotten it to work the way I want yet (posted an issue about high ...
user avatar
  • 617
1 vote
1 answer
53 views

Commerce - variant URL param

I noticed that variants can have their own URL when i outputted URL of line item in the cart. Url looks something like that: http://localhost/test/web/test-prod?variant=27 Is there any way to change ...
user avatar
  • 1,185
1 vote
1 answer
117 views

Empty cart should remove coupon discounts in commerce

Is there anyway to remove all the discounts if cart becomes empty?
user avatar
1 vote
1 answer
241 views

Craft Commerce — Update order status from frontend?

Following on from this question Commerce: How to update an order status via the frontend We'd like to make it easy for delivery drivers to update the status of a craft commerce order, from a frontend ...
user avatar
1 vote
1 answer
66 views

Commerce Order Status History

I am trying to bring some of the order status history from my clients commerce shop orders into a web page. I seem to be able to get the Current/Previous Status (prevStatus/newStatus.name), but cannot ...
user avatar
1 vote
2 answers
39 views

Commerce Product - show shipping category in template

I have setup some Shipping Categories (8 weeks, 4 weeks etc) and these appear down the side bar of a product when editing in admin next to 'Shipping' . How do i bring this value out via a tag on a ...
user avatar
2 votes
1 answer
368 views

Best approach for Craft Commerce 3 - Variants & Custom Text

I'm working on a Craft Commerce 3 project and for something I initially thought would be easy to do with variants seems to have completely thrown me off course so any feedback would be great. I have a ...
user avatar
  • 324
2 votes
1 answer
408 views

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

Having nearly completed my first real Commerce project, I managed to utilize most of the features offered in Commerce 3. However, I never quite figured out what the use of a line item's snapshot is ...
user avatar
  • 1,887
3 votes
0 answers
306 views

Commerce 3 products with dynamic options

I am well-versed in CraftCMS and am finally able to use Craft Commerce 3 for the first time on a project (first time for any version of Commerce, actually) and it's to build a platform for a butcher ...
user avatar
1 vote
1 answer
277 views

Get products that are in stock

In Craft Commerce 2, how can I query products that are in stock? These are products without variants. Edit: Perhaps this is a Craft-bug? This particular product type used to support variants - but ...
user avatar
  • 617
1 vote
1 answer
86 views

Let admin create price offers/quotes for customers in Commerce

Does anyone know of a plugin (or coming functionality in Commerce 3 or 4) that allows admin to create price offers/quotes for a customer and then send it to the customer's email for review? Scenario I ...
user avatar
  • 617
2 votes
1 answer
116 views

How to do smart upselling and cross-selling in Craft Commerce

I want to have the following features on my Craft Commerce site: Often bought together: Bundling You may also like: Upselling/cross-selling/personal recommendations Accessories I realize that it's ...
user avatar
  • 617
2 votes
1 answer
143 views

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

As of Commerce 2.2 line items are ordered by date created. How can you order line items differently? {% for item in cart.lineItems.orderBy(’sku desc') %} does not work…
user avatar
  • 555
0 votes
0 answers
25 views

Commerce payment currencies

admin/commerce/store-settings/paymentcurrencies There is no Croatia on currency list HRK How to solve that... Is it possible (in Craft Commerce V2) to have multi STOCK location fields for products ...
user avatar
2 votes
0 answers
31 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 ...
user avatar
0 votes
1 answer
31 views

Is it possible to add to cart with a radio input rather than a select?

I'd like to add a digital product to the cart using a radio input but all the template examples I see use select. Is it possible to use a radio input? With Select (working): <select name="...
user avatar
1 vote
2 answers
458 views

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

I know the easy answer is "yes", but let me elaborate: Say I want to create a community for grocery shoppers. I let bloggers and other influencers design their own menus that define which ...
user avatar
  • 617
0 votes
1 answer
186 views

Adding more data to the "commerce/cart/update-cart" action [duplicate]

Is it possible to add additional data to the "commerce/cart/update-cart" callback? For instance, we want to include an Asset field so we can populate a cart modal with the item's image in one call? ...
user avatar
1 vote
1 answer
108 views

Has anybody integrated craft with a rewards system?

Just wondered if anybody had done anything like this? Perhaps through zapier or a custom inetgration? Customers earning points or discounts through a Craft e-commerce site?
user avatar
1 vote
1 answer
179 views

Commerce 2 — Guest checkout error: no customer email address exists on this cart

I'm having a problem with checking out as a Guest. Below is the design so you can see what I'm talking about... Although I'm entering an email address in the Guest Checkout email field — when I get ...
user avatar
  • 109
1 vote
1 answer
376 views

How to use Saved Card in Craft Commerce

I was able to save cards by using savePaymentSource parameter in my payment form submitting at commerce/payments/pay. But how do I use these saved cards for making payments? I am using Stripe payment ...
user avatar
  • 11
1 vote
1 answer
3k views

Unexpected token "name" of value "name" ("end of statement block" expected)

Internal Server Error Unexpected token "name" of value "name" ("end of statement block" expected). Getting this error on my commerce/products template. What am I missing? {% extends 'shop/_layouts/...
user avatar
1 vote
1 answer
769 views

Dynamically update line item in Commerce 2

I'm currently trying to adjust the line items in a particular cart/order after an event is triggered. I've got: use craft\commerce\Plugin as CommercePlugin; $this->requirePostRequest(); $request ...
user avatar
2 votes
1 answer
512 views

Simple webshop solution (Craft Commerce)?

I am looking for a simple shopping solution for one of my customers. Since their website is already running with CraftCMS, I am looking if there is any integrated solution available. However, so far ...
user avatar
  • 461
1 vote
1 answer
871 views

Subscription with Craft Commerce

I am using Craft Commerce v2 plugin with Craft CMS v3 with one of my site which basically sells kid products. It's a subscription website and ones some parent subscribe for any kids package, they ...
user avatar
2 votes
1 answer
342 views

Craft Commerce Negative Stock

Is it possible to set up and manage stock in Craft Commerce even if a product stock goes into the negative? The current commerce project I'm working on is open to the public so anyone can add items to ...
user avatar
1 vote
2 answers
587 views

Link to the product from the shopping cart

Is it possible to link to the product from the shopping cart? Something like {{ item.url }} within cart.lineItems When using {{ product.url }} looping through craft.commerce.products I am getting a ...
user avatar
  • 23
5 votes
3 answers
2k views

Craft Vs Drupal?

We currently have a Drupal site. What are the advantages and disadvantages of moving to Craft and Craft Commerce. Why would someone choose Craft Commerce over Drupal Commerce.
user avatar
1 vote
2 answers
493 views

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

It's easy to know if a product has a valid Sale applied to it with product.defaultVariant.onSale - but how do you know which Sales are being applied to the product? How do you output that the product ...
user avatar
  • 3,084
1 vote
1 answer
903 views

Can I have a Craft Commerce product with options that change the product’s price?

I have a product with multiple options (e.g. colour, size, material) that all effect the price that the product then sells for. Is it possible for example if someone chooses the material:walnut that ...
user avatar
1 vote
0 answers
20 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 ...
user avatar
3 votes
3 answers
1k views

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

My client has gift wrapping services but they apply to the entire order, not one single line item. How would I add notes or custom fields to the entire order, at the shipping stage of checkout? is ...
user avatar
1 vote
1 answer
1k views

Date filtering returning wrong results - timezone issue?

I'm running into an issue where incorrect results are being returned when filtering Craft Commerce orders by date in a template. Can anyone help? I cannot figure out what is going on. FACTS: Craft ...
user avatar
  • 2,455
2 votes
2 answers
393 views

Craft Commerce: make address phone telephone field required without JavaScript

Because I used a similar address model to the one supplied in the Craft Commerce templates, which essentially uses the same form partials for both address and billing, and also hides and shows the ...
user avatar
1 vote
0 answers
278 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 ...
user avatar
1 vote
1 answer
94 views

Craft Commerce: Geo Location, and option select dropdown to switch between currencies

I would like the user to be able to switch between currencies (and tax), but I haven't figured out how to pull the currencies defined in Craft Commerce into a for loop. (I am pretty new to this ...
user avatar
1 vote
1 answer
32 views

How can I break up a product into two page templates?

I have a product overview page, with images and some text, then a call to action that launches a product customiser for that particular product. (the customiser is requiring some bespoke JSON using ...
user avatar
0 votes
1 answer
989 views

Is it possible to search in Craft Commerce by product type?

I am building an API that takes all products from the Craft Commerce Commerce_ProductModel. In this I am using the Element API plugin to build it out. I am running on Craft 2 latest version. I have ...
user avatar
3 votes
1 answer
753 views

POS integration with Craft Commerce

My client has an online store that we are building with 10 or so products. They will also have a high street store which sells the exact same products. Is it possible to integrate Craft Commerce with ...
user avatar
  • 421
1 vote
1 answer
502 views

Can Craft Commerce products be filtered with multiple query params?

I am using Craft CMS 2.6.2987 and the Craft Commerce plugin. I am building a list of products on a page using query params. The idea is that there are 2 approaches. 1) A user clicks a set of ...
user avatar
2 votes
1 answer
118 views

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

We are about to start on a project that will include a complex product catalogue, with multiple product categories and loads of relationships. The client has stated that they may want to create an ...
user avatar
  • 1,311
1 vote
2 answers
921 views

Any examples of Craft Commerce checkout process for PayPal or any other gateway?

I'm unable to find much documentation nor examples for how to actually utilize Craft Commerce and successfully convert a cart to a completed order. Any help would be greatly appreciated!
user avatar
  • 111
1 vote
1 answer
375 views

Saving a variant with new stock from plugin

Has anyone had any luck trying to save a variant via a plugin? I'm trying to integrate with a 3rd party inventory system and want to grab the current stock information and update my variants. ...
user avatar
1 vote
2 answers
196 views

Can Craft Commerce receive back the address used in paypal express checkout?

When I checkout via Paypal express if I don't already have an address added to the cart model, when the paypal checkout process returns back there will be no address attached to the order. The ...
user avatar
1 vote
2 answers
525 views

Craft Commerce - Advanced Product Options & Pricing

What are the options for creating advanced product options with pricing. I see there are way to create variants ok - but can this be linked to advanced pricing, e.g. for printing products. the ...
user avatar
  • 1,769