Jump to content

dr_lucas

Members
  • Content count

    357
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by dr_lucas

  1. @DAVID3733 Thanks for that link, now I finally have a working exchange rate server again after 2 months we didn't notice all fail (oanda, xe and fixer). We do still need a backup server, just in case this one fails and we won't notice again. Does anyone have any suggestions/alternatives, preferably that don't require registration. Thanks
  2. dr_lucas

    BS4 admin

    On request? Why is it "on request" basis?
  3. dr_lucas

    BS4 admin

    I know you are working on BS4 of the BO (admin). Is there any public/downloadable version of BS4 FO (catalog) yet?
  4. dr_lucas

    BS4 admin

    Didn't write the addons, just copied and pasted other people work.
  5. dr_lucas

    BS4 admin

    Thanks. I am pretty sure you are a much better programmer than I am.
  6. dr_lucas

    BS4 admin

    Naah, not a contribution, I truly believe it must be added to the core by now. See: http://demo.prestashop.com/en/?view=back
  7. dr_lucas

    BS4 admin

    @wHiTeHaT It's a nice touch BS4 in the admin, but I think having fly-out menus (on hover) is significantly better and required...
  8. Thinking again, you may be right.
  9. I may have missed something, but could anyone please explain why is this code in /logoff.php tep_session_unregister('customer_id'); tep_session_unregister('customer_default_address_id'); tep_session_unregister('customer_first_name'); tep_session_unregister('customer_country_id'); tep_session_unregister('customer_zone_id'); if ( tep_session_is_registered('sendto') ) { tep_session_unregister('sendto'); } if ( tep_session_is_registered('billto') ) { tep_session_unregister('billto'); } if ( tep_session_is_registered('shipping') ) { tep_session_unregister('shipping'); } if ( tep_session_is_registered('payment') ) { tep_session_unregister('payment'); } if ( tep_session_is_registered('comments') ) { tep_session_unregister('comments'); } Better than simply unsetting the whole session with this one command: session_unset();
  10. dr_lucas

    SiteMonitor

    Jack already posted the link (https://apps.oscommerce.com/2W7tC&sitemonitor-v3-4) and it's working fine, the docs are there, so not sure what's the issue, Steve:
  11. dr_lucas

    NEW! Complete Order Editing Tool!

    My revised files contain proprietarty code, thus I can't share them as-is unfortunately. And it's not only edit_orders that was modified, but multiple files AFAICR. Trust me, if I could share them, I would have done so without being requested.
  12. dr_lucas

    NEW! Complete Order Editing Tool!

    It doesn't as I don't charge taxes, but my files do contain many fixes to other bugs including weight calculation bugs. I don't use the AJAX module either. Besides, I don't really have time to un-tailor code unfortunately. My advice is still a good one.
  13. dr_lucas

    NEW! Complete Order Editing Tool!

    But this is not something u must live with. You can either debug it and fix it for your own shop/s (as I did, but I can't share my fixes here as they are tailored for my needs) or hire someone to do it for you.
  14. dr_lucas

    PHP 7

    You can easily fix it. Read this: http://stackoverflow.com/questions/35128323/php-extended-class
  15. dr_lucas

    PHP 7

    PHP 7 has already been released @ Nov-Dec 2015, and yes, it does have an excellent performance improvement.
  16. dr_lucas

    PHP 7

    Actually the specific modification example I gave is not so good, because this infoBoxHeading class extends tableBox class and in this case it would be correct to modify tableBox class first from: class tableBox{ function tableBox{ // some code } // more code } TO: class tableBox{ function __construct(){ //leave it empty } function tableBox{ // some code } // more code } and then on the extended class, do this: class infoBoxHeading extends tableBox { function __construct($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; parent::__construct(); //calling the parent constructor, as tableBox method is being used here in this class if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } Note that we don't only modify the method name here from infoBoxHeading to __construct, but we are also calling the parent construct via parent::__construct();
  17. dr_lucas

    PHP 7

    Yes, you will need to modify classes to use __construct classes to prevent DEPRECATED errros, but other than that - it should work just fine when switching from code already compatible with 5.5 (ie. working stable without any deprecated errors on php 5.5, supports UTF-8 and mysqli) to php 7. So, for example, code like this: class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } Must be changed to this: class infoBoxHeading extends tableBox { function __construct($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="20" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="20" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } As you can see, the only modification was: function infoBoxHeading changed to function __construct I highly recommend switching to php 7, if you can.
  18. @@stefan21 Thank You! Exactly what I was looking for... :)
  19. Yeah, what @@BrockleyJohn siad, rr better just use the built-in Firefox developer tools which are already much better nowadays than Firebug. Alternatively use the excellent Chrome developer tools. Just click F12 in either of them and start your debugging journey.
  20. dr_lucas

    ULTIMATE Seo Urls 5 - by FWR Media

    Merry Christmas everyone! :) I have an issue with the period (.) character http://example.com//index.php?cPath=44_95&page=1&range=1.99_2.99 gets rewritten according to the rule and the 1.99_2.99 becomes 199_299 It doesn't happen when I turn off USU5 pro, so it's an issue with the module coding or .htaccess(?) How can I escape the period safely? (ie. without causing some random side effects)
  21. dr_lucas

    Google XML Sitemap SEO

    Correction, it seems all the version files show the same version 1.2, so I believe mine maybe a newer one - 1.4 or 1.5, if that makes any difference.
  22. dr_lucas

    Google XML Sitemap SEO

    @@Jack_mcs Yes, I did on my own site and it generated only 1 file of 50,000 products (out of the 90,000 I have). The file size was 12MB. I have an older version (1.2) so that is possibly the reason it did not generate the consecutive file, but still - 12MB form 50,000 products is larger than the allowed standard.
  23. dr_lucas

    Google XML Sitemap SEO

    Thanks, Jack. It seems google size limit is different than the standard, which is 10mb, and if we want sitemaps that can be read by all search spiders, it would be better to make the code check for that limit and create a new sitemap if reach the 10mb. More details here: https://productforums.google.com/forum/#!topic/webmasters/nd5RDhMMfhk
  24. dr_lucas

    Google XML Sitemap SEO

    @@Jack_mcs - first, thank you for the contribution! Sorry if the question was asked and answered before, but does this module support catalogs with over 50,000 products? Does it auto-generate additional sitemap files as required? Does it make sure the total file size of each sitemap is under 10mb?
  25. dr_lucas

    FedEx - Web Services v9

    If I read that right, FedEx will apply dimensional shipping to Freight and Ground services, but they will also keep the weight based shipping. This change to these 2 specific services seems to be USA exclusive and all other services are not affected anyway. As I do not personally ship inside the USA, do not use any of these mentioned services and always ship by weight only, I did not have the need to look into this and will not spend the time to modify the module, but it should be quite easy to modify it and add the dimension shipping or you can hire a freelancer to modify it for you from places like http://www.freelancer.com
×