Skip to content

Commit

Permalink
Import Magento Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Magento Mirror committed Jan 17, 2009
1 parent 2815710 commit b5a5fba
Show file tree
Hide file tree
Showing 27 changed files with 339 additions and 98 deletions.
62 changes: 61 additions & 1 deletion STATUS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ FIXED BUGS:

#2222: Product Alerts thru Catalog Price Rules
#4346: make tax_class_id attribute applicable only to simple, configurable, virtual by default
#4369: When translate-inline mode is set to yes Sales Report page shows XHTML code
#4481: The logo image size displayed on PayPal checkout
#4513: Msg that product was removed from compare list is not displyed in My Account view
#4528: Shipping quotes in shopping cart page
#4637: txt change - admin forgot password
#4651: Google Sitemap wil not generate
#4703: Imported configurable products don't work
#4878: ID column should have range for search
#4953: The 'Minimum order amount' should apply after the coupon is applied
#5034: multiple store feature not working on the backend
#5050: Product Browsing / list.phtml doesnt support transparency
#5076: Check for duplicate email only after "Place Order" clicked, payment goes through, and checkout does not end
#5105: Error while removing products from websites
#5117 - removed type hinting from setGroup()
#5132: Grammatical error
#5133: Poor grammar
#5173: Czech Republic - part of EU - have missing currency
#5194: back links chaos in client dashboard
#5202: Attribute Label doesn't change on the frontend
Expand Down Expand Up @@ -62,6 +68,7 @@ FIXED BUGS:
#5512: Order number shold be a link
#5516: place order button kept disabled after error
#5517: "About Us", "Customer Service" error 404 page
#5540: Customers addresses can't be edited in admin.
#5570: Backoffice : create new order , problem with payment method under Windows
#5583: Product prices don't import properly
#5587: IE bug in decorateGeneric()
Expand All @@ -85,15 +92,29 @@ FIXED BUGS:
#5728: Unnecessary rows it the Admin -> Reports -> Products-> Low stock
#5738: Unable to specify Special price to product for specific store view
#5742: link clickable after guest checkout
#5750: Products with required fields Custom Options should be invisible in some cases
#5754: 404 on both sides after trying to c
#5755: Invalid image place on front
#5772: add en_NZ to etc/config.xml
#5779: Broken view of long SKU in FF 2
#5784: Broken previewing of large picture at the front end
#5789: Store switch doesn't add SID parameter to url
#5790: Defect - if Custom Option is chossen - Related Products Up-sells Cross-sells
#5807: Need to have some validation for product.create API call
#5812: invalid api path for both getspecialprice and setspecial price
#5819: Bundle item are not showing at the front end (hasOptions attribute saving for bundles and configurable products)
#5825: Autogenerated URL keys issue
#5833: Multistore: Call to a member function getStoreIds()
#5839: form integrity in gift messages in multicheckout
#5850: app/code/core/Mage/Media/Model/File/Image.php - image conversion fails with upper case image extensions
#5851: saveAs in app/code/core/Mage/Media/Model/File/Image.php fails to report correct error
#5856: Exception after in the shopping cart with 0.00 tax rate
#5873: Security Warning in Admin
#5875: Sitemap error
#5881: catalogindex_reindex_all cron job fails
#5882: Session of Admin User persists even after user is deleted
#5891: Cannot add Custom Options in Safari 3x
#5911: Can't add (inch) symbol
Fixed dynamic SKU & weight, fixed SKU for products with custom options, multiselect options
Fixed admin notifications URL
Fixed cache management issues
Expand Down Expand Up @@ -149,7 +170,33 @@ FIXED BUGS:
Fixed base64 urls encoding
Fixed shipping tracking numbers displaying
Fixed shipping price displaying in admin order create form

Fixed salesrule/address validation object
Fixed zip-codes validation
Fixed google checkout button url that broke xhtml
Fixed url rewrites for products in anchor category (for product not assigned to it directly)
Fixed date filter in abandoned cart report
Fixed order base_shipping_tax_amount & shipping_tax_amount saving
Fixed customer shopping cart not displaying child items in admin
Fixed click action in abandoned carts report
Fixed displaing select options in Safari
Fixed radio/checkboxes lables text wrapping
Fixed onepage checkout login form submit with keyboard Enter key
Fixed bundle price calculation on product view page
Fixed usaging URL rewrites for category view (pager, layered navigation)
Fixed creating shipment
Fixed parent items logic in payment methods
Fixed arguments for event in salesrule_validator_process
Fixed inventory checking for bundle products
Fixed updating tier prices with webservices API
Fixed google checkout xml tax section generation
Fixed deleting bundle options
Fixed configurable product weight calculation in shopping cart and checkout
Fixed displaying of pure virtual orders in admin
Fixed fatal error when Soap extension is not installed
Fixed wrong SOAP content type
Fixed errors in invoice/packingslip PDF print-out (added missing fonts, fixed overlapping columns and text wrapping, displaying of non-latin1 texts)
Fixed non-working store switcher


