Jump to content

Mr S

Members
  • Posts

    165
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

13,989,136 profile views

Mr S's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

149

Reputation

  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:1.7.6.4
  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. @jimicus I updated my post #2 code it should now work. Also code would not get wiped if you regenerate htaccess
  12. And all you can do about google is wait for it to recrawl the pages and see they have been moved.
  13. 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
  14. Do you have access to your DB with tool like phpMyAdmin?
×
×
  • Create New...