Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by HA!*!*Y

  1. i just updated it https://www.prestashop.com/forums/topic/148221-returns-rma-email-notification/?tab=comments#comment-1353097
  2. Edit file: /config/config.inc.php From: @error_reporting(E_ALL | E_STRICT); To: @error_reporting(E_ERROR | E_WARNING | E_PARSE); For more info: https://www.php.net/manual/en/function.error-reporting.php
  3. Tested on PrestaShop version:
  4. Disregard this post the error was unrelated If your backoffice Products is not loading you may have to edit your admin template file because PS Backoffice is trying to load the image from one of your Media Server over https (SSL). Edit file: /admin/themes/default/template/controllers/products/informations.tpl FIND: <img src="{$image.src}" alt="{$image.legend}" /> REPLACE WITH: <a href="{$image.src|replace:'https':'http'}" target="_blank">{$image.legend}</a>
  5. It should work the same as long as your CDN sub-domains (or multi-domain setup) is already loading on non SSL pages. The code above only disables media-server urls from being used by prestashop on all page request's made over https (ssl)
  6. Hi Bill Dalton, See my post on how you could fix the https & media server error: http://www.prestashop.com/forums/topic/285212-would-this-work-use-media-server-only-on-non-ssl-pages/?p=1501605
  7. FYI: I manged to get it to work for me. 1) edit override the function getMediaServer in file /override/classes/Tools.php all I did was add "&& Tools::usingSecureMode() == false" to the if statement public static function getMediaServer($filename) { if (self::$_cache_nb_media_servers === null) { if (_MEDIA_SERVER_1_ == '') self::$_cache_nb_media_servers = 0; elseif (_MEDIA_SERVER_2_ == '') self::$_cache_nb_media_servers = 1; elseif (_MEDIA_SERVER_3_ == '') self::$_cache_nb_media_servers = 2; else self::$_cache_nb_media_servers = 3; } if (self::$_cache_nb_media_servers && Tools::usingSecureMode() == false && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); return Tools::usingSecureMode() ? Tools::getShopDomainSSL() : Tools::getShopDomain(); } 2) Backoffice > Advanced Parameters > Performance > Media servers I have mydomain.net, mydomin.co, mydomain.biz in the Media servers setting Now my media Servers only load on non SSL pages, because I don't have SSL for the other domains.
  8. Try updating productPriceDisplay to productPriceWithoutReductionDisplay in file /js/product.js from org. JS code: reduction = productPriceDisplay * (parseFloat(selectedCombination['specific_price'].reduction_percent) / 100) + reduction_price; To new JS line reduction = productPriceWithoutReductionDisplay * (parseFloat(selectedCombination['specific_price'].reduction_percent) / 100) + reduction_price; I hope it helps others.. I like to say special thanks to JavaScript alert() function (LOL)
  9. Try this script http://www.prestashop.com/forums/topic/87245-solved-new-product-with-attributes-but-add-to-cart-button-still-appears/?view=findpost&p=1465663
  10. Thank you for the information @web.geek attached is a PHP Script to re-index product cache attributes You need to edit the file product_cache_attributes.php to updated your DB username & password than upload it to your web-server with FTP and open the file URL in your web browser. product_cache_attributes.php
  11. It hooks to cart and saves the log info. to the cart table in DB
  12. @jimicus I updated my post #2 code it should now work. Also code would not get wiped if you regenerate htaccess
  13. Once the module is installed go to: Backoffice -> Modules -> Cart Logger -> Configure Enter your Cart ID from Backoffice ->Customers -> Shopping Carts Note the log info. is only available for carts updated/created after the module was installed
  14. And all you can do about google is wait for it to recrawl the pages and see they have been moved.
  15. edit file .htaccess add this line before # ~~start~~ <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^prestashop/(.*)$ /$1 [L,R=301] </IfModule> # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums This will 301 redirect any URL requests starting with /prestashop/ to the root
  16. Do you have access to your DB with tool like phpMyAdmin?
  17. You can edit your theme file footer.tpl in folder ./themes/.../footer.tpl
  18. I needed something similar to this, here is a copy of the module I used on Prestashop 1.5+ only. This module sets a IsMobileDevice that can be used by any theme template files to test what device the user is using. Module sets a smarty {$IsMobileDevice} 0 - Desktop 1 - Mobile Phone 2 - Touchpads With the module installed you could do something like {if $jqZoomEnabled && $IsMobileDevice == 0} Edit file product.tpl <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_cStore')}" {if $jqZoomEnabled && $IsMobileDevice == 0}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_cStore')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="346" height="380" /> ismobile_v0.1.zip
  19. In my case the error was due to theme file pagination.tpl missing the div id and I using cleanurls Module so I had to add one line of code to file. <!-- Pagination --> <div id="pagination{if isset($paginationId)}_{$paginationId}{/if}" class="pagination"> $_GET['id_category'] = !isset($_GET['id_category']) ? (int) $_GET['id_category_layered'] : (int) $_GET['id_category'];
  20. http://www.prestashop.com/forums/topic/161514-relcanonical-in-categories-how-to/page-3?do=findComment&comment=896477 Here is a free module inspired by @studionek's posting Plz note its a beta version. Let me know what you thk I also added a noindex option for SSL pages canonicalurl_v0.1b2.zip
  21. See if your setting is set to true for "All comments must be validated by an employee" in the Backofice -> Modules -> Product Comments
  22. What if i update the getMediaServer() function with && Tools::usingSecureMode() == false would this work? public static function getMediaServer($filename) { if (self::$_cache_nb_media_servers === null && Tools::usingSecureMode() == false) { if (_MEDIA_SERVER_1_ == '') self::$_cache_nb_media_servers = 0; elseif (_MEDIA_SERVER_2_ == '') self::$_cache_nb_media_servers = 1; elseif (_MEDIA_SERVER_3_ == '') self::$_cache_nb_media_servers = 2; else self::$_cache_nb_media_servers = 3; } if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); return Tools::usingSecureMode() ? Tools::getShopDomainSSL() : Tools::getShopDomain(); }
  23. Thanks for sharing your modification Can you do a New pull request on github (https://github.com/Ha99y/PrestaShop-modules-rmaNotify) or else can I update the code my self if not.
  24. Hi Benjamin, Even with the new module form your post I am geting a pagination link error. When a sub catgory is selected the pagination link urls are returned as mysite,com/404?layered_category_18=18&id_category_layered=4&layered_price_slider=............ blocklayered.zip Can I PM you the site link to see it live? Thanks,
  • Create New...

Important Information

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