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 [adjusters]

The tag has no usage guidance.

1
vote
1answer
23 views

Check for whole cart adjustment and apply line item discount

I'm writing a custom plugin for a customer that does 2 things. Uses prices from Pricing Categories. There are 10,000 digital products, so adjusting prices for large quantities is cumbersome on a per-...
1
vote
2answers
15 views

Tax Exempt Adjuster

I'm attempting to add a very basic tax adjuster to specific users based on a custom lightswitch field. I currently have a simple plugin with two classes for the plugin and adjuster that mirror the ...
2
votes
1answer
42 views

How to get all available tax rates in a Commerce site?

Is there a way to retrieve and loop through all the available tax rates that have been set up in Commerce 1? I had thought I could loop through the adjusters like so; {% for adjustment in cart....
1
vote
0answers
102 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
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
201 views

Problem with Adjuster plugin Class not found

I'm basically having this problem Getting started with Order Adjuster plugin I have the file plugins/carbonbalance/carbonBalancePlugin.php containing; <?php namespace Craft; Craft::import('...
1
vote
1answer
60 views

Add Adjuster after Order is completed?

I need to add an adjuster after the order is completed, but can't get it working. The reason is that the customer can order a individual picture, after that he get's a preview of the picture where ...
1
vote
1answer
69 views

Can a plugin manually raise another plugin's Event?

I have created an Adjuster which is attached to commerce_lineItems.onPopulateLineItem. The discount criteria is based on validation of a completely separate coupon API, so I created a permission-less ...
1
vote
2answers
186 views

Adjusters: Conditionally include tax in price

I have a question about adjusters: I am working on a shop which has two tax zones (Switzerland and EU) and two tax rates (8% and 19%). The tax should always be included in the item price. From my ...
3
votes
2answers
523 views

Getting started with Order Adjuster plugin

Starting with the Business Logic plugin from https://github.com/lindseydiloreto/craft-businesslogic I'm following 3 for 2 etc with Craft Commerce to get started. I have my main plugin file containing:...
1
vote
1answer
251 views

Commerce: How do I use an adjustor for line items?

I have built a plugin that, TL;DR subtracts credits. Everything is working great - until I actually need to change the price. I just flat-out don't understand it. This is how I am looping through ...