Jump to content

andrw

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by andrw

  1. I made a mistake and I need your help. I have a store based on Prestashop 1.6 and I was running out of space on the server so I decided to delete the images of disabled products. I identified the IDs of disabled products with: $sql_products = "SELECT id_product FROM ".DB_PREFIX."product WHERE active = 0"; I found out which images are related to these products with: $sql_images = "SELECT id_image FROM ".DB_PREFIX."image WHERE id_product = ".$id_product; I deleted the images/directories related to these images as well as the rows from the database with: $sql_delete_image = "DELETE FROM ".DB_PREFIX."image WHERE id_image = ".$id_image; Now, sometimes, I encounter an issue when adding an image to a product and I think it might be related to what I did. Any tips on why this is happening and/or how to solve this problem? Thank you in advance!
  2. Viva, Fiz uma asneira e precisava da vossa ajuda. Tenho uma loja live baseada em Prestashop 1.6 e estava a ficar sem espaço no servidor. Decidi apagar as imagens dos produtos desactivados. Vi os ids dos produtos desactivados com: $sql_products = "SELECT id_product FROM "._DB_PREFIX_."product WHERE active = 0"; Vi quais as imagens referentes a esses produtos com: $sql_images = "SELECT id_image FROM "._DB_PREFIX_."image WHERE id_product = ".$id_product; Apaguei as imagens/directorios referentes a essas imagens mas também as linhas da base de dados com: $sql_delete_image = "DELETE FROM "._DB_PREFIX_."image WHERE id_image = ".$id_image; Agora, por vezes, falha-me ao adicionar uma imagem a um produto e penso que estará relacionado com o que fiz. Alguma dica do porque de acontecer e/ou como resolver este problema? Obrigado desde já!
  3. What about the search engines and the hreflang tags?
  4. Hello, I'm starting to translate my Prestashop 1.6 based store to another language but it is still a work in progress (not completed yet). Is there a way to disable the translations to the public so that only me can see/test it? Something like, enable to only some users or IP's. Thanks a lot
  5. Hi guys, I'm having the same issue. Anyone fixed this? Thanks
  6. Hi guys, I have a Prestashop 1.6 based store and I only want to accept payments via Paypal in one currency (Euros). However, I want to show prices in other currencies based on the location of the customer (probably using it's IP address?). How can I do that? Thanks a lot
  7. Hi guys, I have a Prestashop 1.6.1.14 store and at the backoffice when I'm adding a new product and I try to expand all the categories available to associate with the new product I get this error: Uncaught TypeError: Cannot read property 'parent' of null at organizeTree (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:33:32) at Object.eval [as success] (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:195:6) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at x (jquery-1.11.0.min.js:4) at XMLHttpRequest.b (jquery-1.11.0.min.js:4) Anyone experiencing the same issue? Do you have any ideas on how to solve it? Thanks a lot
  8. Hello, I'm having some issues with the add address form on a Prestashop 1.6 store. In some conditions (I still don't know exactly), the form is shown to the user without the postal code and state fields and with an extra VAT "intra-community" number field that usually not appears. Altough, when the user tries to submit the form, a few errors appear saying that those "invisible" fields (postal code and state) are not correctly filled. Any hint? Thanks a lot
  9. Hi guys, is it possible to change the order/position of CMS links on footer? How? I'm talking about the usual information block with about us, terms and conditions, etc Thanks
  10. Hi and thanks for your quick reply, I know that will solve the problem but I don't think I am supposed to do that. The question is why is that file not there? In version 1.6.1.4 I had lang.php and some TPL files like order_conf_product_list.tpl on that directory and when I install version 1.6.1.7 those files are missing... Thanks
  11. Hello, I'm having an error on Prestashop 1.6.1.7. After installing it on my server and choose Portuguese (Portugal) as default language, when I login on the backoffice and go to Localization > Translations, select E-mail templates and Portuguese as language and click Edit I get an error message: "E-mail Template Subject Translation file not found on /mails/pt/ directory". In portuguese: "Ficheiro de tradução do Assunto do Email não encontrado em "shop/mails/pt/"" I've tested it several times and it seems to be affecting versions 1.6.1.7 but not 1.6.1.4 Any help is highly appreciated. Thanks
  12. Hello, I've configured my Prestashop 1.6 shop to send e-mails using SMTP and the test e-mail is successfully sent. However, other e-mails that are activated are not being sent: the one after registration, order or newsletter subscription. Any hint? Thanks in advance for your help
  13. Try this: <div class="product-desc" itemprop="description"> {$product.description_short|truncate:360:'...'} </div> So basically you have to remove the strip_tags thing and replace the p html tag with a div. Hope it helps.
  14. Fixed! My fault, guys. It was a permissions problem.
  15. Hi guys, after install PrestaShop v1.6 on my server, I've noticed that the product images are always shown as a question mark. However, if I disable the URL rewrite option on SEO options, it's start working fine instantly. I think that this problem may be related with the fact that I'm configuring the shop in a subdomain accessible by shop.domain.com or domain.com/shop. Is there any known bug about this or any suggested solution? Thanks a lot in advance and keep up the good work
×
×
  • Create New...