CHANGES:

Expand Down Expand Up @@ -209,6 +256,19 @@ CHANGES:
Moved tier prices to blocks
Added clone price block for modern theme
Design updates, themes cleanup

Implemented duplicating custom options when duplicating a product
Added missing demo notice in modern theme
Added validation "_isUrlInternal" to check all referer, redirect and success urls
Added availability to reset query params for url generation
Added priority (sort order) to promo/quote/grid
Added event salesrule_validator_process
Added hiding long options on orders, invoices, etc on frontend
Set svn:ignore on downloader/pearlib/cache
Added N/A label in shipments for virtual products in bundle

iPhone theme updated for 1.1
Upgraded core/helper/string for binary-safe string operations


NOTES:
Expand Down
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ final class Mage {

public static function getVersion()
{
return '1.1.2';
return '1.1.3';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function render(Varien_Object $row)
{
$value = $row->getData($this->getColumn()->getIndex());
if (Mage::helper('core/string')->strlen($value) > 30) {
$value = '<span title="'. $this->htmlEscape($value) .'">' . Mage::helper('core/string')->truncate($value, 30) . '</span>';
$value = '<span title="'. $this->htmlEscape($value) .'">' . $this->htmlEscape(Mage::helper('core/string')->truncate($value, 30)) . '</span>';
}
else {
$value = $this->htmlEscape($value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,19 @@ public function __construct()
$this->setTemplate('system/convert/profile/upload.phtml');
}

public function getPostMaxSize()
{
return ini_get('post_max_size');
}

public function getUploadMaxSize()
{
return ini_get('upload_max_filesize');
}

public function getDataMaxSize()
{
return min($this->getPostMaxSize(), $this->getUploadMaxSize());
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ protected function _initCreditmemo($update = false)
$qty = min($orderItem->getQtyToRefund(), $invoiceItem->getQty());
}
}

$item->setQty($qty);
$item->setBackToStock(isset($savedData[$orderItem->getId()]['back_to_stock']));

$children = $orderItem->getChildrenItems();
if (!empty($children)) {
$item->setBackToStock(false);
} else {
$item->setBackToStock(isset($savedData[$orderItem->getId()]['back_to_stock']));
}

$creditmemo->addItem($item);
}
} else {
Expand Down Expand Up @@ -161,8 +169,16 @@ protected function _initCreditmemo($update = false)
$qty = $orderItem->getQtyToRefund();
}
}

$item->setQty($qty);
$item->setBackToStock(isset($savedData[$orderItem->getId()]['back_to_stock']));

$children = $orderItem->getChildrenItems();
if (!empty($children)) {
$item->setBackToStock(false);
} else {
$item->setBackToStock(isset($savedData[$orderItem->getId()]['back_to_stock']));
}

$creditmemo->addItem($item);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,14 @@ public function saveAction()
$this->getResponse()->setRedirect($this->getUrl('*/*/edit', array('id'=>$profile->getId())));
return;
}
if ($this->getRequest()->getParam('continue')) {
$this->_redirect('*/*/edit', array('id'=>$profile->getId()));
} else {
$this->_redirect('*/*');
}
}
if ($this->getRequest()->getParam('continue')) {
$this->_redirect('*/*/edit', array('id'=>$profile->getId()));
} else {
else {
Mage::getSingleton('adminhtml/session')->addError($this->__('Invalid POST data (please check post_max_size and upload_max_filesize settings in you php.ini file)'));
$this->_redirect('*/*');
}
}
Expand Down
3 changes: 3 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Option/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function setProduct($product)

public function getProduct()
{
if (is_null($this->_product)) {
$this->_product = $this->getOption()->getProduct();
}
return $this->_product;
}

Expand Down
10 changes: 10 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ public function prepareForCart(Varien_Object $buyRequest)
$product->addCustomOption('attributes', serialize($attributes));
$product->addCustomOption('product_qty_'.$subProduct->getId(), 1, $subProduct);
$product->addCustomOption('simple_product', $subProduct->getId(), $subProduct);

$subProduct->setParentProductId($product->getId())
->setCartQty(1);

$result[] = $subProduct;

return $result;
}
}
Expand All @@ -410,6 +416,10 @@ public function getOrderOptions()
$options['simple_name'] = $simpleOption->getProduct()->getName();
$options['simple_sku'] = $simpleOption->getProduct()->getSku();
}

$options['product_calculations'] = self::CALCULATE_PARENT;
$options['shipment_type'] = self::SHIPMENT_TOGETHER;

return $options;
}

Expand Down
6 changes: 5 additions & 1 deletion app/code/core/Mage/CatalogInventory/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,13 @@ public function createOrderItem($observer)
/**
* Before creating order item need subtract ordered qty from product stock
*/
if (!$item->getId()) {

$children = $item->getChildrenItems();

if (!$item->getId() && empty($children)) {
Mage::getSingleton('cataloginventory/stock')->registerItemSale($item);
}

return $this;
}

