Skip to main content

Questions tagged [ecommerce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Product Bundles on Craft 5

What is the best way of creating product bundles on Craft 5? Either by sending a singular bundle ID as a group or by sending multiple individual products?
Andy Lake's user avatar
0 votes
0 answers
17 views

Change product / variant price with custom module or plugin

I have recently upgraded a webshop to Craft 5 and Commerce 5. All products only have 1 variant. Prices are recalculated based on the exchange rates of gold and silver. Since Commerce 5 does not ...
Matthias's user avatar
  • 301
0 votes
0 answers
18 views

$0 Stripe Subscriptions

Has anyone successfully figured out how to do a $0 stripe subscription on commerce? Works fine in stripe but the commerce plugin requires a payment source and errors if you provide the payment source ...
cherrykoda's user avatar
  • 1,114
1 vote
1 answer
161 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
156 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
130 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,463
2 votes
1 answer
46 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
196 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
  • 801
1 vote
1 answer
232 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
  • 157
2 votes
0 answers
37 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
87 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
85 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
963 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
133 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
226 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
426 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
150 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
50 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
519 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
690 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,952
4 votes
0 answers
585 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
453 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
124 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
183 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
206 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
36 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
42 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
753 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
314 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
171 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
255 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
484 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
916 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
526 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
  • 531
1 vote
1 answer
934 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
420 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
675 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
616 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,209
1 vote
1 answer
1k 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
465 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
325 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
110 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