6 votes
Accepted

Setting Shipping Country and Method for the Cart screen

I agree with the basic underlying premise that showing full cost - i.e. with shipping - is essential on the cart index page for a modern checkout. Customers loathe what they see as a hidden surprise ...
Jeremy Daalder's user avatar
4 votes
Accepted

Attach Custom Information to Commerce Order Model

Add a custom plain text field to your orders, say test. Then, when calling updateCart, you can add data in to this custom field using a form with an input named like this: <input name="fields[...
Jeremy Daalder's user avatar
4 votes
Accepted

Add a shippingCost per lineItem rather than per Order

You're right that the shipping calculator API doesn't lend itself to different rates per lineItem as such, but I'm pretty sure you can still make it do what you want. (But longer term I agree that ...
Jeremy Daalder's user avatar
3 votes
Accepted

Require shipping method in Commerce order flow

Ok, so shipping is not a necessity for a Commerce site (e.g. think about e.g. digital downloads - shipping is not relevant here) - so Commerce does not force you to set a shipping method on an order. ...
Jeremy Daalder's user avatar
3 votes
Accepted

Shipping in Craft Commerce

The short answer is no, it is not possible. The much longer answer I will add to your other question: Setting Shipping Country and Method for the Cart screen
Jeremy Daalder's user avatar
2 votes
Accepted

Custom Labels for Address Fields Craft Commerce

I think you're looking for the attribute function: {% set field = attribute(addressFields, key) %} {{ field.label }}
Luke Holder's user avatar
  • 6,757
2 votes

Commerce Product - show shipping category in template

Product:<br> Shipping Category: {{ product.shippingCategory.name ?? 'None' }}<br> Tax Category: {{ product.taxCategory.name ?? 'None'}}<br> Variant:<br> Shipping Category: {{ ...
Luke Holder's user avatar
  • 6,757
2 votes

Custom shipping cost

Yes this is definitely possible. We don't use any of Commerce's in-built shipping stuff - fields or calculation, as it's too limited for our needs (not Commerce's fault - we have very complicated ...
Jeremy Daalder's user avatar
2 votes
Accepted

Show shipping rate on Cart screen in Craft Commerce

I've not tried this so early in the checkout process, but how about adding the following to your Add To Cart forms? Replace the # with the correct value obviously. <input type="hidden" name="...
Clive Portman's user avatar
2 votes
Accepted

Free Shipping toggle switch in product editor doesn't work

I have the base rate set up as a standard flat rate charge but wanted to know how to allow this toggle switch to remove the cost of shipping for that item. Yeh that lightswitch isn't well named. ...
RitterKnight's user avatar
  • 6,572
1 vote

Setting shipping costs on a per-product basis

Were I doing this, I would create a single (or an entry, or a global I guess) with a table (or maybe Matrix) field that would hold the shipping price chart. I'd then create a custom shipping plugin ...
Jeremy Daalder's user avatar
1 vote
Accepted

Commerce - Advanced shipping cost calculations

I ended up using a custom adjuster anyways. I found out that registering custom adjusters hasn't been deprecated, but using custom types has. https://craftcms.com/docs/commerce/3.x/adjusters.html
Tim van Dijkhuizen's user avatar
1 vote

Commerce - Advanced shipping cost calculations

products that don't require shipping costs are (obviously) included in the order total which means the shipping costs are higher than they should be. It sounds like you're only using one shipping ...
RitterKnight's user avatar
  • 6,572
1 vote

Free shipping discount on whole order doesn't appear as adjustment

For anyone else viewing this question - until there is a zero value adjuster as mentioned by Luke, my solution has been to simply do the discount checks in my custom module. A little messy but it'll ...
Emily Fitton's user avatar
1 vote

Commerce Product - show shipping category in template

I took a guess and the answer was {{product.shippingCategory}}
Malcolm Maclean's user avatar
1 vote

Available Shipping Methods Returns Null

Does your shipping method have any conditions set? Like a country or region? I think getAvailableShippingMethods() takes into account your shipping address (if any) and only shows shipping methods ...
Paul's user avatar
  • 6,318
1 vote
Accepted

Skipping the shipping part for custom virtual product

Finally found a solution by adding a template variable to my custom module. I can now test from both front-end and back-end if the order really need shipping* with a single if statement. I split my ...
Maxime Lafrenière's user avatar
1 vote

Skipping the shipping part for custom virtual product

There is nothing stopping you selling products that are not physical. Just mark the product as free shipping, and skip the address and shipping method selection screens entirely (the front-end is ...
Luke Holder's user avatar
  • 6,757
1 vote

I want to know if I can interface Craft address details into DPD shipping site

Probably depends on exactly what you're looking to do, but it does look like DPD has some APIs you can integrate with: https://www.dpd.com/nl_en/business_customers/help_en_tools/labelprint_tools/...
Brad Bell's user avatar
  • 67k
1 vote

Craft Commerce Shipping Total Order Price rule

The current rule for the total in Commerce 1 is in craft/plugins/commerce/models/Commerce_ShippingRuleModel.php starting at line 214: if ($this->minTotal && $this->minTotal > $order-...
Luke Holder's user avatar
  • 6,757
1 vote
Accepted

Limit countries shown in checkout shipping to countries assigned in shipping zones settings?

You would need to either 1) Delete all the countries you don't use within your site in commerce > settings > countries. 2) Simply hide them in twig with something like this: {% set ...
Luke Holder's user avatar
  • 6,757
1 vote
Accepted

Can I set shipping rates based on order value?

Within Commerce Settings -> Shipping Methods you can set within the rules of that method, the 'Minimum Order Total Price' and the 'Maximum Order Total Price' and an associated shipping cost, so yes, ...
JollyR's user avatar
  • 166
1 vote
Accepted

Craft Commerce - Free Shipping Field

The free shipping flag on individual products stops costs being calculated by any shipping rule that is a per item rate or weight rate. See https://craftcommerce.com/docs/product-model#freeshipping
Luke Holder's user avatar
  • 6,757
1 vote

Shipping Adjustment not being added to Total Price

Turns out it was another plugin interfering with the order total.
Mouse's user avatar
  • 53
1 vote

One ShipStation Plugin - 404 Error - UPDATED 14-07-17

It looks like you may be using an out of date version of the plugin. Can you try updating to the latest and see if you're still getting this error? https://github.com/onedesign/oneshipstation/archive/...
Noah Bernsohn's user avatar
1 vote
Accepted

Same shipping rule name in different methods not allowed?

Confirmed by Luke this was due to a bug to be fixed in the next release of Commerce.
Mike's user avatar
  • 699
1 vote

Is there a way to determine if an order requires shipping?

Well, I think somewhere in-between Brad's answer and this is the solution... I too have a mix of tangible and tangible products on my site. In the CP I have checked the "Free Shipping" checkbox for ...
Damon's user avatar
  • 4,696
1 vote

Is there a way to determine if an order requires shipping?

Commerce_OrderModel has a getShippingMethod() that will return a Commerce_ShippingMethodModel class of the current shipping method, or null if nothing has been set. If you've already got the order in ...
Brad Bell's user avatar
  • 67k
1 vote
Accepted

Custom Shipping Method Availability in Commerce - User Messages

100% untested, but I think one way to go would be to use addError on one of the Commerce_OrderModel's attributes (in the defineAttributes method). Then your template could do something like: {% if '...
Brad Bell's user avatar
  • 67k
1 vote

Setting Shipping Country and Method for the Cart screen

I've also been struggling with this a lot. I get why you have to have an address defined in order to process the shipping rules, but the lack of defaults is maddening. My client's checkout process is ...
Darren Miller's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible