tuk66 Posted March 9, 2011 Share Posted March 9, 2011 Ve faktuře by to mohlo vypadat nějak takto (nezkoušel jsem):po if($invoice_customer->dni != NULL) $pdf->Cell($width, 10, self::l('Tax ID number:').' '.Tools::iconv('utf-8', self::encoding(), $invoice_customer->dni), 0, 'L'); přidat if($invoice_customer->IC != NULL) $pdf->Cell($width, 10, self::l('IČ:').' '.Tools::iconv('utf-8', self::encoding(), $invoice_customer->IC), 0, 'L'); if($invoice_customer->DIC != NULL) $pdf->Cell($width, 10, self::l('DIČ:').' '.Tools::iconv('utf-8', self::encoding(), $invoice_customer->DIC), 0, 'L'); Link to comment Share on other sites More sharing options...
Mogway Posted March 10, 2011 Share Posted March 10, 2011 edit 23.2.2011 18:40Předělal jsem pro prestashop 1.3.7 snad Vám ušetřím trochu času...http://rapidshare.com/files/449487629/ico-dic_-_prestashop_1.3.7.rar neda sa mi zaregistrovat, vytvoril som uplne cisty shop a stale pise, ze sa vyskytla 1 chyba Muzete to prosim jeste nekdo uploadovat znova? I kdyz mam zaplaceny ucet na RS, stale mi to pise: Unassigned file limit of 10 downloads reached.:-( Link to comment Share on other sites More sharing options...
lukk Posted March 11, 2011 Share Posted March 11, 2011 to tuk66: To bych měl vložit do classes/PDF.php? Tam totiž nemám tu část co uvádíš a za kterou bych to měl vložitto videojs: a nějakou konkrétní chybu to vypisuje? Obávám se ale, že já nejsem ten správný na radu... Snad jen jít cestou porovnávání dvou souborů jako jsem šel já...to Tr: http://rapidshare.com/files/452043350/ico-dic_-_prestashop_1.3.7.rar Link to comment Share on other sites More sharing options...
tuk66 Posted March 11, 2011 Share Posted March 11, 2011 lukk:Pak nevím. Takhle vypadá PDF.php v 1.3.7. Podstatný je kód v public static function invoice() Ten výstřižek je za $pdf->Cell($width, 10, $delivery_address->phone, 0, 'L'); a před if (!empty($delivery_address->phone_mobile)) Link to comment Share on other sites More sharing options...
lukk Posted March 16, 2011 Share Posted March 16, 2011 A bavíme se o "PDF.php" jež je ve složce "classes"? Tam totiž nic z toho co uvádíš nemám...Hledím do toho a snažím se to pochopit ale mé znalosti na to nestačí... Z toho co jsem pochopil, tak zápis IČ a DIČ tam mám, nicméně místo toho se mi ve faktuře zobrazuje jen prázdné místo. Viz obrázek /* fakturační adresa */ $pdf->Cell(5, 10, '','L'); $pdf->SetFont(self::fontname(), '', 9); /* velikost textu ič */ $pdf->Cell(90, 10, self::l('IC: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_IC')) ,'R'); $pdf->Cell(5, 10, ''); $pdf->SetFont(self::fontname(), '', 10); /* velikost textu fakturační adresa */ $pdf->Cell(35, 10, self::l('Invoicing')); $pdf->SetFont(self::fontname(), '', 9); if (!empty($invoice_address->company)) $pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->company), 'R'); $pdf->Ln(5); $pdf->Cell(5, 10, '','L'); $pdf->Cell(90, 10, self::l('DIC: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_DIC')) ,'R'); $pdf->Cell(40, 10, ''); $pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->firstname).' '.Tools::iconv('utf-8', self::encoding(), $invoice_address->lastname),'R'); $pdf->Ln(5); $pdf->Cell(5, 10, '','L'); $pdf->Cell(90, 10,self::l('E-mail: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_EMAIL')) ,'R'); $pdf->Cell(40, 10, ''); if (!empty($invoice_address->address2)) $pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->address1).', '.Tools::iconv('utf-8', self::encoding(), $invoice_address->address2), 'R'); else $pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->address1), 'R'); $pdf->Ln(5); $pdf->Cell(5, 10, '','L'); $pdf->Cell(90, 10,self::l('Web: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_WWW')),'R'); $pdf->Cell(40, 10,''); $pdf->Cell(0, 10,$invoice_address->postcode.' '.Tools::iconv('utf-8', self::encoding(), $delivery_address->city) , 'R'); $pdf->Ln(5); $pdf->Cell(5, 10, '','L'); $pdf->Cell(90, 10, self::l('Phone: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_PHONE')) ,'R'); $pdf->Cell(40, 10,''); if (Tools::iconv('utf-8', self::encoding(),$invoice_address->country.($invoiceState ? '-'.$invoiceState->name : ''))=='Česká Republika-Česká republika') $pdf->Cell(0, 10, 'Česká republika', 'R'); else $pdf->Cell(0, 10,Tools::iconv('utf-8', self::encoding(), $invoice_address->country.($invoiceState ? '-'.$invoiceState->name : '')) , 'R'); $pdf->Ln(5); $pdf->Cell(5, 10,'','L'); $pdf->Cell(90, 10, self::l('Fax: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_FAX')) ,'R'); /* pokud nechcete používat FAX, místo něj doplňte $pdf->Cell(90, 10,'' ,'R'); */ $pdf->Cell(40, 10, ''); if (!empty($invoice_address->phone_mobile)) $pdf->Cell(0, 10, Tools::iconv('utf-8', self::encoding(), $invoice_address->phone_mobile), 'R'); $pdf->Ln(5); $pdf->Cell(5, 10,'','L'); $pdf->Cell(90, 10,self::l('Bank: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_BANK_ADDRESS'))); $carrier = new Carrier(self::$order->id_carrier); if ($carrier->name == '0') $carrier->name = Configuration::get('PS_SHOP_NAME'); $pdf->Cell(40, 10,''); if ($invoice_address->ic!='')$pdf->Cell(0, 10, self::l('IC: ').$invoice_address->ic); else $pdf->Cell(50, 10, ''); $pdf->Ln(5); $pdf->Cell(5, 10, '','L'); $pdf->Cell(90,10,self::l('Bank Account: ').Tools::iconv('utf-8', self::encoding(), Configuration::get('PS_SHOP_BANK_ACCOUNT')) ,'R'); $pdf->Cell(40, 10,''); if ($invoice_address->dic!='')$pdf->Cell(0, 10, self::l('DIC: ').Tools::iconv('utf-8', self::encoding(),$invoice_address->dic),'R'); else $pdf->Cell(0, 10, '','R'); $pdf->Ln(5); Link to comment Share on other sites More sharing options...
Addamz Posted March 19, 2011 Share Posted March 19, 2011 Zdravim.Uz to nejde stiahnut, viete to niekto uploadnut znovu. Vdaka edit 23.2.2011 18:40Předělal jsem pro prestashop 1.3.7 snad Vám ušetřím trochu času...http://rapidshare.com/files/449487629/ico-dic_-_prestashop_1.3.7.rar Link to comment Share on other sites More sharing options...
lukk Posted March 19, 2011 Share Posted March 19, 2011 Zde ke stažení http://www.uloz.to/8352981/ico-dic-prestashop-1-3-7-rar Link to comment Share on other sites More sharing options...
Addamz Posted April 4, 2011 Share Posted April 4, 2011 Nainstaloval som do 1.3.7 upravu s ICO a DIC a ukzauje mi chybu:1 vyskytla sa chyba počas vytvárania vášho účtuViete niekto co s tym? Link to comment Share on other sites More sharing options...
syrovidis Posted April 6, 2011 Share Posted April 6, 2011 Taky me to hlasi tuto chybu... nenasli jste nejake reseni? Link to comment Share on other sites More sharing options...
RAD-X Posted September 27, 2011 Share Posted September 27, 2011 Zdar chlapi, lukkova verze pro v1.3.7 nefunguje pro prestu 1.4.x. Nenašel by se tu někdo kdo by upravil podporu IČO a DIČ pro prestu 1.4.x? EDIT: Tak jsem zjisti, že do presty 1.4 žádnou podporu nepotřebuju Stačí nahodit modul Evropské DIČ a vše funguje jak má. Link to comment Share on other sites More sharing options...
romanotulini Posted October 11, 2011 Share Posted October 11, 2011 SQL dump som tam dal tento: (samozrejme ps_address a ps_customer treba zmazať) CREATE TABLE IF NOT EXISTS `ps_customer` ( `id_customer` int(10) unsigned NOT NULL auto_increment, `id_gender` int(10) unsigned NOT NULL, `id_default_group` int(10) unsigned NOT NULL DEFAULT '1', `secure_key` varchar(32) NOT NULL default '-1', `company` varchar(45) default NULL, `IC` varchar(10) default NULL, `DIC` varchar(15) default NULL, `email` varchar(128) NOT NULL, `passwd` varchar(32) NOT NULL, `last_passwd_gen` timestamp NOT NULL default CURRENT_TIMESTAMP, `birthday` date default NULL, `lastname` varchar(32) NOT NULL, `newsletter` tinyint(1) unsigned NOT NULL default '0', `ip_registration_newsletter` varchar(15) default NULL, `newsletter_date_add` datetime default NULL, `optin` tinyint(1) unsigned NOT NULL default '0', `firstname` varchar(32) NOT NULL, `dni` varchar(16) DEFAULT NULL, `active` tinyint(1) unsigned NOT NULL default '0', `deleted` tinyint(1) NOT NULL default '0', `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, PRIMARY KEY (`id_customer`), UNIQUE KEY `customer_email` (`email`), KEY `customer_login` (`email`,`passwd`), KEY `id_customer_passwd` (`id_customer`,`passwd`), KEY `id_gender` (`id_gender`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; CREATE TABLE IF NOT EXISTS `ps_address` ( `id_address` int(10) unsigned NOT NULL auto_increment, `id_country` int(10) unsigned NOT NULL, `id_state` int(10) unsigned default NULL, `IC` varchar(15) default NULL, `DIC` varchar(15) default NULL, `email` varchar(128) NOT NULL, `id_customer` int(10) unsigned NOT NULL default '0', `id_manufacturer` int(10) unsigned NOT NULL default '0', `id_supplier` int(10) unsigned NOT NULL default '0', `alias` varchar(32) NOT NULL, `company` varchar(32) default NULL, `lastname` varchar(32) NOT NULL, `firstname` varchar(32) NOT NULL, `address1` varchar(128) NOT NULL, `address2` varchar(128) default NULL, `postcode` varchar(12) default NULL, `city` varchar(64) NOT NULL, `other` text, `phone` varchar(16) default NULL, `phone_mobile` varchar(16) default NULL, `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, `active` tinyint(1) unsigned NOT NULL default '1', `deleted` tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (`id_address`), KEY `address_customer` (`id_customer`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; Link to comment Share on other sites More sharing options...
yuriix Posted November 8, 2011 Share Posted November 8, 2011 Už jste našel někdo řešení na problém s tou registrací? "vyskytla sa chyba počas vytvárania vášho účtu" * * * Mrknul jsem na to a něco je špatně v DB customer a class customer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now