Jump to content
thirty bees forum

Wartin

Members
  • Posts

    347
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Wartin

  1. Hello, thanks for your response. My idea is to write there the real delay, in days, returned by a webservice in a module. I thought you were doing the same. The module use a webservice method to ask for the price. I have an array in the module with the price and the delay. I'm reading a lot of posts and documentation, and @datakick gave me a nice hint, but couldn't finish doing what I'm trying to do (I think it's basic to know how many days a client will have to wait). I think I need a hook registered by the module, who receives the id and shows the delay for that carrier. Option. Save Adresse -> $ other = 'Als mein benutzerdefinierter Text' Delay, replace Verzögerung with Adresse -> $ andere. I'm sorry, I don't understand what did you mean here. Thanks
  2. It works! Thanks!! Now I have to figure out how to use the real delay calculated by the module. How do you do it? Mine it's not saved in the database, the module makes the webservice call and use a variable 'data' with the returning values.
  3. I changed a little bit my code to: public function simulateCarriersOutput(Country $defaultCountry = null, $flush = false) { $carriers = parent::simulateCarriersOutput($defaultCountry, $flush); foreach ($carriers as $id => $carrier) { if ($carrier['id_carrier'] == 264000) { $carriers[$id]['delay'] = 'my updated delay'; //$carrier['delay'] = "delay_from_webservice"; } } return $carriers; } If I print the smarty variable $carriers in order-carrier.tpl with: {$carriers|@debug_print_var} I see the list of carriers modified, with my delay. BUT, it's not updated in carrier list What am I missing? Thanks again!!
  4. Great, I managed to make it work (a couple of missing $, and I'm not sure if the return should return $carriers in plural like its parents. My override looks like: class Cart extends CartCore { public function simulateCarriersOutput(Country $defaultCountry = null, $flush = false) { $carriers = parent::simulateCarriersOutput($defaultCountry, $flush); foreach ($carriers as $carrier) { if ($carrier['id_carrier'] == 264000) { $carrier['delay'] = "delay_from_webservice"; } } return $carrier; } } I'm not sure why if my carrier's ID is 64 id_carrier is 264000, but this way it 'works'. I'm trying to first print 'delay from webservice' before using the new actual value. I don't know what's next, nor what we are doing exactly, besides reading each carrier data and changing the carrier we want to be changed. Thanks in advance!
  5. There is something left, and in the middle between the Matrix and full tracking. Using Apache, like ten years ago I used Webalizer. It shows you what logs can give you, and it's pretty easy to set up. I suppose it works with Nginx's logs too. I used it before start using TB, setting by hand some 'events' to know what people were clicking. Then installed Thirtybees module and give it Matomo credentials and it start showing all about e-commerce. It's pretty nice. I can't compare it with GA really, haven't used it.
  6. Hello. I'm trying to modify a carrier module to make it show the real delay for a specific order shipping. I read a couple of modules on github and they always set '$carrier->delay' to an array of strings in different languages, like: 'delay' => array( 'es' => 'Envío rapido', 'en' => 'Fast Shipping', // English value is required ), I thought I could make something similar to what updates the price of the shipping, but I could see that the shop calls to getOrderShippingCost(), present in every module (or *External, sometimes). And there's not getOrderDelay() or similar. I do have the real delay (in days) that comes from the same webservice that returns the shipping price. Do I have to use JS to write it in the carrier list at order-carrier.tpl or maybe I can set some smarty variable? Thanks! edit: I found this: https://www.prestashop.com/forums/topic/219629-changing-carrier-delay-from-within-shipping-module/ the last post adds a hook (hookDisplayBeforeCarrier()). I'm not sure how to 'call' it. edit2: maybe it has to be called like this (register the hook in module installation and then in template use {$hookDisplayAfterCarrier nofilter} ? https://github.com/PrestaShop/PrestaShop/pull/5346/commits/a7914cbbfb494c07e0142d1f1315cee06e74f01e
  7. Hola de nuevo :) la instalaste desde cPanel? tenés un dominio para poner la tienda? Qué es thebess.com, tu dominio? Pudiste terminar con la instalación, entrar al panel de administración, etc? Saludos!
  8. Thanks for the data, Jollyfrog. I use Matomo as I really don't like sending my customer's data to Google. It's not needed, with Matomo served locally I can know what people are doing and can choose not to save specific things like their exact IPs, for example. Using grep and awk is fine (like Neo reading the Matrix XD), of course, but when more data is needed, I think it's really important to know there are other things out of GA.
  9. Es un camino a veces un poco largo, hasta que más o menos encontrás las cosas que buscás. Pero no te desanimes! Hay una buena comunidad que en general responde las preguntas. Por lo menos en inglés, en castellano se mueve menos.. Si algo no está traducido podés ir al mismo lugar y elegir el módulo en cuestión. Hay un botón de 'Expandir' que te muestra todas las oraciones, que muchas veces es muy práctico si buscás cambiar alguna traducción que no te parece correcta. Sobre el error, si te lo da la tienda, podés ponerla en 'modo depuración', para que te muestre errores lo más detallados posible. En el Backoffice, es decir el administrador de la tienda, tenés un buscador, hasta que te habitúes a los menúes. Saludos y suerte!
  10. Hola! Qué cosas módulos te aparecen no traducidos? Fijate en Localización -> Traducciones en "Añadir / Actualizar un idioma", tal vez estás usando un tipo de español que tiene algunas cosas no traducidas? yo uso Español (Spanish). Para editar un tema de qué forma? Solo cambiar algunos colores o modificar cosas grandes? Para cositas podés usar el Custom CSS, o 'Código personalizado', donde se pueden meter estilos en línea para cambiar colores o cosas simples. Sino el módulo está dentro de /themes/nombre-de-tu-tema
  11. Is it posible to edit specific prices? I see it's posible to erase them and create new ones. I have to change a lot of discounts prices. I tried Prestools too, and it show them, but can't edit them. I didn't try searching in the database directly. Thanks!
  12. Hello, yes, from BO you can select the account you want to delete and then 'delete selection' (thanks Mark, I couldn't find it earlier). But I think customers should be able to delete their accounts, as Andy's shop. Did you install some kind of module @AndyC? Thanks!
  13. Hello. Is it possible to delete a customer account? I read this thread(1) and it suggests that customers can't do it, or maybe I could find where to do it! I found some paid modules for prestashop in order to make such deletion, it seems to me weird to pay for such a feature. Thanks! (1) .
  14. I have this little issue when you change the name of a product. If you just save and leave, the 'SEO search engines optimization' remains unchanged, leaving some broken links. It would be nice to have it regenerated automatically :)
  15. Hello, today I found this geocoding feature in BO, I didn't know it existed. Google is now requiring you to have a billing account in it's cloud services. In theory, it is free if you don't use it very often (they give you $200 every month). Would it be possible to reimplement georeference with a service like openstreetmaps for example? I prefer Matomo over Analitics, and really don't like the addresses of every customer being calculated by Google. Thanks!
  16. Hello, nice to hear the good news about a new theme! When I start using TB a year ago I choose Niara because I thought it was the newer theme and, at least to me, is much cleaner and nicer. I had to change a lot of stuff, starting with mobile. It would be nice to have some configurations in the new theme, for example the width of the items for top menu (I suppose it will have one!) Register forms have to be clean and simple. I agree with having an easy way of disabling some data as gender, birthday, etc. It would be really nice to use free fonts and having them locally, I prefer to not call google if I can. Changing fonts would be nice too. 3 step checkout like (1) is really nice. I had to make some changes for niara, but I uploaded them as a .zip. A nice contact button (whatsapp/telegram, or whatever) flying easy to clic. I made one that goes to whatsapp if it's on mobile and goes to contact form if it's not. An more or less optimized rich content for search engines. I had to work a lot in order to make google read my products' information. +1 to FOSS, of course :) An easy way of changing colors. Custom CSS is OK, but not really easy for begginers. (1) https://forum.thirtybees.com/topic/2673-3-page-checkout-sort-of-for-community-default-theme/
  17. I had the same issue the first time, didn't read the new directory :)
  18. Oh, too sad, you tried a lot of things... Maybe @datakick know what's happening here...
  19. Hello. You can Inspect the H1 with your browser, and look for bottom-margin. Maybe it's is too large. Then, from Custom CSS you can add that style with the margin you need.
  20. It's OK. I'll explain how to do it in case someone else reads the thread. You have to create a new file called, for example, mysqltest.php with the code I pasted. The username and password has to be changed, of course. After saving it, you have to visit that file from the browser, like: yourdomainname.com/mysqltest.php If does not connect, it will show the error.
  21. If I were you I'd try connecting to the database directly from PHP, like: <?php $servername = "localhost"; $username = "username"; $password = "password"; // Create connection $conn = mysqli_connect($servername, $username, $password); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } echo "Connected successfully"; ?> (from https://www.w3schools.com/php/php_mysql_connect.asp) Gook luck!
  22. Everything seems to be right... Can you try making a new username/password just to try, and give that user permission over thirtybees database?
  23. Oh, I see. It's not seeing the server... Maybe it's running in another port?
  24. You need user and password of the database server. Did you have to enter some user or password to go into mysql console? You can see here: https://www.techrepublic.com/article/how-to-set-change-and-recover-a-mysql-root-password/
×
×
  • Create New...