Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Free orders are missing shipping #3687

Open
stillhartkonzept opened this issue Sep 20, 2024 · 3 comments
Open

[4.x]: Free orders are missing shipping #3687

stillhartkonzept opened this issue Sep 20, 2024 · 3 comments
Assignees
Labels
bug commerce4 Issues related to Commerce v4 Craft Commerce

Comments

@stillhartkonzept
Copy link

What happened?

Description

As soon as I set a product to cost $0, checkout skips the shipping step. But we need to have customers pay for shipping. If i change the cost of the product to 0.1, shipping comes back.

Steps to reproduce

  1. create a product
  2. set up shipping methods and categories, choose category for product
  3. set product to 0
  4. shipping is skipped

Expected behavior

shipping should still be added to products that don't cost anything.

Actual behavior

Shipping is skipped, so customers pay nothing.

Craft CMS version

4.5.11.1

Craft Commerce version

4.3.3

PHP version

8.1.29

Operating system and version

Apache

Database type and version

Mysql

Image driver and version

No response

Installed plugins and versions

Cloner2.0.4Easily clone sections, entry types, groups and more.VerbbDocumentation
Cloner
2.0.4
Easily clone sections, entry types, groups and more.

Verbb
Documentation
Installed
Control Panel CSS
2.6.0
Add custom CSS to your Control Panel.

Double Secret Agency
Documentation
Settings
Installed
Cookies
4.0.0
A simple plugin for setting and getting cookies from within Craft CMS templates.

nystudio107
Documentation
Installed
Craft Commerce
4.3.3
Create beautifully bespoke ecommerce experiences

Pixel & Tonic
Documentation
Settings
Installed
Database Translations
2.7.1
Manage Craft i18n translations and store in database

Digital Pulse
Documentation
Settings
Installed
Events
dev-craft-4
A full-featured plugin for event management and ticketing.

Verbb
Documentation
Settings
Installed
Expanded Singles
2.0.5
Alters the Entries Index sidebar to list all Singles, rather than grouping them under a 'Singles' link.

Verbb
Documentation
Settings
Installed
Field Manager
3.0.7
Manage your fields and field groups with ease.

Verbb
Documentation
Settings
Installed
Formie
2.1.15
The most user-friendly forms plugin for Craft.

Verbb
Documentation
Settings
Installed
Goeldi
4.0.0
Plugin for various tasks helping Customers CraftCMS.

Peter Göldi
Documentation
Installed
Hyper
1.1.12
A user-friendly links field for Craft.

Verbb
Documentation
Settings
This license has expired. Renew now for another year of updates.

Installed
Incognito Field
1.3.0
PlainText drop-in replacement that can be set to disabled, hidden or readonly.

Mats Mikkel Rummelhoff
Documentation
Installed
Mailchimp Subscribe
4.0.0
Simple Craft plugin for subscribing to a MailChimp audience.

André Elvan
Documentation
Installed
MobileDetect
2.0.0
Use Mobile_Detect for detecting mobile devices (including tablets)

Superbig
Documentation
Installed
Redactor
3.0.4
Edit rich text content in Craft CMS using Redactor by Imperavi.

Pixel & Tonic
Documentation
Installed
Redactor Tweaks
3.0.1
A small Craft CMS plugin that provides some tweaks to the default Redactor II Rich Text fieldtype.

Verbb
Documentation
Installed
Site Switcher
2.3.0
Easily switch between sites on any page of your website.

Double Secret Agency
Documentation
Installed
Smith
2.0.0
Add copy, paste and clone functionality to Matrix blocks.

Verbb
Documentation
Installed
Stripe for Craft Commerce
4.1.2.3
Stripe integration for Craft Commerce 4.0+

Pixel & Tonic
Documentation
Installed
Super Table
3.0.14
Super-charge your Craft workflow with Super Table. Use it to group fields together or build complex Matrix-in-Matrix solutions.

Verbb
Documentation
Settings
Installed
Typed link field
2.1.5
A Craft field type for selecting links

Sebastian Lenz
Installed
Wordsmith
4.2.0
...because you have the best words.
Top Shelf Craft (Michael Rog)
Documentation
Installed

@stillhartkonzept stillhartkonzept added bug commerce4 Issues related to Commerce v4 Craft Commerce labels Sep 20, 2024
Copy link

linear bot commented Sep 20, 2024

@lukeholder lukeholder self-assigned this Sep 24, 2024
@lukeholder
Copy link
Member

lukeholder commented Sep 24, 2024

@stillhartkonzept I cant seem to reproduce this. The free order is still showing the shipping method option and I can apply the choice to the cart and see it in the example templates:

Do you shipping rules have a Minimum Total Order Value condition maybe?

@stillhartkonzept
Copy link
Author

thanks @lukeholder . No, I don't have a minimum total order value.
Screenshot 2024-09-24 at 17 18 05

I think it's odd that the shop bypasses the URL "/shop/checkout/shipping" and redirects to "/shop/checkout/payment". As soon as i change the product price to CHF 0.50 (for example), this no longer happens.
Here's the video with price CHF 0.00
https://www.dropbox.com/scl/fi/yn8hdfzjtnmz3yek9ol8w/price_0.mov?rlkey=n6z37kw1l5v1c6hi4brkqeus3&dl=0
Here's the video with price CHF 0.50
https://www.dropbox.com/scl/fi/s00ze1y9z8fkldsp8c37g/price_0.5.mov?rlkey=sf0vjeh0snm9tpklkb7sxlno5&dl=0

Very possible there's some other setting i missed. In particular I didn't understand the setting "Free Order Payment Strategy". Presumably an order is not "free" if it costs 0.00 but has shipping costs, right? In any case, I tried out many settings but I haven't found the right combination.

thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4 Craft Commerce
Projects
None yet
Development

No branches or pull requests

2 participants