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

shippingMethod.amount != cart.getAdjustmentsTotalByType('shipping') #381

Closed
davist11 opened this issue Jun 20, 2018 · 0 comments
Closed

Comments

@davist11
Copy link
Contributor

Description

On our shipping method selection page, we are looping through all the available shipping methods:

{% for handle, method in cart.availableShippingMethods %}
	<label>
		<input type="radio" name="shippingMethodHandle" value="{{ handle }}" data-required {% if handle == cart.shippingMethodHandle %}checked{% endif %}>
		<strong>{{ method.name }}</strong>

		<span class="price">
			{{ method.amount|commerceCurrency(cart.currency) }}
		</span>
	</label>
{% endfor %}

Once you select the shipping method, you are taken to the payment selection page, where we also have a mini order review:

{{ cart.getAdjustmentsTotalByType('shipping') | commerceCurrency(cart.currency) }}

I would expect these amounts to match, but they do not. I'm not sure if it's related to shipping discounts or what.

Additional info

  • Craft version: Craft Pro 3.0.11
  • PHP version: 7.1.12
  • Database driver & version: MySQL 5.6.38
  • Plugins & versions:
Algolia 1.0.0
Amazon S3 1.0.8
Asset Rev 6.0.0
AsyncQueue 1.3.2
Audit 2.0.1
Automatic Site Switch 1.0.0
Calendar 2.0.3
Category Utilities 1.0.0
Certificates 1.0.0
Converge 1.0.0
Craft Commerce dev-master
Environment Label 3.1.4
Feed Me 3.0.0-beta.15
Field Manager 2.0.2
Flat Categories 2.0.0
Forms 2.0.4
Freeform Pro 2.0.4
Geo Cookie 1.1.2
Hamilton Utility 1.0.0
Importer 1.0.0
Inlin 2.0.0
Inventory 1.0.0
OrderExporter 1.0.0
Redactor 2.1.0
Sidebar Toggle 2.0.0
SimpleSentry 1.0.0
Super Table 2.0.7
Taxes 1.0.0
Twig Perversion 2.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant