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

ISSUE #39 FIX #42

Open
wants to merge 1 commit into
base: v3.5.8
Choose a base branch
from
Open

ISSUE #39 FIX #42

wants to merge 1 commit into from

Conversation

oralunal
Copy link

@oralunal oralunal commented Dec 8, 2024

Benim gibi döviz kurları ile shipment fiyatını belirleyen WooCommerce mağazalarının taşıma fiyatları uzun ondalık sayılardan oluşabiliyor. Ondalık hanesi 2'den fazla olduğunda ise aşağıdaki hata meydana geliyor.

"Gönderilen tutar tüm kırılımların toplam tutarına eşit olmalıdır" #39

Bu durum ilk olarak kargo fiyatının intval olarak ayarlanmasıyla ortaya çıkmıştı. O hatayı floatval olarak güncelleme düzeltilmesine karşın fiyat 2'den fazla ondalık basamak içeriyorsa yine hataya sebebiyet veriyordu. Bu durumu düzeltmek için round(SHIPMENT_FEE, 2) çözümü uyguladım. Benim gibi mağdur olan kişilerin dertlerini çözecektir.

@oralunal oralunal changed the title ISSUE #39 Fix ISSUE #39 FIX Dec 8, 2024
@oralunal oralunal changed the base branch from master to v3.5.8 February 18, 2025 06:10
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

Successfully merging this pull request may close these issues.

1 participant