Jump to content
Latest News: (loading..)

Moxamint

♥Ambassador
  • Content count

    130
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Moxamint

  1. Some products would disappear if I drag the slider around and then drag them back to the min and the max. Win10, Chrome.
  2. how to allow a paypal method over a certain amount

    Hi @stellaplata, This is how I did it on my legacy site, which involves core changes. In <<paypal_standard.php>>, find: function update_status() { global $order; Add right under: if ( $order->info['subtotal'] < MODULE_PAYMENT_PAYPAL_STANDARD_ACCEPTED_LOWER_THRESHOLD ) { $this->enabled = false; } Where MODULE_PAYMENT_PAYPAL_STANDARD_ACCEPTED_LOWER_THRESHOLD you could replace it with 100 so that PayPal payment option does not show for any orders < 100. Please backup your file before making changes to it. Cheers, Eddy
  3. Product Status

    @Cyperis Hi Clint, Unfortunately you have to modify <<checkout_process.php>>. Find the following 3 lines of code and comment them out completely: if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) { tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } And you'll get the result you'd like to achieve. Cheers, Eddy
  4. Paypal duplicate orders

    On rare occasions I would receive two confirmation e-mails from PayPal from both <<paypal_standard.php>> & <<standard_ipn.php>> for the same PayPal transaction, but most of the time I receive just one confirmation e-mail from PayPal - either (mostly) from <<paypal_standard.php>> or from <<standard_ipn.php>>. My site is on the latest BS Edge with PayPal App v5.018 Payment Standard updated to work with BS Edge. PayPal PDT is set to on and IPN messages is disabled in my PayPal account. Cheers, Eddy
  5. @Jack_mcs Apparently the typo has been noticed & mentioned... never mind. Cheers, Eddy
  6. @Jack_mcs In includes\classes\seo.class.php in the most recent Ultimate SEO URLs package you uploaded (1st October 2016), line 1124 FROM `peoducts_description` should be FROM `products_description` Cheers, Eddy
  7. ULTIMATE Seo Urls 5 - by FWR Media

    Hi, I am using Ultimate Seo Urls 5 for Responsive Oscom (https://apps.oscommerce.com/Hj4y0&ultimate-seo-urls-5-for-responsive-oscom) and have not encountered any issues with it. However, one of my languages is Japanese, which is a multi-byte language. When I had all special characters filtered out, the URLs basically have nothing left but something like "-c-5_9.html". Is it possible to force all languages to use and only use the SEO URLs of the default language (English)? Since Japanese SEO URLs still have /ja/ as part of the URL, (I think) the Japanese pages will still be properly indexed. Thanks in advance if anyone could give me some ideas on how to do this. Cheers, Eddy
  8. Products Weight editor?

    It requires code changes in class file \includes\classes\shopping_cart.php because the osC in-built attribute system does not recognize weight options so that they won't get added into the total weight. Perhaps some experienced coders in this forums would chime in and help you with the code changes required. Cheers, Eddy
  9. Database Timezone

    Hi, My company is located in Asia but my website is hosted in the States. I managed to change the timezone of the Apache server to match my location by adding date.timezone = "Asia/Taipei" in php.ini and I have also changed the related value in configure.php for both shop and admin. However, when an order was placed, the logged order time still used the US timezone. The database timezone was not changed. Is there a piece of code I should use to change the database timezone? Thanks in advance for your time and help. Eddy
  10. Database Timezone

    So I guess it has fallen into the "great idea, doesn't work" category? Taiwan started using daylight saving in 1945 under the decision of Japanese government. It was then ended in 1980 by the Taiwanese government. It took the politicians so long to figure out daylight saving was merely an annoying thing.
  11. Database Timezone

    I am wondering if there is a statistics on the actually energy saving by doing this daylight saving thing.
  12. Database Timezone

    https://www.timeanddate.com/time/change/usa @ArtcoInc Thanks. Just wish there is no such thing...
  13. Database Timezone

    Hi Jack, Thanks for the comment. 1) My host in the USA could change the hosting location; 2) There is one thing called "daylight saving" and we do not have that in Taiwan. Result: the time offset could change without my awareness. My site generates custom order IDs based on the time orders are placed to match our ERP system, and these order IDs reset everyday. They highly reply on server time being sync to local time of Taiwan to operate. So if there is a way to avoid changing core code everywhere, I sure will vote for that. Cheers, Eddy
  14. Database Timezone

    Actually I just started my attempt to fix this time issue side-wise by using the old-fashioned way (core changes). I have defined the following: $dateServer = new DateTime("now", new DateTimeZone(date_default_timezone_get())); $dateStore = new DateTime("now", new DateTimeZone('Asia/Taipei')); $TimeOffset = $dateServer->format('H') - $dateStore->format('H') ...and am on my way to change all occurrences of 'now()'... An admin dashboard module would be extremely welcome... :) Cheers, Eddy
  15. Database Timezone

    @burt Yes about code did it :) ...and moon cake, fire crackers, and the whole nine yards. Cheers, Eddy
  16. Database Timezone

    @burt Hi Gary, Unfortunately it does not work by just changing 'now()' to 'now() - interval 10 hour' in checkout_process, because the function tep_db_perform() that will deal with the database later only recognizes 'now()' as one of the switches. if I move 'now() - interval 10 hour' directly into function tep_db_perform(), then it works correctly. Thanks and Happy Moon Festival, Eddy
  17. Database Timezone

    @Jack_mcs The add-on basically does what @burt suggested by moving the code to function tep_db_perform() so that the database time is altered each time the function is called. So I guess I have my questions answered. Thanks again, Eddy
  18. Database Timezone

    Thanks for confirmation. I'll look into it as well. Cheers, Eddy
  19. Database Timezone

    @burt Many thanks! Will try that. Although I could order their MySQL VPS but that would cost extra money every month... @Jack_mcs The add-on you pointed me to only instructed me to add define('CFG_TIME_ZONE', 'America/Los_Angeles'); in configure.php. That would only change the timezone php script uses, but the server / database timezone won't be affected. Maybe you meant to point me to this one Time Zone Offset - Adjust to match your instead?
  20. @OscPresto Hi, I had similar issue with Twitter Typeahead Autocomplete when and only when my site switched to using multi-byte languages such as Chinese and Japanese. @auzStar Dominic kindly offered me a solution and it solved the problem when searching in non-English languages. In file "catalog\ext\modules\header_tags\twitter_typeahead\autocomplete.php", find and replace all occurrences of the below - replace preg_with mb_ereg_replace replace strlen with mb_strlen replace stripos with mb_stripos replace substr with mb_substr Please also make sure your files are UTF-8 encoded. Best regards, Eddy
  21. That's what I was thinking about doing as well. Thanks, Eddy
  22. @Tsimi Hi Lambros - now is it possible to make this sort filter work on the search result page <<advanced_search_result.php>>? This file is quite different from specials and products_new. Made a few attempts with no joy... Thanks, Eddy
  23. Sure will do that - will talk with you later today. Thanks again, Eddy
  24. The whole product_listing file has only been modified for this additional sort filter feature. I'll check if I missed or screwed up something. Thanks, Eddy
  25. @Tsimi They align fine in larger views: Then they break into two lines in smaller views: And then they align again in xs view: Thanks, Eddy
×