Jump to content

Kimi

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by Kimi

  1. I tried to find it in code, but couldn't. So I wrote scipt which sends it:

    <?php
    
    require_once(dirname(__FILE__).'/config/config.inc.php');
    require_once(dirname(__FILE__).'/init.php');
    
    $vars = array('{shop_name}' => 'test'); 
    
    Mail::Send((int)Context::getContext()->language->id, 'test','test', array(), '[email protected]');
    
    ?>
    

    create this file in root www directory and run it

    • Like 1
  2. Dobry den,

    skuste v subore /classes/Address.php

    zmazte pri public static $definition vsetky required => true

    a v subore zakomentovat tieto riadky:

    /* Check zip code format */
    
    if ($country->zip_code_format && !$country->checkZipCode($postcode))
    	$this->errors[] = sprintf(Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'), str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))));
    elseif(empty($postcode) && $country->need_zip_code)
    	$this->errors[] = Tools::displayError('A Zip / Postal code is required.');
    elseif ($postcode && !Validate::isPostCode($postcode))
    	$this->errors[] = Tools::displayError('The Zip / Postal code is invalid.');
    
    

    ->

    /* Check zip code format */
    /*
    if ($country->zip_code_format && !$country->checkZipCode($postcode))
    	$this->errors[] = sprintf(Tools::displayError('The Zip/Postal code you\'ve entered is invalid. It must follow this format: %s'), str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))));
    elseif(empty($postcode) && $country->need_zip_code)
    	$this->errors[] = Tools::displayError('A Zip / Postal code is required.');
    elseif ($postcode && !Validate::isPostCode($postcode))
    	$this->errors[] = Tools::displayError('The Zip / Postal code is invalid.');
    */
    
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More