Questions tagged [ecommerce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 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
16 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 ...
0
votes
0answers
19 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
8 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
18 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
13 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
21 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="...
0
votes
0answers
16 views

Updating a `purchasableId` on an existing `lineItem` in Craft Commerce

The design for our cart is such that there are lines items listed in the UI which represent a product each. For each of those there is a drop-down selector which allows the user to change the variant ...
1
vote
2answers
107 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
27 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
44 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
64 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
88 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
162 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
251 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
197 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
503 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 ...
0
votes
1answer
132 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
229 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 ...
4
votes
1answer
1k 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
230 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
408 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
405 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
598 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
175 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
182 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
65 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
577 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
471 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
336 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
106 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
599 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
238 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
134 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
251 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
85 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
161 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
247 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
245 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 ...
1
vote
1answer
918 views

Getting Stripe to work with Commerce

We're using Stripe for an ecomm project that we're testing out right now and nothing is hitting Stripe. If we use a bad card number (per Stripe's docs) like 4000000000000002, the order still goes ...
1
vote
1answer
100 views

Edit a single address in Commerce

I've read the docs but I can't seem to get this to work properly. I want to edit a single address on a separate page from where all addresses for a customer are listed. I have the link to the edit ...
1
vote
1answer
370 views

Displaying assets from Craft's cart AJAX response

So, I'm currently building out an eCommerce site for a client. I'm adding products to the cart via AJAX. I'm then sliding out a 'Cart' view panel with the current cart contents, which is being updated ...
2
votes
0answers
328 views

Is there a way to integrate Craft with Magento?

Is there a method or for integrating Craft with Magento? We have a new project coming up and we've done this with EE, but would like to try with Craft. Ideally it would be a single login, but if ...
1
vote
2answers
880 views

Getting image for product in Cart Screen

Really struggling with this (perhaps my brain is tired), but how would I get the image of a product for each entry in the cart screen in Craft Commerce?
1
vote
2answers
907 views

Cart Items Total to include qty of variants

By using line total: {{ cart.lineItems|length }} it returns the number of 'products' in the current sessions cart. However, this doesn't seem to take into account the qty of each variant. So if I ...
9
votes
1answer
273 views

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

This is going to be informational, as we had a good conversation over this area on Craft Slack. And good fun trying to get around the idiotic StackExchange 'subjective' monitor to publish it here -- ...
3
votes
1answer
644 views

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

I am looking for a solution that would allow me to sell events tickets within Craft. I'm am currently making a prototype with Craft Commerce plugin for this project, but I am already facing a major ...
7
votes
1answer
1k views

Craft Commerce: Dynamic Product Price

Rather than a static price for each product, I need the price to be dynamic based on two other fields of that product. Here's an example of what I need to accomplish: Product Field 1: Wholesale Cost ...