Jump to content

dunozf

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

dunozf's Achievements

Newbie

Newbie (1/14)

1

Reputation

1

Community Answers

  1. if the customer enters only the name of the house, when saving it displays an error. zf
  2. no, the address must contain the street (text) and number. I was inspired from http://stackoverflow.com/questions/9335915/check-if-a-string-contains-numbers-and-letters , where is the link to the php tester http://phptester.net/index.php ? lang = en zf
  3. Hi, finally I found a function "isAddress" in classes/Validate.php , which I modified as follows: public static function isAddress($address) { // return empty($address) || preg_match('/^[^!<>?=+@{}_$%]*$/u', $address); return empty($address) || preg_match('([a-zA-Z].*[0-9]|[0-9].*[a-zA-Z])', $address); } It seems that it works as I wanted. zf
  4. Hi, often, the customer forgets to fill the house number in the address. Therefore, I need that the customer had to fill the street number. On the Internet I found this - if a string contains both numbers and letters. $myString="abc123"; if( preg_match('([a-zA-Z].*[0-9]|[0-9].*[a-zA-Z])', $myString) ) { echo('Has numbers and letters.'); } else { echo("no"); } I did experiments with it, but without success. I edited it in authentication.tpl and order-opc-new-account.tpl. Please advise. zf
  5. I sent you an email from your website, do you got it? Have you looked at it?
  6. ok, I send the relevant files. validation.php is based on module Bankwire, I get the error: Fatal error: Class 'ModuleFrontController' not found in /www/u/n/u51904/public_html/ps/modules/wplatbabw/controllers/front/validation.php on line 28 . validation.php
  7. thanks for your advice. I looked at the module Bankwire, and also some other payment modules, but I still have a problem after payment to save order and change its status. I made two versions of the module. 1. the first version is based on the module Bankwire, I get the error: Fatal error: Class 'ModuleFrontController' not found in /www/u/n/u51904/public_html/ps/modules/wplatbabw/controllers/front/validation.php on line 28 2. the second version is based on Moneybookers module, I get the error: Notice: Undefined index: cart_id in /www/u/n/u51904/public_html/ps/modules/wplatba/validation.php on line 79 Could you help me? Thanks
  8. Hi everyone, I'm working on a new payment module with redirect to the payment gateway. After making the payment, I will be redirected back to the store and from payment gateway only get data such as transaction price, transaction paid, created, canceled. I do not know how to restore and save order and change its status. Please advise. Thanks.
×
×
  • Create New...