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: featured items

./app/design/frontend/default/default/template/catalog/product/featured.phtml
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.phtml";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Create cms page
Admin > CMS > Pages > Add new page
Page Title: featured
URL Key: featured
Content: {{block type="featured/featured" name="product_featured" as="product_featured" template="catalog/product/featured.phtml"}}

view on other page
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/featured.view.phtml";

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://inchoo.net/ecommerce/magento/featured-products-on-magento-frontpage/

Magento Cron

cat < /etc/cron.d/magento_cron 
MAILTO=YOUR@EMAIL.COM

*/5 * * * * root /var/www/cron.sh
EOF

chmod u+x /var/www/cron.sh

Links
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job

Magento: Delete unused product images

<?php
$URL="https://raw.githubusercontent.com/panticz/magento/master/scripts/delete_unused_images.sh";

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

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
$result = curl_exec($ch);
curl_close($ch);
htmlspecialchars($result);

echo "";

?>

Links
http://www.magentocommerce.com/magento-connect/defcon2/extension/1147/image-clean/reviews#review_6087
http://stackoverflow.com/questions/4339699/delete-unused-product-images-in-magento

Magento Shadowbox (Rewrite EasyLightBox to Shadowbox)

# install easy light box

http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/1487/magento-easy-lightbox

# xml

edit

./app/design/frontend/default/default/layout/easylightbox.xml

replace
easylightbox
to
shadowbox

# phtml

copy

./app/design/frontend/default/default/template/easylightbox/media.phtml

to

./app/design/frontend/default/default/template/shadowbox/media.phtml

edit or download
http://www.panticz.de/sites/default/files/magento/shadowbox/media.phtml

# js

copy

./custom/shadowbox/shadowbox.js

to

./skin/frontend/default/default/js/shadowbox.js

edit ./skin/frontend/default/default/js/shadowbox.js
add
onclick="Shadowbox.close()"
to
id="sb-wrapper-inner"

# css

copy

./custom/shadowbox/shadowbox.css

to

./skin/frontend/default/default/css/shadowbox.css

edit ./skin/frontend/default/default/css/easylightbox.css
add
#sb-body,#sb-loading{background-color: #FFFFFF;}
#sb-wrapper-inner{background-color: #FFFFFF;padding: 5px;}

replace
url(
with
url(/skin/frontend/default/default/images/shadowbox/

replace
#sb-loading-inner{position:absolute;font-size:14px;line-height:24px;height:24px;top:50%;margin-top:-12px;width:100%;text-align:center;}
with
#sb-loading-inner{position:absolute;font-size:14px;line-height:32px;height:32px;top:50%;margin-top:-12px;width:100%;text-align:center;}

replace
#sb-loading-inner span{background:url(/skin/frontend/default/default/images/shadowbox/loading.gif) no-repeat;padding-left:34px;display:inline-block;color:#666666;}
to
#sb-loading-inner span{background:url(/skin/frontend/default/default/images/shadowbox/loading.gif) no-repeat;padding-left:38px;display:inline-block;color:#666666;}

# images

create dir

./skin/frontend/default/default/images/shadowbox/

copy *.png and *.gif to

./skin/frontend/default/default/images/shadowbox/

copy

./skin/frontend/default/default/images/lightbox/loading.gif

to

Fix Magento order tax view

mkdir -p ./app/design/frontend/default/default/template/tax/order
cp ./app/design/frontend/base/default/template/tax/order/tax.phtml ./app/design/frontend/default/default/template/tax/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/tax.phtml.diff";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

mkdir -p ./app/design/frontend/default/default/template/sales/order/ 
cp ./app/design/frontend/base/default/template/sales/order/totals.phtml ./app/design/frontend/default/default/template/sales/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/totals.phtml.diff";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Fix Magento 1.4.0.1 PayPal shipping costs bug

wget http://www.boostingecommerce.com/files/Magento_1_4_0_1_PayPal_fix.zip -O /tmp/Magento_1_4_0_1_PayPal_fix.zip
unzip /tmp/Magento_1_4_0_1_PayPal_fix.zip -d /tmp/
cp -a /tmp/Magento_1_4_0_1_PayPal_fix/app/code/local/Mage/Paypal /var/www/app/code/local/Mage/

Links
http://www.magentocommerce.com/bug-tracking/issue?issue=8467
http://www.boostingecommerce.com/fix-for-magento-1-4-0-1-paypal-and-shipping-costs

Magento: Fix PayPal order confirmation email not sent

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/paypal/Onepage.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 "";

?>

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

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

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.magentocommerce.com/boards/201210/viewthread/18197/#t62474

Magento: Delete single order

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

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/order/Grid.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 "";

$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/order/OrderController.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 "";

$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/order/delete.magento.test.order.sql.txt";

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://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

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

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/address/dashboard.address.phtml.diff";

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

curl_close($c);

echo "";

?>

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/

Pagination

  • Previous page
  • 2
  • 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