Questions tagged [plugin-craftcommerce]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
152 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 £...
3
votes
1answer
300 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
487 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
33 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
108 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
235 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
227 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
236 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
498 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
111 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
271 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 ...
1
vote
2answers
349 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
49 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
52 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
93 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
583 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
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 ...
2
votes
1answer
314 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
259 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
493 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
204 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
203 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
137 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 ...
1
vote
0answers
96 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
227 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 ...
1
vote
1answer
49 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
74 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
195 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
74 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
197 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
140 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
412 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
87 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 ...
1
vote
1answer
106 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
213 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
120 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
553 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) ...
1
vote
1answer
295 views

Auto Generated SKU

When I activate Auto Generated SKU's in Craft Commerce, I get the "SKU's cannot be left blank" error when I submit a new product. Isn't it the point to leave them blank so they'll auto generate based ...
2
votes
1answer
185 views

VAT not being removed when adding a number to businessTaxID

Folks, just wondering if anyone has further knowledge on Craft Commerce's Tax Rates? I am setting up my first commerce store and the client requires that if the customer is buying from the EU, and has ...
2
votes
1answer
90 views

Paypal Express shows a 404 error when returning to Commerce's completePayment endpoint

I'm trying to use Paypal Express with Craft Commerce. It sends us Paypal's login page correctly, with the right amounts, but when you click pay it returns us to this URL: /index.php/actions/commerce/...
1
vote
2answers
136 views

How to display the last 4 digits of the credit card used for a Craft Commerce purchase

I'd like to display the last 4 digits of the credit card used for a purchase in a front-end template. It appears the data is in the db in the craft_commerce_transactions table reference column in JSON ...
1
vote
1answer
57 views

Does Craft Commerce support Worldpay refunds?

If anyone else is using Worldpay with Craft Commerce (am starting to feel like I'm one of a very small number), do you have order refund functionality? As in, the Refund button that exists on the ...
1
vote
1answer
84 views

CSRF Token not verified with actual gateway in Craft Commerce

My payment page form works just fine with the dummy gateway, but once I change it to use my authorize.net gateway it says that the CSRF token isn't verified. The code below isn't complete, but I ...
2
votes
1answer
177 views

query orders by date AND time in craft commerce

How can I query all completed orders within the last hour? It seems craft is only comparing a date by YYYY-MM-DD. Following query collects all orders from the same day, as {{dateFrom}} would output ...
1
vote
1answer
62 views

Craft Commerce Worldpay 302 error

I'm having problems with Worldpay and their notorious dislike of 302 redirects with the payment response. I remember this problem last year and Luke fixed it but it seems to have returned. Within ...
1
vote
0answers
145 views

commerce_orders onOrderComplete not triggered?

Problem: I want to trigger an action (Instant Analytics plugin) whenever a payment (Craft Commerce plugin) is successful (webhook). Payment provider is Mollie. So far I created a plugin that listens ...
1
vote
1answer
380 views

Modifying Commerce line items after order is complete

I am in the process of building a gift card system for a Craft Commerce site. The current process is that the customer will order a gift card and proceed through checkout as with any other item. The ...
1
vote
1answer
127 views

Craft Commerce carts containing out-of-stock products

Customer 1 adds a product to their cart. Does not complete their order. Customer 2 purchases the remaining stock of that product, completing their order. Customer 1 returns to the store the next day, ...
2
votes
1answer
370 views

Commerce product order/sort options

What are all the available options that products can be ordered by? craft.commerce.products({ order: '???' }) I have found this reference https://craftcommerce.com/docs/products-fields#templating ...
2
votes
1answer
131 views

Address form not redirecting to payment form in Craft Commerce

I've had this working before but with the billing address as well. Do both the billing and shipping addresses need to be filled out in the same form for this to work? I get this error when I click the ...

1
3 4
5
6 7
14