Jump to content

Darussalam

Members
  • Content count

    27
  • Joined

  • Last visited

About Darussalam

  • Rank
    PrestaShop Apprentice

Profile Information

  • Gender
    Male
  • Location
    Houston TX USA

Contact Methods

  • Website URL
    https://dar-us-salam.com/
  • Facebook
    https://www.facebook.com/Darussalam.Store/

Recent Profile Visitors

81 profile views
  1. Special Characters in Prestashop 1.6 Search

    I have similar problem as whenever someone adds an apostrophe or quotes, it displays this message: Please enter a search keyword Usually, when there are zero results, it searches through Google search and displays results. I have tried to search the following which causes this: Qur'an, I'm, "any word" and so on. I+m however displays google results. Search here: https://dar-us-salam.com/ Any help will be appreciated. Thanks,
  2. For a few days now, a fatal error with an entirely white screen is being displayed when some customers login. The system logs them in but customer can only see the product & category pages as they see fatal error when they go to see their account or checkout. At least 2 customers have complained and I can't figure it out. I have attached the debug code as I couldn't paste it here as it is very long. I would really appreciate if someone can guide on what may be wrong or with which module and how I can fix it. Any help will be appreciated. Thank you, dar-us-salam.com/my-account Prestashop 1.6.15 17-12-02_Customer_Login_Fatal_Error.txt
  3. Hello, I figured out that Jpresta did a override for this controller. Can anyone help me as to how I can restrict the # of best sellers to 72? Here is my BestSalesController.php file: <?php /** * Page Cache powered by Jpresta (jpresta . com) * * @author Jpresta * @copyright Jpresta * @license You are just allowed to modify this copy for your own use. You must not redistribute it. License * is permitted for one Prestashop instance only but you can install it on your test instances. */ class BestSalesController extends BestSalesControllerCore { /* * module: pagecache * date: 2016-12-09 04:32:49 * version: 3.17 */ public function displayAjax() { $this->initHeader(); $result = array(); $index = 0; $nb_products = 72; /* Added by OW */ do { $val = Tools::getValue('hook_' . $index); if ($val !== false) { list($hook_name, $id_module) = explode('|', $val); if (Validate::isHookName($hook_name)) { $result[$hook_name . '_' . (int)$id_module] = Hook::exec($hook_name, array() , (int)$id_module); } } $index++; } while ($val !== false); if (Tools::version_compare(_PS_VERSION_,'1.6','>')) { Media::addJsDef(array( 'isLogged' => (bool)$this->context->customer->isLogged(), 'isGuest' => (bool)$this->context->customer->isGuest(), 'comparedProductsIds' => $this->context->smarty->getTemplateVars('compared_products'), )); $defs = Media::getJsDef(); unset($defs['baseDir']); unset($defs['baseUrl']); $this->context->smarty->assign(array( 'js_def' => $defs, )); $result['js'] = $this->context->smarty->fetch(_PS_ALL_THEMES_DIR_.'javascript.tpl'); } $this->context->cookie->write(); header('Content-Type: application/json'); die(Tools::jsonEncode($result)); } }
  4. Hi Vekia, I changed 'nbProducts' => 72, but best-sellers page (https://dar-us-salam.com/best-sellers) still shows all of the 1362 products. I cleared the cache and also the PageCache but nothing seems to take effect. I checked the BestSalesController.php file via FTP and it is 72. Any suggestions? Thanks
  5. I finally figured out the problem after having Prestashop technicians look at my backend: The problem was that I was using overrides. I was able to update the modules automatically after disabling the overrides (under Advanced Parameters > Performance ). There were 18 modules that needed updating. I reverted back the overrides once it was done.
  6. Hi all, I have tried everything: CURL is enabled, FOPEN is allowed and I just got my hosting company to downgrade from PHP 5.6 to 5.5.38 but I am still unable to login to Prestashop Addons from within Prestashop. As such none of my modules are being updated. I have changed the addons password and can login from the website fine. Can anyone from Prestashop please contact me to resolve this issue? Thanks http://dar-us-salam.com/phpinfo.php
  7. Norton Guarantee Seal

    Hello, I came across your post when trying to figure out the variables as well. After spending over an hour I finally got it to work and it may be helpful for others well. Here is the code for the 3 variables: _GUARANTEE.Guarantee.subtotal= '{$order.subtotal}'; _GUARANTEE.Guarantee.order = '{$order.id}'; _GUARANTEE.Guarantee.email = '{$email}'; Regards, Omar http://dar-us-salam.com Worship Allah (the one and only Lord of all the Worlds) alone and don't associate anyone with him if you want to be saved.
  8. I have the same problem. So far I have found 11 items that are totally missing from BO, FO & phpMyAdmin. They are all unrelated items so I don't know what may have happened to them. UPDATE: I had to manually add the products from the old CSV / Excel file. Lesson for everyone: Make sure to keep regular DB and separate product backups.
  9. Media Servers Cashing Directories

    Hello, I have same issue, did you ever find a solution to this problem? The /nav/ folder I have manually referenced. Is there a way to declare that this folder (and selected others) should be served by the media server? There are 6 static components that are not on CDN. http://dar-us-salam.com/img/blockslideshow/2.jpg http://dar-us-salam.com/img/blockslideshow/1.jpg http://dar-us-salam.com/img/blockslideshow/3.jpg http://dar-us-salam.com/modules/poscategorylist1/img/cate_image_1.jpg http://dar-us-salam.com/nav/logo_52px.gif http://dar-us-salam.com/nav/Payments.png
  10. I have the same problem. I used the Webkul UPS shipping module and they don't support after 3 months so can't help me. The UPS shipping methods totally disappear upon reaching 70lbs instead of dividing by 2 boxes. Any help will be appreciated. Thanks
  11. CDN & Font Awesome

    I just figured a workaround: Instead of a relative font URL, I changed it to a static one in the global.css theme file and everything works normally with the different media server. /* global.css file * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */ /* FONT PATH -------------------------- */ @font-face { font-family: 'FontAwesome'; src: url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.eot?v=4.3.0"); src: url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0") format("embedded-opentype"), url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.woff2?v=4.3.0") format("woff2"), url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.woff?v=4.3.0") format("woff"), url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.ttf?v=4.3.0") format("truetype"), url("http://dar-us-salam.com/themes/pos_stepre5/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular") format("svg"); font-weight: normal; font-style: normal; }
  12. CDN & Font Awesome

    Hi, I have same problem on my domain dar-us-salam.com . I keep getting this error when media server dusstore.com (CloudFlare) is entered: Redirect at origin 'http://dusstore.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dar-us-salam.com' is therefore not allowed access. I have tried both of these in the htaccess file but didn't solve the problem. Header set Access-Control-Allow-Origin "http://dusstore.com" <IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" </IfModule> Any help will be appreciated.
  13. I finally figured out that this Helpdesk button is from the LiveChatPro module as the window has the same layout. I have contacted the developer on how to remove it.
  14. I want to get rid of the 'Customer Service' from the front end too. Especially the 'Helpdesk' button which has appeared in the My Account section which I can't figure out how to remove. There is no hook for it in the displayCustomerAccount section. I have attached 2 screen shots for the button and what it opens. Any help will be appreciated. Thanks
  15. Just for someone having the same problem in future: I finally figured out the root cause when looking at the 'attachment' table in myPHPAdmin. The mime column had some PDF set as application/octet-stream so I ran this command and changed all of them to application/pdf with the following command: UPDATE `attachment` SET `mime` = "application/pdf" Someone can add a where statement if there are other formats as well.
×