Questions tagged [ecommerce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
39 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 ...
1
vote
1answer
22 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 ...
1
vote
1answer
16 views

Empty cart should remove coupon discounts in commerce

Is there anyway to remove all the discounts if cart becomes empty?
1
vote
1answer
42 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 ...
1
vote
1answer
23 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 ...
1
vote
2answers
18 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 ...
2
votes
1answer
61 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 ...
2
votes
1answer
113 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 ...
0
votes
0answers
22 views

Is it possible to get a users most popular categories based on Craft products?

So i wanna show the user the product categories that is most popular for that spesific user. Is that possible?
0
votes
0answers
49 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 ...
1
vote
1answer
89 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 ...
1
vote
1answer
35 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 ...
1
vote
0answers
38 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 ...
1
vote
1answer
29 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…
0
votes
0answers
23 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 ...
1
vote
0answers
18 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 ...
0
votes
1answer
28 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="...
1
vote
2answers
187 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 ...
0
votes
1answer
60 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? ...
1
vote
1answer
52 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?
1
vote
1answer
124 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 ...
1
vote
1answer
206 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 ...
1
vote
1answer
1k 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/...
1
vote
1answer
498 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 ...
2
votes
1answer
391 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 ...
1
vote
1answer
674 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 ...
1
vote
1answer
217 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 ...
1
vote
2answers
352 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 ...
5
votes
3answers
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.
1
vote
2answers
319 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 ...
1
vote
1answer
624 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 ...
1
vote
0answers
18 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 ...
3
votes
3answers
635 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 ...
1
vote
1answer
789 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 ...
2
votes
2answers
264 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 ...
1
vote
0answers
217 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
1answer
74 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
724 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 ...
3
votes
1answer
584 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 ...
1
vote
1answer
388 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 ...
2
votes
1answer
113 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 ...
1
vote
2answers
698 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!
1
vote
1answer
289 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. ...
1
vote
2answers
143 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 ...
1
vote
2answers
319 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 ...
1
vote
3answers
96 views

How can I re-order the same order?

I want to have a button on order information page when clicked the same order should be repeated. How can I put the same products again in the cart or simply re-order again?
2
votes
1answer
182 views

Payment form submission is returning a curl error! ([curl] 3: <url> malformed [url])

I'm submitting a payment form via standard POST submission (not AJAX) to the current page URL, with an action value of commerce/payments/pay. To double-check my work, I've also copy + pasted their ...
1
vote
1answer
256 views

Extending Craft Commerce admin templates

I would like to add an option to the gear menu seen below in Craft Commerce, is it possible to extend those templates ? The idea is to create a plugin to export the selected orders to a CSV file
1
vote
1answer
270 views

Shipping Method option not showing

I've set up a shipping method/zone purely for testing but it doesn't show up during checkout. :/ I created a shipping zone only for the state of Oregon: And for the shipping method there's just ONE ...