Jump to content

sooroos

Members
  • Posts

    290
  • Joined

  • Last visited

  • Days Won

    1

sooroos last won the day on July 22 2018

sooroos had the most liked content!

2 Followers

About sooroos

  • Birthday 03/10/1982

Profile Information

  • Location
    Germany
  • Activity
    Freelancer

Recent Profile Visitors

8,270,308 profile views

sooroos's Achievements

  1. enable debug mode and you will get the right error message define('DEBUG', true);
  2. Hi, try the following: override the Paymentmodule.php as it follows: 1. add the following function: public function getAllMessages($id) { $messages = Db::getInstance()->executeS(' SELECT `message` FROM `'._DB_PREFIX_.'message` WHERE `id_order` = '.(int)$id.' ORDER BY `id_message` ASC'); $result = array(); foreach ($messages as $message) $result[] = $message['message']; return implode('<br/>', $result); } 2. copy the entire function "public function validateOrder" from the original file PaymentModule.php and paste it in the override file, then look for the part $data = array(... and add the following line: '{message}' => $this->getAllMessages($order->id), now you can use {message} variable in your email template
  3. P.S. 1.6.1.14 like mnsh said there is no effect after changing the product.js, Cache cleared, no js error
  4. Hi, i am looking in AdminImportController to understand how the entities are imported via CSV. What i dont find are the add() and update() functions For example in customerImport() function, on a sucessfull import we have $customer->add() and $customer->update(). I need to know/see what these functions do, where are they? Can someone tell me where should i look for? P.S. 1.6.1.14
  5. Hi, i had the same situation, because i use the login form in a modal, so basically "HTTP_REFERER" wasnt the solution for me. i have used: <input type="hidden" class="hidden" name="back" value="{if isset($force_ssl) && $force_ssl}https://{else}http://{/if}{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/>
  6. Hi you need to override the Address.php and set company required true as: public static $definition = array( 'table' => 'address', 'primary' => 'id_address', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), ), );
  7. AEUC + advanced OPC + OPC has major bugs and the developer (its is a Prestashop official module) seems like does not give a sh!t i have found another 3 until now: 1. you choose a payement method and u agree ToS but you dont fill customer infos and you hit the button confirm order -> there is no error msg generated about customer details or so 2. minimal purchase requirement is totally forgoten and bypassed 3. you can attach cms only to Core emails and no others because all of these i find AUEC completely useless. Practically it only moves ToS agreement on last page and shows cart before hitting the last button
  8. is there a place where should i report this, so that it would be taken into consideration?
  9. yes i need, i have alsolooked a bit and couldnt fint the search_query tool
  10. i think i didnt express myself too clear, or you didnt understant the question i am interested in a search for whole content, meaning, for example, i have text in home text editor module, and that should be also searchable. Or another example is manufacturer name - it finds the product and not the manufacture itself, which is listed on "all manufacturers page"
  11. Hi, is there any way to have a search function for the whole content and not only the products name?
  12. i dont rly know in this situation what the error could be. do you have any errormessage, what ps version do you use? does the code work with the city for example??
  13. i see that you use postcode (address_delivery->postcode) and that should be a number, in my example i used the cityname. and that code was for p.s. 1.5.4.1 or so
  14. well it is developed by prestashop it is official You can find it already under uninstalled modules in your installation too
×
×
  • Create New...