--- ./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 .= '<div class="proceed-to-checkout">';
+ $message .= ' <button onclick="location.href=\'' . Mage::helper('checkout/url')->getCheckoutUrl() . '\'" class="button" type="button">';
+ $message .= ' <span>';
+ $message .= ' <span>' . $this->__('Proceed to Checkout') . '</span>';
+ $message .= ' </span>';
+ $message .= ' </button>';
+ $message .= '</div>';
if (!$this->_getSession()->getNoCartRedirect(true)) {
$this->_getSession()->addSuccess($message);
$this->_goBack();
Optional: fix CSS
add to ./skin/frontend/default/default/css/styles.css
.proceed-to-checkout {
padding-top:8px;
}
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
*
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();
+ }
+
}
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
*
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 @@
*/
?>
<div class="welcome-msg">
- <p class="hello"><strong><?php echo $this->__('Hello, %s!', $this->htmlEscape($this->getCustomerName())) ?></strong></p>
+ <p class="hello"><strong><?php echo $this->htmlEscape($this->getCustomerNameFormal()) . "," ?></strong></p>
<p><?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.') ?></p>
</div>
http://www.panticz.de/sites/default/files/magento/formal/formal.sql.txt
ToDo
fix other "Hallo"s / "Hello"s
cd ./app
grep "getCustomerName()" * -R | grep Hallo
Links
http://www.magentocommerce.com/boards/v../viewthread/37850/P0/
# Google Analytics
http://drupal.org/project/google_analytics
download
http://ftp.drupal.org/files/projects/google_analytics-6.x-2.2.tar.gz
extract
copy to /sites/all/modules/
# enable module
Administer > Site building > Modules
/admin/build/modules
check: Google Analytics
# add tracking for anonymous user only
Administer > Site configuration > Google Analytics
/admin/settings/googleanalytics
General settings
Google Analytics account number: add UA-XXX nubmer
Role specific tracking settings > Add tracking for specific roles
check: anonymous user
Parse error: syntax error, unexpected $end in /web/1/000/027/003/273448/htdocs/includes/common.inc(1695) : eval()'d code on line 21
# enable path module (Allows users to rename URLs)
Administer > Site building > Modules
/admin/build/modules
check "Path"
# This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).
Home > Administer > Site configuration > Clean URLs
admin/settings/clean-urls
Clean URLs: Enabled
/var/www/pear install magento-community/market_ready_germany
# LINKS
http://www.symmetrics.de/mrg/
http://www.magentocommerce.com/extension/1764/market-ready-germany
http://twitter.com/marketreadyger
http://www.magentocommerce.com/extension/1826/mxperts--noregion
/var/www/pear install magento-community/Mxperts_NoRegion
Disable telephone as required in customer/address
--- app/design/frontend/default/default/template/noregion/customer/address/edit.phtml.org 2011-03-16 12:07:11.000000000 +0100
+++ app/design/frontend/default/default/template/noregion/customer/address/edit.phtml 2011-03-16 12:06:40.000000000 +0100
@@ -210,9 +210,9 @@
</li>
<li class="fields">
<div class="field">
- <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
+ <label for="telephone"><?php echo $this->__('Telephone') ?></label>
<div class="input-box">
- <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="telephone" />
+ <input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text" id="telephone" />
</div>
</div>
<div class="field">
Links
http://www.magentocommerce.com/boards/viewthread/9081/P45/
/admin/settings/performance Seitencache Caching-Modus: Normal Block-Cache Block-Cache: Aktiviert (empfohlen) [Save]