Questions tagged [ecommerce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
83 views

Craft Commerce Stripe Payment Plugin - send custom description or meta data?

I have Craft Commerce and the Stripe Payment gateway setup and working fine. The info that comes through to Stripe is a little generic and customer would like some info about the products sent through....
Malcolm Maclean's user avatar
1 vote
1 answer
105 views

Call external API when event is firing

I would like to send a post request to an API when a new order in in Craft Commerce is paid. So I've got this event into a plugin: Event::on( Order::class, OrderStatuses::class,...
Davide's user avatar
  • 35
1 vote
1 answer
78 views

How to query variants on product relatedTo

on my new project I decided to show in the page grid variants rather than products, but I am experiencing difficulties, since I am supposed to filter the record set based on a category relation of the ...
Masiorama's user avatar
  • 205
1 vote
1 answer
22 views

Migrate a Craft site to Craft Commerce

We have a Craft client who would like to add a store/cart to their website. Is it possible to migrate a Craft CMS site to Craft Commerce?
Roi Agneta's user avatar
  • 1,413
2 votes
1 answer
40 views

Problem running a sale on the site

Craft shows the sale running, and can tell which products are on sale using a: {% set saleProducts = craft.products() .hasVariant({ hasSales: true, hasStock: true }).all() %} loop, but on ...
madev's user avatar
  • 21
1 vote
1 answer
179 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 ...
aodihis's user avatar
  • 721
1 vote
1 answer
187 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
Antoine's user avatar
  • 143
2 votes
0 answers
31 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
1 answer
68 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 ...
José Veríssimo's user avatar
1 vote
1 answer
71 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 ...
Malcolm Maclean's user avatar
2 votes
2 answers
852 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 ...
nitech's user avatar
  • 679
1 vote
1 answer
119 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 ...
Piotr Pogorzelski's user avatar
1 vote
1 answer
205 views

Empty cart should remove coupon discounts in commerce

Is there anyway to remove all the discounts if cart becomes empty?
Bhashkar Yadav's user avatar
1 vote
1 answer
404 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 ...
Andrew F's user avatar
1 vote
1 answer
124 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 ...
Malcolm Maclean's user avatar
1 vote
2 answers
43 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 ...
Malcolm Maclean's user avatar
2 votes
1 answer
487 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 ...
JonnyT's user avatar
  • 324
2 votes
1 answer
610 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 ...
Ryan's user avatar
  • 1,942
4 votes
0 answers
548 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 ...
Chad Clark's user avatar
1 vote
1 answer
428 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 ...
nitech's user avatar
  • 679
1 vote
1 answer
121 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 ...
nitech's user avatar
  • 679
2 votes
1 answer
165 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 ...
nitech's user avatar
  • 679
2 votes
1 answer
194 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…
outline4's user avatar
  • 595
0 votes
0 answers
27 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 ...
ILIJA DIVIC's user avatar
2 votes
0 answers
34 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
0 votes
1 answer
37 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="...
patrick.altair's user avatar
1 vote
2 answers
660 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 ...
nitech's user avatar
  • 679
0 votes
1 answer
301 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? ...
Jamie Jenkins's user avatar
1 vote
1 answer
159 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?
Malcolm Maclean's user avatar
1 vote
1 answer
225 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 ...
fbnntt's user avatar
  • 109
1 vote
1 answer
448 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 ...
Mark's user avatar
  • 11
1 vote
1 answer
4k 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/...
Peter Eastwood's user avatar
1 vote
1 answer
893 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 ...
Jason Mayo's user avatar
2 votes
1 answer
522 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 ...
Luke's user avatar
  • 521
1 vote
1 answer
922 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 ...
Udit Rawat's user avatar
3 votes
1 answer
396 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 ...
Brad Lilley's user avatar
1 vote
2 answers
663 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 ...
Nermin's user avatar
  • 23
5 votes
4 answers
3k 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.
Settle Stories's user avatar
1 vote
2 answers
606 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 ...
Matt Wilcox's user avatar
  • 3,149
1 vote
1 answer
978 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 ...
patrick.altair's user avatar
1 vote
0 answers
21 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 ...
M dunbavan's 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 ...
ToddPadwick's 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 ...
Anna_MediaGirl's user avatar
2 votes
2 answers
451 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 ...
ToddPadwick's user avatar
1 vote
0 answers
321 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 ...
Jan Henckens's user avatar
1 vote
1 answer
106 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 ...
ToddPadwick's 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 ...
ToddPadwick's user avatar
0 votes
1 answer
1k 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 ...
M dunbavan's user avatar
3 votes
1 answer
849 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 ...
Sam's user avatar
  • 421
1 vote
1 answer
539 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 ...
M dunbavan's user avatar