Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Leaderboard


Popular Content

Showing content with the highest reputation since 04/20/2019 in all areas

  1. 3 points
    Here we go: https://github.com/thirtybees/thirtybees/commit/1818e2aca9b90dbee0553272e45956b275fda334
  2. 3 points
    The thirty bees solution for this kind of spam is here: https://github.com/thirtybees/thirtybees/commit/c733d5360d5292c12bb6a899748d9094bc608e05 https://github.com/thirtybees/thirtybees/commit/7ad147d991861e498e586f4dfc8ad1ff3cc114c0 https://github.com/thirtybees/thirtybees/commit/f04f1ded917b702465b2da6adfb7d573fdb974ad Three commits, because it's based on this solution in the PS forum, but also more complete. For example, it also updates JavaScript validation to avoid fields turning red on valid names.
  3. 2 points
    Hello Petr, I will prepare a subdomain with test shop and send details to your e-mail.
  4. 2 points
    You would need to to this with css: #categories_block_left ul li { font-size: 30px; } Probably its easiest if you add this to categories.css Or alternative you add to the tpl: <style> #categories_block_left ul li { font-size: 30px; } </style>
  5. 2 points
    You would need to change the blockcategories.tpl <h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}</h4> to <h4 class="title_block">{l s='Categories' mod='blockcategories'}</h4>
  6. 2 points
    also coreupdater can be used to fix this
  7. 2 points
    I dont believe, there is a quick solution. I remember how I did it: You generate all urls with the old structure. Copy them into Excel You generate all urls with the new structure. Copy them into Excel Now you generate in Excel a new column with the correct htacces/nginx redirect. Maybe somebody has a better solution. Of course you can only achieve it, with some SQL knowledge.
  8. 2 points
    You might be right. I've submitted a fix for this issue today. You can download the latest version of classes/Configuration.php file from github, upload it to your server, and test if it helps. If you do so, don't forget to let us know the result
  9. 1 point
    There is a bug with displaying colors on the categories page when SmartyCache is enabled. It is not fixed in TB and PS (1.6.x). Here is an example of how to fix it. public function addColorsToProductList(&$products) { if (!is_array($products) || !count($products) || !file_exists(_PS_THEME_DIR_.'product-list-colors.tpl')) { return; } $productsNeedCache = []; foreach ($products as &$product) { if (!$this->isCached(_PS_THEME_DIR_.'product-list-colors.tpl', $this->getColorsListCacheId($product['id_product']))) { $productsNeedCache[] = (int) $product['id_product']; } else { $product['color_list'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'product-list-colors.tpl', $this->getColorsListCacheId($product['id_product'])); } } unset($product); $colors = false; if (count($productsNeedCache)) { $colors = Product::getAttributesColorList($productsNeedCache); } else { return; } Tools::enableCache(); foreach ($products as &$product) { if (isset($colors[$product['id_product']])) { $tpl = $this->context->smarty->createTemplate(_PS_THEME_DIR_.'product-list-colors.tpl', $this->getColorsListCacheId($product['id_product'])); $tpl->assign( [ 'id_product' => $product['id_product'], 'colors_list' => $colors[$product['id_product']], 'link' => $this->context->link, 'img_col_dir' => _THEME_COL_DIR_, 'col_img_dir' => _PS_COL_IMG_DIR_, ] ); $product['color_list'] = $tpl->fetch(_PS_THEME_DIR_.'product-list-colors.tpl', $this->getColorsListCacheId($product['id_product'])); } if (in_array($product['id_product'], $productsNeedCache) && !isset($colors[$product['id_product']])) { $product['color_list'] = ''; } } Tools::restoreCacheSettings(); }
  10. 1 point
    Hi, I encountered a problem with storing multi language fields in EU Cookie Consent module. I tested in on a after fresh installation as well. After installation I have 2 languages installed (English and Czech). When I save different text for each language the same text is saved and returned for both languages - the text from lang id=1 (English). I also tested it with module "European Union Cookies Law v1.7.7 - by MyPresta.eu" with the same result. It seems the it could be connected with the updateValue function in Configuration.php. XAMPP: Server information Windows NT build 17134 (Windows 10) i586 Server software version Apache/2.4.37 (Win32) OpenSSL/1.0.2p PHP/7.0.33 PHP version 7.0.33 Memory limit 512M Max execution time 30 MySQL version 10.1.37-MariaDB MySQL server 127.0.0.1 MySQL name tb_108 MySQL user root Tables prefix tb_ MySQL engine InnoDB MySQL driver DbPDO Required parameters OK Optional parameters Please fix the following error(s) Install TLS v1.2 support on your server. Test result: fail
  11. 1 point
    The last few days i have a lot of unwanted customer registrations. It looks that there are some registration bots running, i blocked the IP's but stil new unwanted registrations. In the last name they register a www. domain, how to block this? Is there a solution too not accept "www." in the last name registration?
  12. 1 point
    this is my nginx.conf: server { listen 80; index index.php index.html; server_name localhost; root /var/www/default; # use original IP address changed by cloudflare set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 162.158.0.0/15; set_real_ip_from 172.64.0.0/13; set_real_ip_from 173.245.48.0/20; set_real_ip_from 188.114.96.0/20; set_real_ip_from 190.93.240.0/20; set_real_ip_from 197.234.240.0/22; set_real_ip_from 198.41.128.0/17; set_real_ip_from 2400:cb00::/32; set_real_ip_from 2606:4700::/32; set_real_ip_from 2803:f800::/32; set_real_ip_from 2405:b500::/32; set_real_ip_from 2405:8100::/32; set_real_ip_from 2c0f:f248::/32; set_real_ip_from 2a06:98c0::/29; real_ip_header CF-Connecting-IP; location / { try_files $uri $uri/ /index.php?$args; index index.php; } location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff|webp)$ { rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$1$2$3.webp break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$1$2$3$4.webp break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$1$2$3$4$5.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.webp break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.webp$ /img/c/$1$2$3.webp break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.webp$ /img/c/$1$2.webp break; allow all; } location ~ \.php$ { try_files $uri $uri/ /index.php?$args; index index.html index.htm index.php; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_intercept_errors on; fastcgi_read_timeout 360s; include fastcgi_params; } }
  13. 1 point
    Thats the interesting part. Why is it failing? Do you get any error or so? Never forget to do a clone and test it without risk. Its some time ago, but I once recorded a video about it:
  14. 1 point
    For RGPD I use the module from a reliable Prestashop contributor : Eolia, it works great and will help you in case you need it. https://eoliashop.com/module-RGPD works good en TB last version available, certified !
  15. 1 point
    There is a module in the shop for the Instagram feed. Otherwise you will find it on: https://thirtytools.com/fr/publicite-marketing/16-logik-instagram-feeds-for-16.html
  16. 1 point
    Hola Dan y Selene Uso Webempresa, con prestashop recibía los pedidos al momento por email pero con TB nada de nada, he leído diferentes post achacándolo al tema de las carpetas de idiomas pero no he conseguido que funcione, es un poco fastidio porque estos días he estado fuera y no sabía que pedían hasta poder entrar a la web. Si escogen como forma de pago transferencia no me entero hasta que no entro a verlo.
  17. 1 point
    True. Core Updater takes care of all these extra steps for updating beyond 1.0.3.
  18. 1 point
    So then this seems to be a bug. I has the same in my test setup!
  19. 1 point
    Its very easy to make github changes: Open the file (you see it beside the green and red sqaures. for example: classes/Validate.php) You remove all the red lines in the code You add all the green lines in the code.
  20. 1 point
    I think a good To-Do-List for this is necessary, @Traumflug maybe you can arrange some advice for this? Seems not to be that easy to find out what to do with these Github things, i have also some difficulties with it.
  21. 1 point
  22. 1 point
    In my opinion the best approach is: use as few modules as possible. I always ask myself: Do I really need this? If there is not a clear yes to this answer, I won't install a module. In genereal you should ask: what will help me to get visitors? What will transform visitors into customers? What will transform a customer into a rebuying customer? I agree with @30knees that reviews are very helpful and there datakicks module is the way to go. You should also have a blog module (or something similair) to produce content.
  23. 1 point
    The cause: Well, in my case I have the installation of TB in Spanish language, so: 1. Install TB in a version different to English (for instance: Spanish Language...) 2. So, after the installation, the contact form, in this case in Spanish doesn't work... The Solution: 1. Make sure you have the English language installed as well, if you do not have it installed, install it 2. Go to public_html/mails and copy this folder 3. Go to public_html/themes/mythemes/ and paste the folder 4. Into the folder mails you have the languages: public_html/themes/mythemes/mails/en and public_html/themes/mythemes/mails/es (for example) 5. So, go to /public_html/themes/mythemes/mails/en/ and copy this files: index.php, lang.php and other file that not exist in the folder ../mails/es/ and paste its in ../mails/es folder 6. Check the translations in Translations > emails Templates How I said, my case is in Spanish language (../es), but you can replace this parameters for your own language/folder.
  24. 1 point
    Dear all, I was trying to export full information for my products as CSV, but noticed that by using the default "export" function in backoffice -> products only exported id, image, name, price, Quantity, ref, and category but not full description, i searched for at way to do it easily, and came across this very helpfull articel: https://premiumpresta.com/blog/export-products-for-csv-import-prestashop-1-6/ That explain in full detail including the code. -.... And if you dont want to read it all just need the code then download it directly from Github: https://github.com/PremiumPresta/export-products-for-csv-import-prestashop-1.6 Hope it will be usefull 🙂
  25. 1 point
    There was a conflict between JQueryUI and standard JQuery it seems.. here's what I did in the end using standard JQuery autocomplete: Informations.tpl ``` {literal} {/literal} ``` Tag.php ``` class Tag extends TagCore { public static function getTags($id_lang, $nb = 10) { return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' SELECT t.`name` FROM `'._DB_PREFIX_.'tag` t WHERE t.`id_lang` = '.(int)$id_lang.' ORDER BY t.`name` ASC'); //I commented this out since I need them all and not only the first 10. Could be useful to someone, I don't know. //LIMIT 0, '.(int)$nb); } } ``` Product.php, added this function: ``` class Product extends ProductCore{ public function getAllTags($id_lang = 0, $qty = 10){ if(!$id_lang){ $context = Context::getContext(); $id_lang = $context->language->id; } return Tag::getTags($id_lang, $qty); } } ```
×