Jump to content

jose@myeasygest

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • First Name
    jose luis
  • Last Name
    Alonso

Recent Profile Visitors

171 profile views

jose@myeasygest's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. When a post template link was edited, such as the "preparation" link, variables like "{history_url}" are inserted instead of absolute paths such as "https://myweb/purchase history". However, when I edit a link like these, the editor corrects me by https://myweb/admin/{history_url} which in the end results in https://myweb/admin/https://myweb/history-purchase, it takes it to a 404. I have tried to edit the html instead of the wysiwyg, I have tried to edit the spreadsheet from the FTP, but it always corrects me and concatenates the address of the backoffice. Does anyone know how I can solve this? Does anyone know how to override the htlm checker?
  2. Buenas: Cuando se edita un enlace de la plantilla de correos, como el de "preparation", se insertan variables como "{history_url}" en lugar de rutas absolutas como "https://miweb/historial-compra". Sin embargo cuando edito un enlace como estos el editor me lo corrige por https://miweb/admin/{history_url} lo que al final da como resultado https://miweb/admin/https://miweb/historial-compra, lo lleva a un 404. He probado a editar el html en lugar del wysiwyg, he probado a editar la planilla desde el FTP, pero siempre me lo corrige y me concatena la dirección del backoffice. ¿Alguien sabe como como puedo solucionar esto?¿Alguien sabe como anular el corrector de htlm?
  3. I have the same problem with the canonical and hreflang of SmartBolg. I have seen solutions like: https://rubendivall.com/anadir-canonical-y-hreflang-en-prestashop-16x-en/ I have made a module with this and works well with the other pages but not with SmartBlog or other external modules. In this codico it looks if the page is of product, index, manufacturer, cms or category but if it is an external module like SmarBlog or others does not do it well. I have the same problem with the canonical and hreflang of SmartBolg. I have seen solutions like: https://rubendivall.com/anadir-canonical-y-hreflang-en-prestashop-16x-en/ I have made a module with this and works well with the other pages but not with SmartBlog or other external modules. In this codico it looks if the page is of product, index, manufacturer, cms or category but if it is an external module like SmarBlog or others does not do it well.
  4. Buenos días: Quería incluir en la página de un banner con el "envío gratuito a partir de X". Lo más parecido que he encontrado en los foros es esto: {if ( $product->getPrice(true, $smarty.const.NULL)|intval)>200}<img src="{$img_dir}free_del_{$lang_iso}.gif" alt="{l s='Free delivery !'}" class="free_del_img"/>{/if} <!-- prices --> En referencia a este otro foro: https://www.prestashop.com/forums/topic/71050-solved-free-delivery-icon-above-price/?p=412501&do=findComment&comment=412501 Pero en este código el valor 200 es una constante y a mi me gustaría que fuese una variable. Ese valor se configura en el back office y por tanto se debe guardar en la base de datos así que tiene que haber una forma de acceder a él. He buscado por la base de datos pero no lo he encontrado. Alguna sugerencia?
  5. Already solved, it was a problem some module of the template that interfered in the tinymce. Is rested with this tutorial: https://mypresta.eu/en/art/prestashop-16/extended-rich-text-editor.html
  6. Hello I have a problem with the categories in prestashop 1.6.1.10. I create a product, I put the categories and save, but when I go back to the product the category tree is unmarked but displayed in the category that had marked it and when I save again it tells me that there are no categories selected. It is as if you save it but then you do not know how to recover that information.
  7. I just do it, i put true in _PS_MODE_DEV_ of the file define.inc.php in the config directory, But I do not see the errors they send me, especially the latter that says: "When configuring the module: Warning on line 290 in file /var/www/html/classes/Translate.php [2] vsprintf (): Too few arguments "
  8. I am new is this module development for prestashop and I am very surprised by the Prestashop validation system. I developed the module, I tested it in debug mode, I passed the first validator without problems, but in the second validation phase, every week they send me an error, I repair it and the next week they send me another one. Is there no way to streamline the process and send all the errors in a single response? The last error is: "When configuring the module: Warning on line 290 in file /var/www/html/classes/Translate.php [2] vsprintf (): Too few arguments" I think this is error in your translation.php file because it does not reference to my path.
  9. Ok thanks that was my question, can I make override on new classes or do I have to do only existing ones? It seems that if you do not exiting classes does not do well. I will try to rewrite the class extending from another existing as customer.
  10. Thanks mdekker, I know it and I do it but prestashop does not overrride of with my new class.
  11. Hello: I have a problem with a new class of its own that the prestashop system does not copy in its override directory from the system root, this file is located in the override / classes / Myclass.php directory of my module. I use this new class to access by webservice and I have another WebserviceRequest.php file in override / classes / webservice / WebserviceRequest.php and this file if I copy it well. At this point the new class appears as an option in the webservice configuration list to give permissions on it, but when you try to access the webservice it gives an error because it can not find the class. If I manually copy the override / classes / Myclass.php file into the root override this works fine. My question is how to run the override from the modules with new classes? MyClass.php: class MyClass extends ObjectModel { public $id_My_Class; public $action; public $status; public function __construct($full = false, $id_lang = null, $id_shop = null, Context $context = null) { $this->webserviceParameters['My_Class'] = array('fields' => array('action' => array('required' => true),'status' => array('required' => false) )); parent::__construct($full, $id_lang, $id_shop, $context); } protected $webserviceParameters = array(); public static $definition = array( 'table' => 'My_Class', 'primary' => 'id_My_Class', 'fields' => array( 'action' => array('type' => self::TYPE_STRING, 'required' =>true), 'status' => array('type' => self::TYPE_STRING, 'required' =>false) ) ); }
×
×
  • Create New...