hier ein kleines vqmod damit die Telefonnummer bei der Registrierung nicht erforderlich ist. Entwickelt auf/für Opencart 1.5.1.3 mit english admin und deutschem shop:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Do NOT require phone-number as required input</id>
<version>1.0.0</version>
<vqmver>1.0.9</vqmver>
<author>hjgode</author>
<!-- changes for opencart 1.5.1.3 -->
<file name="catalog/view/theme/*/template/account/register.tpl">
<operation>
<search position="replace">
<![CDATA[<td><span class="required">*</span> <?php echo $entry_telephone; ?></td>]]>
</search>
<add>
<![CDATA[<td><?php echo $entry_telephone; ?></td>]]>
</add>
</operation>
</file>
<file name="catalog/controller/account/register.php">
<operation>
<search position="replace">
<![CDATA[if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {]]>
</search>
<add>
<![CDATA[if ((utf8_strlen($this->request->post['telephone']) < 0) || (utf8_strlen($this->request->post['telephone']) > 32)) {]]>
</add>
</operation>
</file>
</modification>
Josef