Kemma Posted December 2, 2011 Share Posted December 2, 2011 Ahoj. Stáhl jsem si modul, který dokáže vyexportovat web do pdf katalogu. Je to docela vychytávka, nemusím vytvářet svůj vlastní katalog, když si zákazník může stáhnout celý můj e-shop jako katalog produktů.. Modul je počeštěný, ale vyexpertovaný katalog pdf je v Angličtině. Nevíte někdo jak by se nechalo udělat, aby to exportovalo v CZ? Díky za odpovědi. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted December 2, 2011 Share Posted December 2, 2011 Určitě tam někde ve zdroji bude ID jazyka, který to má exportovat... Link to comment Share on other sites More sharing options...
Kemma Posted December 2, 2011 Author Share Posted December 2, 2011 Můžu zaslat i link na modul... Link to comment Share on other sites More sharing options...
Kemma Posted December 2, 2011 Author Share Posted December 2, 2011 kouknu se.. Link to comment Share on other sites More sharing options...
Kemma Posted December 2, 2011 Author Share Posted December 2, 2011 asi jsem slepej nebo co...nevidim.. <?php class Url2Pdf extends Module { private $_html = ''; private $_postErrors = array(); function __construct() { $this->name = 'url2pdf'; $this->tab = 'Blocks'; $this->version = 0.9; parent::__construct(); // The parent construct is required for translations $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('URL 2 PDF'); $this->description = $this->l('Convert your url in a PDF - www.catalogo-onilnersi.com.ar'); } function install() { if (!Configuration::updateValue('URL2PDF_NBR', 10) OR !parent::install() OR !$this->registerHook('rightColumn') OR !$this->registerHook('extraLeft')) return false; if (!Configuration::updateValue('URL2PDF_COLOR', '-b')) return false; return true; } public function getContent() { $output = '<h2>'.$this->displayName.'</h2>'; if (Tools::isSubmit('submitUrl2Pdf')) { $nbr = intval(Tools::getValue('nbr')); $color = Tools::getValue('color'); Configuration::updateValue('URL2PDF_NBR', $nbr); Configuration::updateValue('URL2PDF_COLOR', $color); if (!empty($skipcat)) Configuration::updateValue('URL2PDF_SKIP_CAT', implode(',',$skipcat)); if (isset($errors) AND sizeof($errors)) $output .= $this->displayError(implode('<br />', $errors)); else $output .= $this->displayConfirmation($this->l('Settings updated')); } return $output.$this->displayForm(); } function recurseCategory($categories, $current, $id_category = 1, $selectids_array) { global $currentIndex; echo '<option value="'.$id_category.'"'.(in_array($id_category,$selectids_array) ? ' selected="selected"' : '').'>'. str_repeat(' ', $current['infos']['level_depth'] * 5) . preg_replace('/^[0-9]+\./', '', stripslashes($current['infos']['name'])) . '</option>'; if (isset($categories[$id_category])) foreach ($categories[$id_category] AS $key => $row) $this->recurseCategory($categories, $categories[$id_category][$key], $key, $selectids_array); } public function displayForm() { global $cookie,$currentIndex; $output = ' <form action="'.$_SERVER['REQUEST_URI'].'" method="post"> <fieldset><legend><img src="'.$this->_path.'png.png" alt="" title="" />'.$this->l('Settings').'</legend> <label>'.$this->l('Options').'</label> <div class="margin-form"> example: www.catalogo-onlinersi.com.ar/index.php&<input type="text" size="60" name="color" value="'.Tools::getValue('color', Configuration::get('URL2PDF_COLOR')).'" /> <p class="clear">'.$this->l('Introduce the options you see in the above image').'</p> </div> <center><input type="submit" name="submitUrl2Pdf" value="'.$this->l('Save').'" class="button" /></center> <div><img src="'.$this->_path.'data.gif" alt="" title="" /><img src="'.$this->_path.'data2.gif" alt="" title="" /></div></fieldset> </form> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" title="" />'.$this->l('Contribute').'</legend> <p class="clear">'.$this->l('You can contribute with a donation if our free modules and themes are usefull for you. Clic on the link and support us!').'</p> <p class="clear">'.$this->l('For more modules & themes visit: www.catalogo-onlinersi.com.ar').'</p> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="HMBZNQAHN9UMJ"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </fieldset> </form>'; return $output; } function hookRightColumn($params) { global $smarty; $nb = intval(Configuration::get('URL2PDF_NBR')); $sort = Configuration::get('URL2PDF_SORT'); $color = Configuration::get('URL2PDF_COLOR'); $smarty->assign('color', $color); $servername= $_SERVER['SERVER_NAME']; $requesturi= $_SERVER['REQUEST_URI']; $smarty->assign(array( 'category' => $category, 'requesturi' => $requesturi, 'servername' => $servername )); return $this->display(__FILE__, 'url2pdf.tpl'); } function hookLeftColumn($params) { return $this->hookRightColumn($params); } function hookExtraLeft($params) { global $smarty; $nb = intval(Configuration::get('URL2PDF_NBR')); $sort = Configuration::get('URL2PDF_SORT'); $color = Configuration::get('URL2PDF_COLOR'); $smarty->assign('color', $color); $servername= $_SERVER['SERVER_NAME']; $requesturi= $_SERVER['REQUEST_URI']; $smarty->assign(array( 'category' => $category, 'requesturi' => $requesturi, 'servername' => $servername )); return $this->display(__FILE__, 'url2pdf-left.tpl'); } } Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted December 2, 2011 Share Posted December 2, 2011 Co tam vlastně nemáš česky? protože mě to vyexportovalo pdf v češtině... Link to comment Share on other sites More sharing options...
Kemma Posted December 2, 2011 Author Share Posted December 2, 2011 mě to exportuje celé v angličtině Link to comment Share on other sites More sharing options...
Kemma Posted December 2, 2011 Author Share Posted December 2, 2011 Nemuže to být tím že mám admin menu v Angličtině? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted December 2, 2011 Share Posted December 2, 2011 Nemuže to být tím že mám admin menu v Angličtině? Co takhle to zkusit změnit do jiného jazyka a pak se ptát? Link to comment Share on other sites More sharing options...
david.pica.pica Posted December 7, 2011 Share Posted December 7, 2011 Ahoj, teprve si s prestou zacinam hrat.. Mohl byste mi prosim nekdo poslat odkaz na tento modul? - nekde jsem nasel i modul na horizontalni menu listu, ale ted ne a ne to najit, nevite nekdo jak se to jmenovalo? Dekuju moc za pomoc, D Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted December 7, 2011 Share Posted December 7, 2011 Pičo, pičo: 1) url2pdf 2) top horizontal menu Link to comment Share on other sites More sharing options...
Kemma Posted December 8, 2011 Author Share Posted December 8, 2011 David.pica,pica- lepší login už si asi nevymyslel co? http://catalogo-onlinersi.com.ar/cs/bloky/86-url-2-pdf.html 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