Jump to content

artigianidelweb

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by artigianidelweb

  1. Ciao, grazie per la risposta! fino alla 1.7.6.9 mi risulta esserci ancora quel file adminFolder/themes/default/template/controllers/orders/helpers/view/view.tpl ma dopo aver aggiornato a 1.7.7.1 non è più presente, gira su Symphony + twig adesso la pagina ORDINE, e sulla documentazione ufficiale non hanno messo nulla.
  2. Hello everybody . There is a way to add Extra fields on Delivery Slip or Invoice PDF, by adding values by the single ORDER page? Thank you very much
  3. Salve a tutti, qualcuno conosce un modulo per aggiungere dei campi aggiuntivi in una bolla o fattura? In caso negativo, dove si trova sul PS 1.7.x il template che su PS 1.6.x era su /admin/templates/orders/helpers/view/view.tpl Quindi si andava a sovrascrivere con /override/controllers/admin/templates/orders/helpers/view/view.tpl Grazie mille
  4. Ciao mi autorispondo: per sistemare è sufficiente invertire nel file /override/classes/Dispatcher.php la posizione del routing e metterla in fondo, prima di /* Must be after the product and category rules in order to avoid conflict */ pare funzionare. Ecco il codice corretto: <?php class Dispatcher extends DispatcherCore { /** * @var array List of default routes */ public $default_routes = array( 'supplier_rule' => array( 'controller' => 'supplier', 'rule' => 'supplier/{id}-{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_supplier'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'manufacturer_rule' => array( 'controller' => 'manufacturer', 'rule' => 'brand/{id}-{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_manufacturer'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_rule' => array( 'controller' => 'cms', 'rule' => 'content/{id}-{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_cms'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_category_rule' => array( 'controller' => 'cms', 'rule' => 'content/category/{id}-{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_cms_category'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'module' => array( 'controller' => null, 'rule' => 'module/{module}{/:controller}', 'keywords' => array( 'module' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'module'), 'controller' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', ), ), 'product_rule' => array( 'controller' => 'product', 'rule' => '{category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_product'), 'id_product_attribute' => array('regexp' => '[0-9]+', 'param' => 'id_product_attribute'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN, 'param' => 'rewrite'), 'ean13' => array('regexp' => '[0-9\pL]*'), 'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'), 'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'price' => array('regexp' => '[0-9\.,]*'), 'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'), ), ), 'category_rule' => array( 'controller' => 'category', 'rule' => '{parent_categories:/}{id}-{rewrite}', // This is different from original (maybe it's also not necessary to edit, make a test) 'keywords' => array( 'parent_categories' => array('regexp' => '[_a-zA-Z0-9-\/\pL]*'), // This is new 'id' => array('regexp' => '[0-9]+', 'param' => 'id_category'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), /* Must be after the product and category rules in order to avoid conflict */ 'layered_rule' => array( 'controller' => 'category', 'rule' => '{id}-{rewrite}{/:selected_filters}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+', 'param' => 'id_category'), /* Selected filters is used by the module blocklayered */ 'selected_filters' => array('regexp' => '.*', 'param' => 'selected_filters'), 'rewrite' => array('regexp' => self::REWRITE_PATTERN), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), ); } ?>
  5. Come aveva segnalato un altro utente nel forum inglese, e confermo anche qui, applicando la modifica non funzionano nemmeno le pagine. Come si potrebbe risolvere? Grazie mille
  6. yes, it happens to me too. it can't be used
  7. Ciao, questa soluzione funziona, l'unica cosa è che non funziona più il routing relativo al brand. Ho provato anche a modificare il routong del brand ma senza effetto. Hai qualche dritta da consigliare? Grazie mille!
  8. Hello, I tried with: 1) DATABASE ALTER TABLE `ps_orders` ADD `custom` VARCHAR(200) NOT NULL AFTER `date_upd` `; 2) override/classes/order/Order.php /** @var text note*/ public $custom; [...] 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'custom' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'), [...] 3) /BackofficeXYZ/themes/default/template/controllers/orders/helpers/view/view.tpl [...] <form class="form-horizontal hidden-print" method="post" action="{$currentIndex|escape:'html':'UTF-8'}&vieworder&token={$smarty.get.token}"> <div class="form-group"> <div class="col-lg-5"> <label class="control-label col-lg-3">Note</label> <input type="text" id="note" name="note" value="{$order->custom|default:''}"/> </div> <div class="col-lg-3"> <button class="btn btn-default" type="submit" name="submitCustom"><i class="icon-refresh"></i> {l s='Change'}</button> </div> </div> </form> [...] BUT it doens't works... how is the problem? Thank you so much!
  9. Si grazie mille, funziona nel modo desiderato. Ho copiato il file e messo in /override dopo la modifica. Grazie mille ancora!
  10. Salve, dopo aver settato in NAZIONE --> ITALIA Richiesto numero di codice fiscale? --> SI Questo diventa però sempre obbligatorio. Anche eliminando, da TEMPLATE / address.tpl (provando anche su diversi template, sia di default che acquistati) i vari "required", "is_required" o la data-validate="{$address_validation.dni.validate}" --> PRESTASHOP RESTITUISCE SEMPRE IL MESSAGGIO CHE QUEL CAMPO E' OBBLIGATORIO. Su quale file bisogna agire, nel core, per rimuovere l'obbligatorietà del campo CODICE FISCALE? Grazie
  11. Hello Everybody! I haev this problem: - some orders had some product out of stock. - When that products arrived in warehouse, we setted the new quantity - in fact, in the order page, the available quatity is > than ordered ---> but despite that, Prestashop doen NOT generate the Delivery NOTE. How could we fix that? Anyone with same problem? Thanks!
  12. Ok, we solved: BY google https://developers.google.com/structured-data/testing-tool/ was missing itemReviewed (required*) value; so we added {if isset($product->name)} {assign var="productName" value=$product->name} {/if} <p itemprop="itemReviewed" style="display:none;"> {$productName} </p> Above: <p itemprop="name"> <strong>{$comment.title}</strong> </p> and it was solved for google:
  13. yes is it just so. <div class="comment row" itemprop="review" itemscope itemtype="http://schema.org/Review"> but it seems that google test https://developers.google.com/structured-data/testing-tool/ catches some errors: the name is not corretc (in fact in name itemprop there is $commentname) hould I change it? <p itemprop="name"> {$comment.title} </p> o <p itemprop="name"> <strong>{$productName}</strong> </p>
  14. PS: I seen in code there is <p itemprop="name"> <strong>{$comment.title}</strong> </p> Maybe i should change it to <strong>{$productName}</strong> ?
  15. hello, i have installed productcomments module; if I test a page on https://developers.google.com/structured-data/testing-tool/ seems to be errors: "For the review did not specify the item reviewed." it seems that name is missed. How can fix it? Thank you so much!
  16. I changed modules\socialsharing\views\templates\hook\socialsharing_header.tpl in that way: before: {if isset($link_rewrite) && isset($cover) && isset($cover.id_image)} <meta property="og:image" content="{$link->getImageLink($link_rewrite, $cover.id_image, large_default)}" /> after <meta property="og:image:width" content="125" /> <meta property="og:image:height" content="125" /> {if isset($link_rewrite) && isset($cover) && isset($cover.id_image)} <meta property="og:image" content="{$link->getImageLink($link_rewrite, $cover.id_image, medium_default)}" /> anf in the page works correctly: <meta property="og:image:width" content="125" /> <meta property="og:image:height" content="125" /> <meta property="og:image" content="http://mysite.xxx/35-medium_default/printed-summer-dress.jpg" /> But it seem to do not work properly again. How can fix that?
  17. Thank you. So the solution should be changing public function getWsCurrentState($state) --> into public function getWsCurrentState() on classes/order/Order.php ?
  18. Yes, it is stange. But is more strange that is bnot a new bug: at least 9 months that bug exists: https://www.prestashop.com/forums/topic/335931-webservice-debug-mode/ (Topic closed, so I should open a new topic)
  19. Hello to everybody; - in prestahop 1.6.0.13 - Webservice full activated (Where XXXXX is the API KEY) http://[email protected]/api/ ----> it works http://[email protected]/api/orders/1 (or other each order in that list) ----> doesn't works, gives that error: Internal error. To see this error please display the PHP errors. If I set define('_PS_MODE_DEV_', true); in config\defines.inc.php --> it works (but it should be not so) ---------> How can I fix that? Thabk you!
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More