Jump to content

lucav87

Members
  • Posts

    41
  • Joined

  • Last visited

1 Follower

Profile Information

  • Activity
    Web development agency

lucav87's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Good morning, I have big problems with my contact form. I replaced the original theme (I thought it was the module that was not) with contact form 7 (https://addons.prestashop.com/it/form-contatto-questionari/39561-contact-form-7.html?ab=1), I created my form, inserted in the template but the mails are not sent. if instead I open the test page that the module generates .. everything works ... how can I solve? I'm really desperate I've tried them all. test page generated: https://www.buydigital.it/contact-form/4-contatti Contact page original: https://www.buydigital.it/contattaci thank you very much Luca
  2. Buonasera a tutti, utilizzo prestashop 1.7.5.1, impostato con SMTP gmail e tutte le mail funzionano, tranne quelle che invii dal modulo contatti.. dice che è stata inviata ma non arriva nulla... anche dai log di quell'invio non c'è traccia... idee su come risolvere? grazie molte
  3. alcune si..non tutti..non capisco dove sia il problema nel trovare "tasse"...
  4. adesso sto andando a modificare ogni singolo file tpl anche se non è la soluzione corretta.. per fare un esempio.. da: <span class="text-uppercase">{$totals.total.label}</span> {$labels.tax_short} a <span class="text-uppercase">{$totals.total.label}</span> - IVA Inclusa inoltre la voce "front office" non la vedo..
  5. Gia fatto.. ma niente da fare..
  6. grazie per la risposta, un po dappertutto... ti allego alcuni shot.. sono pagine prodotto, riepilogo carrello e fase di pagamento... ho provato anche a cercare nel codice SQL tramite myadmin ma non trova nulla... quel test lo trova solo nei file che ho elencato nel primo post.. sono quasi uscito pazzo.
  7. Buonasera, ho un problema con le traduzione, vorrei modificare il testo da Tasse Incluse a IVA Inclusa, tuttavia non trovo il testo (cercato in traduzioni etc), allora l'unico modo è stato cercare tra i file tramite la funzione di Dreamweaver, e mi ha trovato i testi nei file /var/cache/prod/translation/catalogue.it-ITetcetc.php, io modifico i testi li ed il sito è ok, tuttavia quando pulisco la cache il sito torna con la scritta Tasse incluse etc etc.. come posso fare per modificare questi testi? dato che ne ho altri da modificare che trovo appunto all'interno di questi file? grazie molte. Luca
  8. L’installazione avrà circa 10 giorni di vita.. sinceramente non riesco a fare un debug del problema in quanto non da nessun errore se non quello incollato... bhooo
  9. grazie mille per l'aiuto. il file c'è.. ti incollo il codice: <?php class AdminLinkWidgetController extends ModuleAdminController { public $className = 'LinkBlock'; private $name; private $repository; public function __construct() { $this->bootstrap = true; $this->display = 'view'; parent::__construct(); $this->meta_title = $this->trans('Link Widget', array(), 'Modules.Linklist.Admin'); if (!$this->module->active) { Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome')); } $this->name = 'LinkWidget'; $this->repository = new LinkBlockRepository( Db::getInstance(), $this->context->shop, $this->context->getTranslator() ); } public function init() { if (Tools::isSubmit('edit'.$this->className)) { $this->display = 'edit'; } elseif (Tools::isSubmit('addLinkBlock')) { $this->display = 'add'; } parent::init(); } public function postProcess() { if (Tools::isSubmit('action')) { switch (Tools::getValue('action')) { case 'updatePositions': $this->updatePositions(); break; } } elseif (Tools::isSubmit('submit'.$this->className)) { if (!$this->manageLinkList()) { return false; } $hook_name = Hook::getNameById(Tools::getValue('id_hook')); if (!Hook::isModuleRegisteredOnHook($this->module, $hook_name, $this->context->shop->id)) { Hook::registerHook($this->module, $hook_name); } $this->module->_clearCache($this->module->templateFile); Tools::redirectAdmin($this->context->link->getAdminLink('Admin'.$this->name)); } elseif (Tools::isSubmit('delete'.$this->className)) { if (!$this->deleteLinkList()) { return false; } $this->module->_clearCache($this->module->templateFile); Tools::redirectAdmin($this->context->link->getAdminLink('Admin'.$this->name)); } return parent::postProcess(); } public function renderView() { $title = $this->trans('Link block configuration', array(), 'Modules.Linklist.Admin'); $this->fields_form[]['form'] = array( 'legend' => array( 'title' => $title, 'icon' => 'icon-list-alt' ), 'input' => array( array( 'type' => 'link_blocks', 'label' => $this->trans('Link Blocks', array(), 'Modules.Linklist.Admin'), 'name' => 'link_blocks', 'values' => $this->repository->getCMSBlocksSortedByHook(), ), ), 'buttons' => array( 'newBlock' => array( 'title' => $this->trans('New block', array(), 'Modules.Linklist.Admin'), 'href' => $this->context->link->getAdminLink('Admin'.$this->name).'&amp;addLinkBlock', 'class' => 'pull-right', 'icon' => 'process-icon-new' ), ), ); $this->getLanguages(); $helper = $this->buildHelper(); $helper->submit_action = ''; $helper->title = $title; $helper->fields_value = $this->fields_value; return $helper->generateForm($this->fields_form); } public function renderForm() { $block = new LinkBlock((int)Tools::getValue('id_link_block')); $this->fields_form[0]['form'] = array( 'tinymce' => true, 'legend' => array( 'title' => isset($block) ? $this->trans('Edit the link block.', array(), 'Modules.Linklist.Admin') : $this->trans('New link block', array(), 'Modules.Linklist.Admin'), 'icon' => isset($block) ? 'icon-edit' : 'icon-plus-square' ), 'input' => array( array( 'type' => 'hidden', 'name' => 'id_link_block', ), array( 'type' => 'text', 'label' => $this->trans('Name of the link block', array(), 'Modules.Linklist.Admin'), 'name' => 'name', 'lang' => true, 'required' => true, ), array( 'type' => 'select', 'label' => $this->trans('Hook', array(), 'Admin.Global'), 'name' => 'id_hook', 'class' => 'input-lg', 'options' => array( 'query' => $this->repository->getDisplayHooksForHelper(), 'id' => 'id', 'name' => 'name' ) ), array( 'type' => 'cms_pages', 'label' => $this->trans('Content pages', array(), 'Modules.Linklist.Admin'), 'name' => 'cms[]', 'values' => $this->repository->getCmsPages(), 'desc' => $this->trans('Please mark every page that you want to display in this block.', array(), 'Modules.Linklist.Admin') ), array( 'type' => 'product_pages', 'label' => $this->trans('Product pages', array(), 'Modules.Linklist.Admin'), 'name' => 'product[]', 'values' => $this->repository->getProductPages(), 'desc' => $this->trans('Please mark every page that you want to display in this block.', array(), 'Modules.Linklist.Admin') ), array( 'type' => 'static_pages', 'label' => $this->trans('Static content', array(), 'Modules.Linklist.Admin'), 'name' => 'static[]', 'values' => $this->repository->getStaticPages(), 'desc' => $this->trans('Please mark every page that you want to display in this block.', array(), 'Modules.Linklist.Admin') ), array( 'type' => 'custom_pages', 'label' => $this->trans('Custom content', array(), 'Modules.Linklist.Admin'), 'name' => 'custom[]', 'values' => $this->repository->getCustomPages($block), 'desc' => $this->trans('Please add every page that you want to display in this block.', array(), 'Modules.Linklist.Admin') ), ), 'buttons' => array( 'cancelBlock' => array( 'title' => $this->trans('Cancel', array(), 'Admin.Actions'), 'href' => (Tools::safeOutput(Tools::getValue('back', false))) ?: $this->context->link->getAdminLink('Admin'.$this->name), 'icon' => 'process-icon-cancel' ) ), 'submit' => array( 'name' => 'submit'.$this->className, 'title' => $this->trans('Save', array(), 'Admin.Actions'), ) ); if ($id_hook = Tools::getValue('id_hook')) { $block->id_hook = (int)$id_hook; } if (Tools::getValue('name')) { $block->name = Tools::getValue('name'); } $helper = $this->buildHelper(); if (isset($id_link_block)) { $helper->currentIndex = AdminController::$currentIndex.'&id_link_block='.$id_link_block; $helper->submit_action = 'edit'.$this->className; } else { $helper->submit_action = 'addLinkBlock'; } $helper->fields_value = (array)$block; return $helper->generateForm($this->fields_form); } protected function buildHelper() { $helper = new HelperForm(); $helper->module = $this->module; $helper->override_folder = 'linkwidget/'; $helper->identifier = $this->className; $helper->token = Tools::getAdminTokenLite('Admin'.$this->name); $helper->languages = $this->_languages; $helper->currentIndex = $this->context->link->getAdminLink('Admin'.$this->name); $helper->default_form_language = $this->default_form_language; $helper->allow_employee_form_lang = $this->allow_employee_form_lang; $helper->toolbar_scroll = true; $helper->toolbar_btn = $this->initToolbar(); return $helper; } public function initToolBarTitle() { $this->toolbar_title[] = $this->trans('Themes', array(), 'Modules.Linklist.Admin'); $this->toolbar_title[] = $this->trans('Link Widget', array(), 'Modules.Linklist.Admin'); } public function setMedia($isNewTheme = false) { parent::setMedia($isNewTheme); $this->addJqueryPlugin('tablednd'); $this->addJS(_PS_JS_DIR_.'admin/dnd.js'); } private function updatePositions() { if (!Tools::isSubmit('link_block_0')) { return false; } $linkBlocks = Tools::getValue('link_block_0'); $query = 'UPDATE `' . _DB_PREFIX_ . 'link_block` SET `position` = CASE `id_link_block` '; foreach ($linkBlocks as $position => $linkBlock) { preg_match('/tr_\d+_(\d+)_\d+/', $linkBlock, $matches); if (isset($matches[1])) { $query .= 'WHEN ' . $matches[1] . ' THEN ' . $position . ' '; } } $query .= 'ELSE `position` END'; return DB::getInstance()->execute($query); } private function manageLinkList() { $success = true; $id_link_block = (int) Tools::getValue('id_link_block'); $id_hook = (int) Tools::getValue('id_hook'); if (!empty($id_hook)) { $content = ''; $cms = Tools::getValue('cms'); $content .= '{"cms":[' . (empty($cms) ? 'false': '"' . implode('","', array_map('intval', $cms)) . '"') . '],'; $product = Tools::getValue('product'); $content .= '"product":[' . (empty($product) ? 'false': '"' . implode('","', array_map('bqSQL', $product)) . '"') . '],'; $static = Tools::getValue('static'); $content .= '"static":[' . (empty($static) ? 'false': '"' . implode('","', array_map('bqSQL', $static)) . '"') . ']}'; $customs = Tools::getValue('custom'); foreach ($customs as &$custom) { $custom = json_encode(array_filter($custom, function ($el) { if (empty($el['title']) || empty($el['url'])) { return false; } return true; })); } return $this->repository->createOrUpdateLinkList( $id_link_block, $id_hook, $content, $customs ); } return $success; } private function deleteLinkList() { $success = true; $id_link_block = (int) Tools::getValue('id_link_block'); if (!empty($id_link_block)) { $success &= Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'link_block` WHERE `id_link_block` = '.$id_link_block); if ($success) { $success &= Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'link_block_lang` WHERE `id_link_block` = '.$id_link_block); } } return $success; } }
  10. nulla di strano... non capisco appunto come mai... ho provato a controllare gli error.log ma anche li non trovo nulla...
  11. Ciao, purtroppo sono state fatte tante modifiche al template e reinstallare da 0 mi risulta molto molto difficile.. soluzioni alternative? grazie
  12. Buonasera, ho un problema su una installazione prestashop 1.7.5.0 installazione pulita + template acquistato su themeforest. Quando vado su design -> link widget mi appare l'errore "Il controller AdminHome manca o non è valido." come posso risolvere il problema? allego shot. grazie molte Luca
  13. Buonasera a tutti, sto sviluppando per conto di un cliente un ecommerce di abbigliamento mi ha chiesto se c'è la possibilità di inserire un codice a barre mentre inserisce i prodotti (e fin qua so che si può) poi vorrebbe ovviamente sincronizzare le vendite del negozio con l'online, scaricando in automatico (scansionando il codice a barre) le quantità (quindi scalare)... esiste qualche modulo e/o software che faccia questo? grazie Luca
  14. Buonasera, ho aggiornato un prestashop 1.6.1.3 alla 1.6.1.11 tramite 1click upgrade, ma al momento che faccio klik su "conferma ordine" sia se seleziono bonifico o pagamento in sede (presumo anche PayPal ma dato che mi rimanda alla pagina PayPal del pagamento non ho verificato) mi esce una pagina bianca con scritto FATAL ERROR chi ha avuto questo problema? ho anche abilitato la DEV MODE dal file defines.inc.php ma l'errore rimane fata error non riesco a risolvere... grazie molte.
×
×
  • Create New...