Skip to content

Instantly share code, notes, and snippets.

@jonathandavis
Created May 17, 2013 14:40
Show Gist options
  • Save jonathandavis/5599479 to your computer and use it in GitHub Desktop.
Save jonathandavis/5599479 to your computer and use it in GitHub Desktop.
diff --git a/core/model/Item.php b/core/model/Item.php
index 0a9329d..073999d 100644
--- a/core/model/Item.php
+++ b/core/model/Item.php
@@ -151,7 +151,7 @@ class Item {
$this->sale = str_true($Product->sale);
$this->freeshipping = ( isset($Price->freeshipping) ? $Price->freeshipping : false );
- $baseprice = ( $this->sale ? $Price->promoprice : $Price->price );
+ $baseprice = roundprice( $this->sale ? $Price->promoprice : $Price->price );
$this->unitprice = $baseprice + $this->addonsum;
if (shopp_setting_enabled('taxes')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment