Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

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
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/sortby/list.phtml.diff";
echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

/*
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/sortby/sortby_newest.sql.txt";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

*/

$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/sortby/toolbar.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

OPTIONAL: change sort by for a attribute
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/sortby/Toolbar.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

Magento: customized category banner block

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/categorybanner/local.xml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/categorybanner/banner.phtml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/categorybanner/my.banner.phtml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Magento: add proceed to checkout button to message

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/cart/CartController.php.diff";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

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

Magento: formal customer name

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Customer.php.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Hello.php.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Order.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/hello.phtml.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/order_new.html";

Magento: Use customer suffix as salutation

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/Abstract.php.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/Customer.php.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/config.xml.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

OPTIONAL: fix address block
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/config.xml.address.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

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 <?php echo "<" ?> /tmp/view.phtml.diff
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/wishlist/view.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Magento: Customize Recently Viewed Products block

Move block from right to bottom
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/recently-viewed.xml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Fix design
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/recently-viewed.css";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Patch product_viewed.phtml

mkdir -p ./app/design/frontend/default/default/template/reports/
cp ./app/design/frontend/base/default/template/reports/product_viewed.phtml ./app/design/frontend/default/default/template/reports/product_viewed.phtml
wget -nv http://dl.dropbox.com/u/4170695/magento/recently-viewed/product_viewed.phtml.diff -O /tmp/product_viewed.phtml.diff

patch -p2 ./app/design/frontend/default/default/template/reports/product_viewed.phtml <?php echo "<" ?> /tmp/product_viewed.phtml.diff
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/product_viewed.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Change item count to 4
Go Admin > System > Configuration > Catatlog > Catalog
Recently Viewed/Compared Products
Default Recently Viewed Products count: 4

or run this SQL command:
UPDATE core_config_data SET value = '4' WHERE path = 'catalog/recently_products/viewed_count';

Magento: customize footer

customize footer
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/footer.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

remove footer links
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/local.xml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links
http://www.matthias-zeis.com/archiv/footer-links-magento-anpassen

Magento: Search by Category

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/form.mini.phtml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/catalogsearch.xml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/Query.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links:
http://stackoverflow.com/questions/4273898/how-to-sort-a-category-list-array-alphabetically-in-magento

Magento: GoogleAnalytics fix

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/GoogleAnalytics/Ga.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);

echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

wget http://www.panticz.de/sites/default/files/magento/GoogleAnalytics/Ga.php.diff -O /tmp/Ga.php.diff

patch -p2 ./app/code/core/Mage/GoogleAnalytics/Block/Ga.php < /tmp/Ga.php.diff

#

# TEST

#

# get source code

cd /tmp/
svn checkout http://svn.magentocommerce.com/source/branches/1.4-trunk

# trunk

cd /tmp/1.4-trunk/

# pack
tar cjf GoogleAnalytics.tar.bz2 app/code/core/Mage/GoogleAnalytics/ app/design/frontend/base/default/layout/googleanalytics.xml app/locale/en_US/Mage_GoogleAnalytics.csv --exclude=.svn
# transfer archive to your magento machine
scp /tmp/1.4-trunk/GoogleAnalytics.tar.bz2 root@YOUR_MAGENTO_IP:/tmp
# extract

diff app/code/core/Mage/GoogleAnalytics/ /var/www/app/code/core/Mage/GoogleAnalytics/ -r

# Links

http://www.magentocommerce.com/boards/viewthread/23325/P45/
http://www.magentocommerce.com/boards/viewthread/77774/#t215469

Pagination

  • Previous page
  • 3
  • Next page
magento
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung