Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  • Days Won


douglaswalker last won the day on July 26 2017

douglaswalker had the most liked content!


About douglaswalker

  • Birthday 04/30/1967

Profile Information

  • Real Name
  • Gender
  • Location
    Western Australia

Recent Profile Visitors

15,176 profile views
  1. douglaswalker

    favicon.ico error

    The below is a useful tool for Favicons across all platforms. Explains what is required. https://realfavicongenerator.net/
  2. douglaswalker

    && combined with !=

    nice... thank-you
  3. douglaswalker

    && combined with !=

    Oh my god.. I am stupid thank-you
  4. douglaswalker

    && combined with !=

    Hi there, I have come across a curious coding issue which may just be curious to me... but I wondered if any\one has come across it and could shed any light. Ok here goes.... the code below works as expected and stops the code running on checkout_shipping.php, checkout_payment.php and checkout_confirmation.php function isEnabled() { global $PHP_SELF; if (($PHP_SELF == 'checkout_shipping.php')|| ($PHP_SELF == 'checkout_payment.php') || ($PHP_SELF == 'checkout_confirmation.php')) { $this->enabled = false; } return $this->enabled; } Then i tried the code below to allow the code to run on checkout_shipping.php, checkout_payment.php and checkout_confirmation.php but no where else however it does not work and the code runs nowhere. function isEnabled() { global $PHP_SELF; if (($PHP_SELF != 'checkout_shipping.php')|| ($PHP_SELF != 'checkout_payment.php') || ($PHP_SELF != 'checkout_confirmation.php')) { $this->enabled = false; } return $this->enabled; } then I tried this (see below and it works perfectly. Only allowing the code to run on checkout_shipping.php, checkout_payment.php and checkout_confirmation.php function isEnabled() { global $PHP_SELF; if (($PHP_SELF != 'checkout_shipping.php')&& ($PHP_SELF != 'checkout_payment.php') && ($PHP_SELF != 'checkout_confirmation.php')) { $this->enabled = false; } return $this->enabled; } I thought that if I added && then all the conditions had to be correct at the same time? Why does the || not work? Any light that can be shed would be appreciated
  5. douglaswalker

    PHP7 while()each() becomes foreach()

    Thank-you I have it all finished now and not throwing any errors. I have the fixed files as a backup so when my host upgrades I am not stuck. I will be upgrading fully to edge when it is at final and i have some time. Just out of interest how would you fix all the errors mentioned above?
  6. douglaswalker

    PHP7 while()each() becomes foreach()

    Hi there just wanted to report back. I tested just specials.php with the altered foreach change on a 5.6 server and it failed. I just got a no products found... swapped back to the old file and the specials appeared. So that is interesting... I don't know if that is others experience. So I guess I will just have to wait until the server upgrades and then upload the new files... unless there is another way to do it. Doug
  7. douglaswalker

    PHP7 while()each() becomes foreach()

    Thanks Gary it is a thing of beauty. I found my way through all the changes in Github... thank-you I have a test site running on PHP Version 7.0.30 all seems good Will this also work on my 5.6.36 server as well is it not backwards compatible.
  8. Hi there I am making my Bootstrap Site (Gold) PHP7 compatible. I have worked my way through all the changes on GitHub and all is well. Except I have a non standard piece of code which is a discount module. The pieces of code below are to places where i need to change the while and each. I have tried a number of ways based on comparing other changes but I can't get it working. Could someone please help with this last piece in the puzzle. function total() { reset($this->discounts); $total = 0; while (list($type, ) = each($this->discounts)) { $total = $total + $this->discounts[$type]['amount']; } return $total; } and the second function get_all() { $discounts_array = array(); reset($this->discounts); while (list($type, ) = each($this->discounts)) { $discounts_array[] = array('description' => $this->discounts[$type]['description'], 'amount' => $this->discounts[$type]['amount']); } return $discounts_array; } I thought it would be something like this function get_all() { $discounts_array = array(); foreach($this->discounts as $type) { $discounts_array[] = array('description' => $this->discounts[$type]['description'], 'amount' => $this->discounts[$type]['amount']); } return $discounts_array; } but alas it is not All help appreciated Doug
  9. douglaswalker

    Google XML Sitemap SEO

    Thank Jack just wanted to check that it was not another issue much appreciated Doug
  10. douglaswalker

    Google XML Sitemap SEO

    Hi Jack, just updated my site Bootstrap Gold to php7 ... I get a 500 error when i run googlesitemaps is there any changes required for php7 I am using the version before the filename changes Doug
  11. douglaswalker

    Anyone made a module for Afterpay or Zippay (Australia)

    Hi there I have Afterpay working from the module that rudolf developed.. I don't think there is a Zipay https://apps.oscommerce.com/VF1bj&afterpay-payment-module-au-nz-only
  12. douglaswalker

    Price.. plus Specials Price in shopping cart

    Thank-you https://forums.oscommerce.com/topic/407456-showing-regular-price-special-price-in-shopping_cart-page/ Was able to follow this to make it work It does involve a small change to the shopping cart class and a change on the shopping cart page. But I now have regular price and discount price in the shopping cart. I discovered that customers would not realise the toy was on special or thought that the special had not been applied when they couldn't see it in the cart. Doug
  13. Hi there i would like to show the regular price plus the specials price (if exists) in the shopping cart. $45.00 $ 40.00 at the moment it only shows the final price. I have read about it before but I don't remember a solution. Anyone got any ideas?
  14. douglaswalker

    Product Notifications

    Thanks Gary .. will have a play with it.
  15. douglaswalker

    Product Notifications

    Sounds great where can we find this