Expand Down
19 changes: 15 additions & 4 deletions app/code/core/Mage/Core/Controller/Varien/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,24 @@ protected function _getRefererUrl()
return $refererUrl;
}

/**
* Check url to be used as internal
*
* @param string $url
* @return bool
*/
protected function _isUrlInternal($url)
{
if (strpos($url, 'http') !== false
&& strpos($url, Mage::app()->getStore()->getBaseUrl()) !== 0) {
return false;
if (strpos($url, 'http') !== false) {
/**
* Url must start from base secure or base unsecure url
*/
if ((strpos($url, Mage::app()->getStore()->getBaseUrl()) === 0)
|| (strpos($url, Mage::app()->getStore()->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true)) === 0)) {
return true;
}
}
return true;
return false;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion app/code/core/Mage/Install/Model/Installer/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ public function checkDatabase($data)
$result = $connection->query($connection->quoteInto('SHOW VARIABLES LIKE ?', 'version'));
$row = $result->fetch();
$version = $row['Value'];
preg_match("([0-9.]+)",$version,$toCompare);
$requiredVersion = (string)Mage::getSingleton('install/config')->getNode('check/mysql/version');

if (version_compare($version, $requiredVersion) == -1) {
if (version_compare(isset($toCompare[0])?$toCompare[0]:$version, $requiredVersion) == -1) {
Mage::throwException(Mage::helper('install')->__('Database server version does not match system requirements (required: %s, actual: %s)', $requiredVersion, $version));
}
}
Expand Down
19 changes: 17 additions & 2 deletions app/code/core/Mage/Paypal/Block/Express/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public function getShippingRates()
#$this->getAddress()->collectShippingRates()->save();

$groups = $this->getAddress()->getGroupedAllShippingRates();
if (!empty($groups)) {
/*if (!empty($groups)) {
$ratesFilter = new Varien_Filter_Object_Grid();
$ratesFilter->addFilter(Mage::app()->getStore()->getPriceFilter(), 'price');
foreach ($groups as $code => $groupItems) {
$groups[$code] = $ratesFilter->filter($groupItems);
}
}
}*/
return $this->_rates = $groups;
}
return $this->_rates;
Expand All @@ -92,4 +92,19 @@ public function setMethod($varName)
{
$this->_method=$varName;
}

public function getShippingPrice($price, $flag)
{
return $this->formatPrice($this->helper('tax')->getShippingPrice($price, $flag, $this->getAddress()));
}

public function formatPrice($price)
{
return $this->getReview()->getQuote()->getStore()->convertPrice($price, true);
}

public function isVirtual()
{
return $this->getReview()->getQuote()->getIsVirtual();
}
}
6 changes: 5 additions & 1 deletion app/code/core/Mage/Paypal/Model/Api/Nvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ public function callDoDirectPayment()
{
$p = $this->getPayment();
$a = $this->getBillingAddress();
$s = $this->getShippingAddress();
if ($this->getShippingAddress()) {
$s = $this->getShippingAddress();
} else {
$s = $a;
}

$nvpArr = array(
'PAYMENTACTION' => $this->getPaymentType(),
Expand Down
9 changes: 7 additions & 2 deletions app/code/core/Mage/Paypal/Model/Express.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ public function shortcutSetExpressCheckout()

public function markSetExpressCheckout()
{
$address = $this->getQuote()->getShippingAddress();
if ($this->getQuote()->isVirtual()) {
$address = $this->getQuote()->getBillingAddress();
} else {
$address = $this->getQuote()->getShippingAddress();
}
$this->getApi()
->setPaymentType($this->getPaymentAction())
->setAmount($address->getBaseGrandTotal())
Expand All @@ -191,7 +195,7 @@ public function markSetExpressCheckout()

$this->catchError();

$this->getSession()->setExpressCheckoutMethod('mark');
$this->getSession()->setExpressCheckoutMethod('mark');

return $this;
}
Expand Down Expand Up @@ -307,6 +311,7 @@ public function capture(Varien_Object $payment, $amount)
public function placeOrder(Varien_Object $payment)
{
$api = $this->getApi();

$api->setAmount($payment->getOrder()->getBaseGrandTotal())
->setCurrencyCode($payment->getOrder()->getBaseCurrencyCode());

Expand Down
7 changes: 6 additions & 1 deletion app/code/core/Mage/Paypal/Model/Express/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ public function saveOrder()
$order = Mage::getModel('sales/order');
/* @var $order Mage_Sales_Model_Order */

$order = $convertQuote->addressToOrder($shipping);
if ($this->getQuote()->isVirtual()) {
$order = $convertQuote->addressToOrder($billing);
} else {
$order = $convertQuote->addressToOrder($shipping);
}

$order->setBillingAddress($convertQuote->addressToOrderAddress($billing));
$order->setShippingAddress($convertQuote->addressToOrderAddress($shipping));
$order->setPayment($convertQuote->paymentToOrderPayment($this->getQuote()->getPayment()));
Expand Down
Loading

0 comments on commit b5a5fba

Please sign in to comment.