Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-craftcommerce]

Use this tag for questions relating to the Craft Commerce product.

2
votes
1answer
58 views

How can you allow users to create products in Craft Commerce

I want site members to login and create products in Craft Commerce, so the products they create should only be visible to them on the back-end, e.g, user (A) should login and view his products in ...
1
vote
2answers
158 views

Craft Commerce returned orders stock and refund handling

Is there a simple way to handle returned or partially returned orders in Craft Commerce? I'm building a site for a shop that has to deal with a lot of returned orders (woman's dresses). A very common ...
1
vote
1answer
53 views

Notes field only for certain product types

In my shop, I have two different kinds of products.type items and my products have variants. For one of products type, I would like to show the note field in the cart. My product types are: ...
1
vote
2answers
83 views

Dynamic asset subfolder path for Craft Commerce

I have a asset field where I would like to save the images in dynamic folders. The upload folder should be parsed for the Dropdown field values in a Matrix field. For a normal Dropdown field it works ...
1
vote
1answer
38 views

Best way to define non-purchasable products?

Not every item in my store is available to buy online. What would be the best way to classify these items in Craft Commerce? (So that the 'Buy' button can be swapped for 'Enquire') There are ...
1
vote
1answer
20 views

How I can output Craft Commerces Stripes Publishable Key in a template

I would like to know how I can output Craft Commerces Stripes Publishable Key, which I define under Payment Methods, in a template? The value I set is settings[publishableKey]. Thanks Stefan
1
vote
1answer
70 views

Craft Commerce: Custom Rounding (for taxes and discounts)

Is there a way to change the default rounding behaviour of Craft Commerce? Here in Switzerland we always round to 5 cents, so amounts like 9.99 or 9.22 don't really exist. Here's an example: 9.99 ...
2
votes
2answers
115 views

PHP 7.0 and 7.1 PDF error with Craft Commerce orders

Switching over to a new server and using PHP 7.0 (and 7.1) everything looked to be fine until I tried to view an order PDF within an email from Craft Commerce. Even using the email template provided ...
1
vote
0answers
26 views

Commerce filter with width, height and length with tolerance

Hope you guys can help. I need to create a search feature on a craft commerce site that will allow the user to search for products in this principle: Product Type Width +- value height +- value ...
1
vote
1answer
62 views

Rounding issue with Craft Commerce

We've had this problem for a while now and it's largely gone un-noticed but I'd like to raise it. We have a bunch of products that are discounted when you buy them in bulk. E.g. 12 products for 69.99....
1
vote
1answer
71 views

How to compute UK style VAT in Craft Commerce?

I'm encountering a problem with how to show UK style VAT tax on an item. I've created a tax rate called VAT at 20% that is included in the taxable subject. However when this tax is computed on say £...
2
votes
1answer
139 views

Can Auth0 be used for Craft Commerce user accounts?

I want to use Auth0 to provide a Single Sign On (SSO) for a couple of services I am integrating, one of which is Craft Commerce user accounts. Does Craft Commerce allow something like Auth0 for ...
1
vote
1answer
184 views

How to make the shipping address and billing address the same?

I have a checkout page where a user puts in their shipping address. At the bottom is a checkmark which by default sets the shipping address to be the same as the billing address. This however does not ...
1
vote
1answer
25 views

Product category not being added to the order model. Craft Commerce

I've created a form in which to specify a category for a product on the product entry page. I can't seem to add the category that the customer selects to the order model. I've checked the orders in ...
1
vote
1answer
50 views

Pull in stock from Craft Commerce cart

I'm trying to set a max amount on the quantity in the cart. My problem is I want a customer to be able to update their quantity while in the cart, but I can't seem to figure out how to set the max ...
1
vote
1answer
61 views

Missing Download PDF Button in Orders for Craft Commerce

I'm not sure what happened, but the "Download PDF" button that is on the orders in the CMS is missing. I thought maybe the order PDF template file or path was missing but both of those are there. Is ...
1
vote
1answer
86 views

Display variant title on cart page only for items with more than one variant

I want to display the variant title only on line items which have more than one variant. On the Image you can see the bold Product title and undeneath there is the variant title (Format A2). As you ...
1
vote
2answers
66 views

Purging inactive carts in Craft Commerce

I've a Commerce store with orders dating back to September and have the following in my config: 'purgeInactiveCarts' => true, 'purgeInactiveCartsDuration' => 'P1M', The docs say that the ...
1
vote
1answer
172 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 ...
2
votes
0answers
78 views

Craft Commerce price lists with discounts

I have configured several discounts based on usergroup conditions in Craft Commerce. Now i would like to create a price list for the shop owner, that contains the prices for the several usergroups. ...
1
vote
1answer
158 views

Craft Commerce - Free Shipping Field

So there is this field called «Free Shipping» for each product. But I can't find anything about this in the docs. I found out that I trigger it with product.freeShipping But when activated it ...
0
votes
2answers
187 views

PayPal Express not redirecting back to Craft Commerce

I have entered API Username, Password and Signature from PayPal and added 'tokenParam' => 'craftToken' in Craft config and yet when I try to make a payment using PayPal Express I get the following.... ...
1
vote
0answers
46 views

Making discounts gives error on payment gateway

When i applied discounts, my payment gateway gives an error. It says that Basket items price must be greater than zero. Here is the section that takes items in cart: // Add items $basketItems = [ ...
1
vote
1answer
50 views

Building a DbCommand to compare two columns on Variants

I am trying to compare two fields located on Variants in Commerce. One is the price field and then I also have an original price field which is a custom field. I want to compare and get all variants ...
0
votes
1answer
50 views

Customer details revealed at base order URL

If anyone visits http://site.com/commerce/customer/order they see the last order made even if they are not logged in and not related to that order in any way. The customer can see their order info if ...
1
vote
1answer
248 views

How to get a product variant by SKU and get parent product details as well?

I need to get a product variant as an object in Twig, as well as get its parents details (the product fields, not just the variant fields). My first guess starts with this: {% set variant = craft....
1
vote
0answers
16 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 ...
1
vote
1answer
128 views

Zero dollar Commerce orders - payment how-to?

My commerce site is setup using Stripe Checkout for payment. It's possible a customer might have a zero-balance cart after discounts are applied to their order. What are my options to allow the user ...
2
votes
1answer
132 views

Commerce Bundle Product

I have a client who needs to list product "Bundles" as individual products. So basically, there would be products x, y, and z, all with their own SKU, and then bundle A with it's own SKU. Bundle A is ...
3
votes
3answers
164 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
135 views

Commerce Discount: spend $X, get product free

I want to make a promotion where at a certain cart total threshold, if a particular product is in the cart, it would be free. (e.g. spend $50 and get a free mug). Trying to sketch out the best way to ...
2
votes
2answers
105 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
78 views

Set Shipping Address country dynamically depending on locale for multi-country website

I have a multi-country website that I am building with Craft Pro Commerce. I have set up locales for 5 countries. So, for the New Shipping Address section, I would like to have the country options ...
0
votes
0answers
101 views

How to change or override form field error messages?

I would like to update some of the form errors such as the payment form year currently returns the following error when an old year is added: 'Year is too small' When I want it to say something like: ...
1
vote
0answers
51 views

Add fields to Product Type itself

I want to create product groups and save some data in themselves. but I only could add field to individual product, not product type itself. Or it is nice if product could have hierarchal structures. ...
0
votes
0answers
110 views

Commerce - Live Environment - “Trying to get property of non-object”

I have a site and been tested locally and on staging server and it checks out fine. I have moved it to the clients live server (Windows 2016) but when I hit the pay button via dummy gateway or ...
0
votes
0answers
32 views

Grouping products using a custom field

I’m trying to group products by a custom field so that only one product from each group is shown in the front end. To be more specific, the field is called ‘Product Code’, and each product has one. If ...
1
vote
1answer
22 views

How to show a product from a field entry

I'm trying to bring in recommended products for adding to a bigger purchase. I set up a simple matrix but can't seem to figure out how to pull product information. This is what I have so far, it ...
1
vote
1answer
47 views

Edit meta property value in Open Graph meta tag

I would like to implement Pinterest Product Pin for my products. I need to update og:xxx values. Here is how i done: {% set og = seomaticMeta.og %} {% set og = og | merge({'type': "product", 'product:...
1
vote
0answers
104 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
0answers
45 views

Simple Payment Form with Worldpay

Currently looking into a site which requires a simple invoice payment form which needs to checkout with Worldpay. Forms fields are simply Name, Email, Address, Invoice No and Invoice Amount. I would ...
1
vote
1answer
90 views

Order confirmation emails not being sent to guests

For some reason, order confirmation emails are being sent to customers who create an account during checkout but not if they checkout as a guest. I also see the error: Email error. No email address ...
1
vote
2answers
109 views

Error with Craft Commerce & Stripe no longer supports API requests made with TLS 1.0

I am using the code from the example templates to integrate a simple stripe pay button on a commerce site: <form method="POST"> <input type="hidden" name="action" value="commerce/payments/...
1
vote
1answer
254 views

Using the custom styled Stripe button with Craft Commerce

I know there is the Stripe checkout button that is in the example docs but I would like more control over how things look and work. I guess this is where it's over to me to look at the Stripe docs: ...
1
vote
1answer
70 views

Worldpay Offsite Gateway not redirecting to Customer Order screen on successful transaction

I am having issues with Craft Commerce and Worldpay's Offsite Payment Gateway. The way my clients accounts are set up with Worldpay, I cannot use the Worldpay JSON option so this I have to use the ...
0
votes
0answers
29 views

if products related to entry in product entry field, else products related to type

I have an entry field in each of my products that have an entry assigned to them. These are designers that are linked to each product. I also have product types. For each product, I want to show ...
1
vote
1answer
68 views

Shipping Adjustment not being added to Total Price

I have an adjuster that calculates shipping cost which I can see when I view the order in the backend. The problem is that the shipping adjustment is not being added to the total price. Any help would ...
1
vote
1answer
145 views

Get the category into the url of the product page

I'm in the middle of learning Craft Commerce. When I go to an individual product my URL says /shop/wella-shampoo/. I'd like it to say /shop/**hair-care**/wella-shampoo/ because this is the category ...
2
votes
0answers
76 views

Filtering products by categories and showing number of products related to selected category

I currently have about 420 products and over 100 of categories to choose from for each products, showing the list of categories and filtering it, works fine, and performance is not too bad when it's ...
2
votes
1answer
207 views

Craft Commerce Categories and Product Types

I've just started using craft Commerce. What's the accepted way to categorise products? For example, i’m trying to replicate this structure: Bags and Scarves (shows all products in this category) ...