Since I cannot ask this on the main website because it will not be a question with much value for many readers, I decided to post it here.
What are the funny/useless/strange/... pieces of code you found in Magento so far?
Any version is OK. even 2.0.
I'll start with an old one. From ce-1.1. It can even be older I just couldn't check.
In the file app/design/frontend/default/default/template/checkout/onepage/shipping.phtml
there is this on line 41:
<?php if(false): ?>
<div class="input-box">
<label for="shipping:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
<input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" /></div>
<?php endif ?>
It was later (1.4 when the default
package was changed to base
) changed to
<?php if(false): ?>
<div class="fields">
<label for="shipping:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
<div class="input-box">
<input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
</div>
</div>
<?php endif ?>
You can also see it here for 1.1. and here for 1.4
It was removed much later. In 1.7
Let's see how long can we make the list.
diff -wr
and{.,downloader}/lib/Mage
.