magento

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Magento: Fix PayPal order confirmation email not sent

--- ./app/code/core/Mage/Checkout/Model/Type/Onepage.php.org	2011-04-06 16:23:32.000000000 +0200
+++ ./app/code/core/Mage/Checkout/Model/Type/Onepage.php	2011-04-06 16:43:11.000000000 +0200
@@ -623,13 +623,13 @@
         /**
          * we only want to send to customer about new order when there is no redirect to third party
          */
-        if(!$redirectUrl){
+//        if(!$redirectUrl){
             try {
                 $order->sendNewOrderEmail();
             } catch (Exception $e) {
                 Mage::logException($e);
             }
-        }
+//        }
 
         $this->getCheckout()->setLastQuoteId($this->getQuote()->getId())
             ->setLastOrderId($order->getId())
1

Links
http://screencastworld.com/2010/03/magento/magento-commerce-how-to-fix-order-confirmation-email-not-sent
http://inchoo.net/ecommerce/magento/debugging-paypal-ipn-in-magento/
http://sergiy.kyrylkov.name/blog/2010/05/payment-problems-in-magento-paypal-standard-with-ipn-after-upgrade-from-1-3-x-to-1-4-0-1/

Magento: change the required / minimum password length

--- ./js/prototype/validation.js.org	2011-03-28 15:40:04.000000000 +0200
+++ ./js/prototype/validation.js	2011-03-28 15:39:46.000000000 +0200
@@ -456,7 +456,7 @@
                     }],
     ['validate-password', 'Please enter 6 or more characters. Leading or trailing spaces will be ignored.', function(v) {
                 var pass=v.strip(); /*strip leading and trailing spaces*/
-                return !(pass.length>0 && pass.length < 6);
+                return !(pass.length>0 && pass.length < 4);
             }],
     ['validate-admin-password', 'Please enter 7 or more characters. Password should contain both numeric and alphabetic characters.', function(v) {
                 var pass=v.strip();
1

Links
http://www.magentocommerce.com/boards/201210/viewthread/18197/#t62474

Magento: Delete single order

install http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder

--- ./app/code/community/EM/DeleteOrder/Block/Adminhtml/Sales/Order/Grid.php.org	2011-02-10 16:16:35.000000000 +0100
+++ ./app/code/community/EM/DeleteOrder/Block/Adminhtml/Sales/Order/Grid.php	2011-03-27 18:16:36.000000000 +0200
@@ -50,10 +50,10 @@
      *
      * @return string
      */
-    /*protected function _getCollectionClass()
+    protected function _getCollectionClass()
     {
         return 'sales/order_grid_collection';
-    }*/
+    }
 
     protected function _prepareCollection()
     {
1
--- ./app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php.org	2011-03-27 18:24:57.000000000 +0200
+++ ./app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php	2011-03-27 18:25:14.000000000 +0200
@@ -43,6 +43,7 @@
 					$query=null;
 					$order = Mage::getModel('sales/order')->load($orderId);					
 					if($order->increment_id){
+                        $order->delete(); break;
 						/*$query="show tables like 'sales_flat_order'";
 						$rs=$write->fetchAll($query);*/						
 						$incId=$order->increment_id;
1

  

    

    Page not found | panticz.de
    







    









    
          
  
  


  
Page not found
The requested page could not be found.
1

Links
http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/ - Delete test orders in Magento
http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder - Seamless Delete Order Module
http://www.magentocommerce.com/boards/viewthread/207792/P15/
http://www.magentocommerce.com/boards/viewthread/1680/P345/

Magento: Fix bug in bug in billing / shipping address edit

--- ./app/design/frontend/base/default/template/customer/address/book.phtml.org	2011-03-25 11:54:09.000000000 +0100
+++ ./app/design/frontend/base/default/template/customer/address/book.phtml	2011-03-25 12:38:08.000000000 +0100
@@ -32,7 +32,6 @@
 ?>
 
<?php echo $this->__('Address Book') ?> - __('Add New Address') ?>" class="button" onclick="window.location='<?php echo $this->getAddAddressUrl() ?>';"><?php echo $this->__('Add New Address') ?>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
@@ -56,15 +55,19 @@ <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?>
  • - <?php echo $this->__('Default Shipping Address') ?> - - <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?> - - getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?> + <?php echo $this->__('Default Shipping Address') ?> + <?php if($_pAddsses == Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?> + <?php echo $this->__('Default Shipping Address will use the Billing Address') ?> + getAddAddressUrl(); ?>"><?php echo $this->__('Add a new address to my address book') ?> + <?php else: ?> + + <?php echo $this->getAddressHtml(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?> + + getAddressEditUrl(Mage::getSingleton('customer/session')->getCustomer()->getAddressById($_pAddsses)) ?>"><?php echo $this->__('Change Shipping Address') ?> + <?php endif ?>
  • <?php else: ?>
  • - <?php echo $this->__('Default Shipping Address') ?> <?php echo $this->__('You have no default shipping address in your address book.') ?>
  • <?php endif ?> @@ -88,6 +91,7 @@ <?php endif ?> + __('Add New Address') ?>" class="button" onclick="window.location='<?php echo $this->getAddAddressUrl() ?>';"><?php echo $this->__('Add New Address') ?>
    1
    --- ./app/design/frontend/base/default/template/customer/account/dashboard/address.phtml.org	2011-03-25 11:42:43.000000000 +0100
    +++ ./app/design/frontend/base/default/template/customer/account/dashboard/address.phtml	2011-03-25 12:40:01.000000000 +0100
    @@ -28,7 +28,6 @@
         
    @@ -40,11 +39,23 @@
    <?php echo $this->__('Default Shipping Address') ?> - - <?php echo $this->getPrimaryShippingAddressHtml() ?> - getPrimaryShippingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?> - -
    + <?php if($_pAddsses = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping()): ?> + <?php if($_pAddsses == Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?> + <?php echo $this->__('Default Shipping Address will use the Billing Address') ?> + + + getAddressBookUrl() ?>"><?php echo $this->__('Manage Addresses') ?> + <?php else: ?> + + <?php echo $this->getPrimaryShippingAddressHtml() ?> + + + getPrimaryShippingAddressEditUrl() ?>"><?php echo $this->__('Edit Address') ?> + <?php endif ?> + <?php else: ?> + <?php echo $this->__('You have no default shipping address in your address book.') ?> + <?php endif ?> +
    1

    German translation (./app/locale/de_DE/Mage_Customer.csv)
    "Default Shipping Address will use the Billing Address","Sie haben noch keine Standard Versandadresse. Die Lieferung erfolgt an die Rechnungsadresse."
    "Add a new address to my address book","Neue Versandadresse hinzufügen"

    Links
    http://www.magentocommerce.com/boards/viewthread/7520/

    Magento: Sort by newest

    cp ./app/design/frontend/base/default/template/catalog/product/list.phtml ./app/design/frontend/default/default/template/catalog/product/list.phtml
    http://www.panticz.de/sites/default/files/magento/sortby/list.phtml.diff

    --- ./app/design/frontend/base/default/template/catalog/product/list.phtml	2011-02-15 17:03:34.000000000 +0100
    +++ ./app/design/frontend/default/default/template/catalog/product/list.phtml	2011-03-02 16:55:33.000000000 +0100
    @@ -48,7 +48,12 @@
                 <?php // Product description ?>
                 
    - getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName())?> + + <?php if(strtotime($_product->getData('updated_at')) > date(strtotime('-1 week'))): ?> + <?php echo strtoupper($this->__('New')) . "!" ?> + <?php endif; ?> + getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName())?> + <?php if($_product->getRatingSummary()): ?> <?php echo $this->getReviewsSummaryHtml($_product) ?> <?php endif; ?> @@ -89,7 +94,12 @@ <?php endif ?>
  • first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>"> getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" class="product-image">helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" /> - getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?> + + <?php if(strtotime($_product->getData('updated_at')) > date(strtotime('-1 week'))): ?> + <?php echo strtoupper($this->__('New')) . "!" ?> + <?php endif; ?> + getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?> + <?php if($_product->getRatingSummary()): ?> <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?> <?php endif; ?> 1
  • http://www.panticz.de/sites/default/files/magento/sortby/toolbar.phtml.diff

    --- ./app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml	2010-02-20 01:42:44.000000000 +0100
    +++ ./app/design/frontend/default/default/template/catalog/product/list/toolbar.phtml	2011-02-18 17:54:13.000000000 +0100
    @@ -78,16 +78,17 @@
             
    <?php echo $this->__('Sort by') ?> + <?php $this->removeOrderFromAvailableOrders('position'); ?> <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?> - getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>> - <?php echo $_order ?> + getOrderUrl($_key, $sort) ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>> + <?php echo $this->__($_order) ?> <?php endforeach; ?> <?php if($this->getCurrentDirection() == 'desc'): ?> - getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>">getSkinUrl('images/i_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /> + getOrderUrl(null, 'asc') ?>" title="<?php echo $this->__('Set Ascending Direction') ?>">getSkinUrl('images/up.png') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /> <?php else: ?> - getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>">getSkinUrl('images/i_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /> + getOrderUrl(null, 'desc') ?>" title="<?php echo $this->__('Set Descending Direction') ?>">getSkinUrl('images/down.png') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /> <?php endif; ?>
    1

    OPTIONAL: change sort by for a attribute
    http://www.panticz.de/sites/default/files/magento/sortby/Toolbar.php.diff

    --- ./app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php	2011-03-25 14:04:29.000000000 +0100
    +++ ./app/code/local/Mage/Catalog/Block/Product/List/Toolbar.php	2011-03-25 14:04:16.000000000 +0100
    @@ -353,6 +353,11 @@
          */
         public function getCurrentDirection()
         {
    +        // add static direction for some sort by
    +        if ($this->getCurrentOrder() == 'your_attribute') {
    +            return 'asc';
    +        }
    +
             $dir = $this->_getData('_current_grid_direction');
             if ($dir) {
                 return $dir;
    1

    Images
    /sites/default/files/magento/sortby/toolbar.phtml.diff
    /sites/default/files/magento/sortby/up.png

    Translations
    echo '"Newest first","Сначала новые"' >> ./app/locale/ru_RU/Mage_Catalog.csv

    List some products on top
    UPDATE magento.catalog_product_entity
    SET updated_at = now( ) + INTERVAL 1 year
    WHERE catalog_product_entity.sku in ('YOUR_PRODUCT_SKU');

    Links
    http://www.magentocommerce.com/boards/v/viewthread/1176 - set the default sort order for catalog pages?
    http://www.magentocommerce.com/boards/viewthread/37324/P15/#t285109

    Magento: customized category banner block

    http://www.panticz.de/sites/default/files/magento/categorybanner/local.xml

    <?xml version="1.0" encoding="UTF-8"?>
    
    
        
        
            
                
                
            
        
    
    
    1

    http://www.panticz.de/sites/default/files/magento/categorybanner/banner.phtml

    <?php
    $banner = array(
        // root category
        "shop.html"
            => array("lcd.jpg", "http://www.example.com/shop/tv/lcd.html"),
    
        // tv
        "http://www.example.com/shop/tv/lcd.html"
            => array("led.jpg", "http://www.example.com/shop/tv/led.html"),
        "http://www.example.com/shop/tv/plasma.html"
            => array("hdtv.jpg", "/hdtv")
    )
    ?>
    1

    http://www.panticz.de/sites/default/files/magento/categorybanner/my.banner.phtml

    <?php
    /*
    * banner
    * ./app/design/frontend/default/default/template/catalog/layer/my.banner.phtml
    *
    * v2011-02-08
    */
    ?>
    
    <?php
    include("banner.phtml");
    
    $url = Mage::registry('current_category')->getUrlPath();
    
    //$url = str_replace("shop/", "", $url);
    //$url = str_replace(".html", "", $url);
    
    $url = "http://www.EXAMPLE.COM/" . $url;
    
    // view banner if available
    if(array_key_exists($url, $banner)): ?>
    
    <?php else: ?>
    
    <?php endif; ?> 1

    Magento: add proceed to checkout button to message

    --- ./app/code/core/Mage/Checkout/controllers/CartController.php.org	2011-02-01 15:31:03.000000000 +0100
    +++ ./app/code/core/Mage/Checkout/controllers/CartController.php	2011-02-01 16:32:48.000000000 +0100
    @@ -185,6 +185,13 @@
                     array('product' => $product, 'request' => $this->getRequest(), 'response' => $this->getResponse())
                 );
                 $message = $this->__('%s was successfully added to your shopping cart.', Mage::helper('core')->htmlEscape($product->getName()));
    +            $message .= '
    '; + $message .= ' getCheckoutUrl() . '\'" class="button" type="button">'; + $message .= ' '; + $message .= ' ' . $this->__('Proceed to Checkout') . ''; + $message .= ' '; + $message .= ' '; + $message .= '
    '; if (!$this->_getSession()->getNoCartRedirect(true)) { $this->_getSession()->addSuccess($message); $this->_goBack(); 1

    Optional: fix CSS
    add to ./skin/frontend/default/default/css/styles.css
    .proceed-to-checkout {
    padding-top:8px;
    }

    Magento: formal customer name

    http://www.panticz.de/sites/default/files/magento/formal/Customer.php.formal.diff

    --- ./app/code/core/Mage/Customer/Model/Customer.php.org	2011-01-19 16:39:12.000000000 +0100
    +++ ./app/code/core/Mage/Customer/Model/Customer.php	2011-01-28 17:14:57.000000000 +0100
    @@ -193,6 +193,26 @@
             return $name;
         }
     
    +    public function getNameFormal()
    +    {
    +        $name = '';
    +        if ($this->getPrefix()) {
    +            if ($this->getPrefix() == 'Herr') {
    +                $name .= 'Sehr geehrter ';
    +            } else if ($this->getPrefix() == 'Frau') {
    +                $name .= 'Sehr geehrte ';
    +            }
    +            $name .= $this->getPrefix();
    +            if ($this->getSuffix()) {
    +                $name .= ' ' . $this->getSuffix();
    +            }
    +        } else {
    +            $name .= $this->getFirstname();
    +        }
    +        $name .=  ' ' . $this->getLastname();
    +        return $name;
    +    }
    +
         /**
          * Add address to address collection
          *
    1

    http://www.panticz.de/sites/default/files/magento/formal/Hello.php.formal.diff

    --- ./app/code/core/Mage/Customer/Block/Account/Dashboard/Hello.php.org	2011-01-25 16:49:53.000000000 +0100
    +++ ./app/code/core/Mage/Customer/Block/Account/Dashboard/Hello.php	2011-01-25 16:50:40.000000000 +0100
    @@ -33,4 +33,9 @@
             return Mage::getSingleton('customer/session')->getCustomer()->getName();
         }
     
    +    public function getCustomerNameFormal()
    +    {
    +        return Mage::getSingleton('customer/session')->getCustomer()->getNameFormal();
    +    }
    +
     }
    1

    http://www.panticz.de/sites/default/files/magento/formal/Order.php.diff

    --- ./app/code/core/Mage/Sales/Model/Order.php.org	2011-01-25 17:59:53.000000000 +0100
    +++ ./app/code/core/Mage/Sales/Model/Order.php	2011-01-28 17:00:52.000000000 +0100
    @@ -1511,6 +1511,26 @@
             return $customerName;
         }
     
    +    public function getCustomerNameFormal()
    +    {
    +        $name = '';
    +        if ($this->getCustomerPrefix()) {
    +            if ($this->getCustomerPrefix() == 'Herr') {
    +                $name .= 'Sehr geehrter ';
    +            } else if ($this->getCustomerPrefix() == 'Frau') {
    +                $name .= 'Sehr geehrte ';
    +            }
    +            $name .= $this->getCustomerPrefix();
    +            if ($this->getCustomerSuffix()) {
    +                $name .= ' ' . $this->getCustomerSuffix();
    +            }
    +        } else {
    +            $name .= $this->getCustomerFirstname();
    +        }
    +        $name .=  ' ' . $this->getCustomerLastname();
    +        return $name;
    +    }
    +
         /**
          * Add New object to related array
          *
    1

    http://www.panticz.de/sites/default/files/magento/formal/hello.phtml.formal.diff

    --- ./app/design/frontend/base/default/template/customer/account/dashboard/hello.phtml.org	2011-01-25 16:44:10.000000000 +0100
    +++ ./app/design/frontend/base/default/template/customer/account/dashboard/hello.phtml	2011-01-25 16:56:55.000000000 +0100
    @@ -25,6 +25,6 @@
      */
     ?>
     
    - <?php echo $this->__('Hello, %s!', $this->htmlEscape($this->getCustomerName())) ?> + <?php echo $this->htmlEscape($this->getCustomerNameFormal()) . "," ?> <?php echo $this->__('From your My Account Dashboard you have the ability to view a snapshot of your recent account activity and update your account information. Select a link below to view or edit information.') ?>
    1

    http://www.panticz.de/sites/default/files/magento/formal/order_new.html

    
    
    
    
    Hallo {{htmlescape var=$order.getCustomerName()}},vielen Dank für Ihre Bestellung bei {{block type="imprint/field" value="shop_name"}}. Sie können den aktuellen Status Ihrer Bestellung jederzeit in Ihrem Kundenbereich einsehen. Sollten Sie Fragen zu Ihrem Kundenkonto oder Ihrer Bestellung haben, senden Sie uns eine E-Mail an {{block type="imprint/field" value="email"}}. Diese Bestellung wird von uns noch bestätigt, da Münzen zwischenzeitlich vergriffen sein können. Eine Rechnung der lieferbaren Münzen mit Bankdaten senden wir Ihnen separat zu. Ihre Bestellung Nr. {{var order.increment_id}} ({{var order.getCreatedAtFormated(''long'')}}) Rechnungsadresse: Zahlungsmethode: {{var order.getBillingAddress().format(''html'')}}   {{var payment_html}} {{depend order.getIsNotVirtual()}} Versandadresse: Versandart: {{var order.getShippingAddress().format(''html'')}}   {{var order.getShippingDescription()}} {{/depend}} {{layout handle="sales_email_order_items" order=$order}} {{var order.getEmailCustomerNote()}} {{block type="imprint/content" template="symmetrics/imprint/email/footer.phtml"}}   {{block type="cms/block" block_id="mrg_revocation"}}   {{block type="cms/block" block_id="mrg_business_terms"}}
    1

    ToDo
    file: formal.sql.txt ?
    fix other "Hallo"s / "Hello"s
    cd ./app
    grep "getCustomerName()" * -R | grep Hallo

    Links
    http://www.magentocommerce.com/boards/v../viewthread/37850/P0/

    Magento: Use customer suffix as salutation

    http://www.panticz.de/sites/default/files/magento/salutation/Abstract.php.salutation.diff

    --- ./app/code/core/Mage/Customer/Model/Address/Abstract.php.org	2011-01-24 16:10:06.000000000 +0100
    +++ ./app/code/core/Mage/Customer/Model/Address/Abstract.php	2011-01-24 16:10:30.000000000 +0100
    @@ -53,14 +53,14 @@
             if ($this->getPrefix()) {
                 $name .= $this->getPrefix() . ' ';
             }
    +        if ($this->getSuffix()) {
    +            $name .= $this->getSuffix() . ' ';
    +        }
             $name .= $this->getFirstname();
             if ($this->getMiddlename()) {
                 $name .= ' ' . $this->getMiddlename();
             }
             $name .=  ' ' . $this->getLastname();
    -        if ($this->getSuffix()) {
    -            $name .= ' ' . $this->getSuffix();
    -        }
             return $name;
         }
     
    1

    http://www.panticz.de/sites/default/files/magento/salutation/Customer.php.salutation.diff

    --- ./app/code/core/Mage/Customer/Model/Customer.php.org	2011-01-19 14:49:48.000000000 +0100
    +++ ./app/code/core/Mage/Customer/Model/Customer.php	2011-01-19 16:39:12.000000000 +0100
    @@ -182,14 +182,14 @@
             if ($this->getPrefix()) {
                 $name .= $this->getPrefix() . ' ';
             }
    +        if ($this->getSuffix()) {
    +            $name .= $this->getSuffix() . ' ';
    +        }
             $name .= $this->getFirstname();
             if ($this->getMiddlename()) {
                 $name .= ' ' . $this->getMiddlename();
             }
             $name .=  ' ' . $this->getLastname();
    -        if ($this->getSuffix()) {
    -            $name .= ' ' . $this->getSuffix();
    -        }
             return $name;
         }
     
    1

    http://www.panticz.de/sites/default/files/magento/salutation/config.xml.salutation.diff

    --- ./app/code/core/Mage/Customer/etc/config.xml.org	2011-01-25 12:35:25.000000000 +0100
    +++ ./app/code/core/Mage/Customer/etc/config.xml	2011-01-25 12:53:54.000000000 +0100
    @@ -101,7 +101,7 @@
                         
                             Text
                             Text One Line
                             true
                             
    -
    +
                             
                         
                         
                             HTML
                             true
                             
    +{{depend prefix}}{{var prefix}} {{/depend}}{{depend suffix}}{{var suffix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}
     {{depend company}}{{var company}}{{/depend}}
     {{if street1}}{{var street1}}{{/if}}
     {{depend street2}}{{var street2}}{{/depend}}
    @@ -140,7 +140,7 @@
                         
                             PDF
                             
                         
                             Javascript Template
    -                        #{company}#{street0}#{street1}#{street2}#{street3}#{city}, #{region}, #{postcode}#{country_id}T: #{telephone}F: #{fax}]]>
    +                        #{company}#{street0}#{street1}#{street2}#{street3}#{city}, #{region}, #{postcode}#{country_id}T: #{telephone}F: #{fax}]]>
                         
                     
                 
    1

    OPTIONAL: fix address block
    http://www.panticz.de/sites/default/files/magento/salutation/config.xml.address.diff

    --- ./app/code/core/Mage/Customer/etc/config.xml.org	2011-01-25 12:35:25.000000000 +0100
    +++ ./app/code/core/Mage/Customer/etc/config.xml	2011-01-25 16:22:52.000000000 +0100
    @@ -108,17 +108,17 @@
     {{depend street2}}{{var street2}}{{/depend}}
     {{depend street3}}{{var street3}}{{/depend}}
     {{depend street4}}{{var street4}}{{/depend}}
    -{{if city}}{{var city}},  {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}
    +{{if postcode}}{{var postcode}}{{/if}}{{if city}} {{var city}}{{/if}}{{if region}}, {{var region}}{{/if}}
     {{var country}}
    -T: {{var telephone}}
    -{{depend fax}}F: {{var fax}}{{/depend}}
    +Tel: {{var telephone}}
    +{{depend fax}}Fax: {{var fax}}{{/depend}}
                             ]]>
                         
                         
                             Text One Line
                             true
                             
    -
    +
                             
                         
                         
    @@ -131,10 +131,10 @@
     {{depend street2}}{{var street2}}{{/depend}}
     {{depend street3}}{{var street3}}{{/depend}}
     {{depend street4}}{{var street4}}{{/depend}}
    -{{if city}}{{var city}},  {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}
    +{{if postcode}}{{var postcode}}{{/if}}{{if city}} {{var city}}{{/if}}{{if region}}, {{var region}}{{/if}}
     {{var country}}
    -{{depend telephone}}T: {{var telephone}}{{/depend}}
    -{{depend fax}}F: {{var fax}}{{/depend}}
    +{{depend telephone}}Tel: {{var telephone}}{{/depend}}
    +{{depend fax}}Fax: {{var fax}}{{/depend}}
                 ]]>
                         
                         
    @@ -147,15 +147,15 @@
     {{depend street2}}{{var street2}}|{{/depend}}
     {{depend street3}}{{var street3}}|{{/depend}}
     {{depend street4}}{{var street4}}|{{/depend}}
    -{{if city}}{{var city}},  {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}|
    +{{if postcode}}{{var postcode}}{{/if}}{{if city}} {{var city}}{{/if}}{{if region}}, {{var region}}{{/if}}|
     {{var country}}|
    -{{depend telephone}}T: {{var telephone}}{{/depend}}|
    -{{depend fax}}F: {{var fax}}{{/depend}}|
    +{{depend telephone}}Tel: {{var telephone}}{{/depend}}|
    +{{depend fax}}Fax: {{var fax}}{{/depend}}|
                 ]]>
                         
                         
                             Javascript Template
    -                        #{company}#{street0}#{street1}#{street2}#{street3}#{city}, #{region}, #{postcode}#{country_id}T: #{telephone}F: #{fax}]]>
    +                        #{company}#{street0}#{street1}#{street2}#{street3}#{postcode}, #{city}, #{region}#{country_id}T: #{telephone}F: #{fax}]]>
                         
                     
                 
    1

    Links
    http://www.magentocommerce.com/boards/v../viewthread/37850/P0/
    http://www.magentocommerce.com/boards/viewthread/176907/#t224666
    http://www.magentocommerce.com/magento-connect/mxperts/extension/1603/mxperts--customeraddress

    Magento: disable share wishlist

    Disable Share Wishlist
    mkdir -p ./app/design/frontend/default/default/template/wishlist/
    cp ./app/design/frontend/base/default/template/wishlist/view.phtml ./app/design/frontend/default/default/template/wishlist/view.phtml
    wget -nv http://dl.dropbox.com/u/4170695/magento/wishlist/view.phtml.diff -O /tmp/view.phtml.diff
    patch -p2 ./app/design/frontend/default/default/template/wishlist/view.phtml < /tmp/view.phtml.diff
    http://www.panticz.de/sites/default/files/magento/wishlist/view.phtml.diff

    --- ./app/design/frontend/base/default/template/wishlist/view.phtml	2010-02-20 01:42:30.000000000 +0100
    +++ ./app/design/frontend/default/default/template/wishlist/view.phtml	2011-01-13 15:22:28.000000000 +0100
    @@ -82,7 +82,6 @@
                 
                 decorateTable('wishlist-table')
                 
    - __('Share Wishlist') ?>" class="button btn-share"><?php echo $this->__('Share Wishlist') ?> <?php if($this->isSaleable()):?> __('Add All to Cart') ?>" onclick="setLocation('<?php echo $this->getUrl('*/*/allcart') ?>')" class="button btn-add"><?php echo $this->__('Add All to Cart') ?> <?php endif;?> 1

    Syndicate content