Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/10/2019 in all areas

  1. 5 points
    burt

    Sitewide Hooks

    That's the general idea. Especially with the latest change to these sitewide hooks, now it's possible to just upload the hook and it gets injected in the page without a need to call it That's BIG!
  2. 2 points
    burt

    Sitewide Hooks

    Perfect! A hole in one.
  3. 1 point
    burt

    Sitewide Hooks

    SiteWide Hooks (Frozen).zip These add in the possibility to easily track what versions you are using for external scripts (eg jquery, bootstrap etc). This is coming this month in Edge. If you want to try it on Frozen, download the zip and; make the changes in /includes/template_top.php make the changes in /includes/template_bottom.php upload the contents of /includes/hooks/ Open to constructive feedback and discussion.
  4. 1 point
    ArtcoInc

    I have no "main_page.tpl.php" file

    @alex121121 I downloaded the add-on in question to take a look at it. While it *may* have worked way back when, I don't think it will do what you want it to do now, especially with the current Community Edition of osC. Sorry 😕 M
  5. 1 point
    Hotclutch

    I have no "main_page.tpl.php" file

    I see the addon was submitted under Ver 2.2, not sure if that was a mistake, but Neither Bootstrap nor official osC has a file called main_page.tpl.php Also note that the bootstrap version removes these kind of definitions: <?php require(DIR_WS_INCLUDES . 'cur_update.php'); ?> So you should use instead: <?php require('includes/cur_update.php'); ?>
  6. 1 point
    raiwa

    Auto set currency based on ip

    Language ids include country specific part, see your browser preferences. And in the english language file see at the very beginning: // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Array examples which should work on all servers: // 'en_US.UTF-8', 'en_US.UTF8', 'enu_usa' // 'en_GB.UTF-8', 'en_GB.UTF8', 'eng_gb' // 'en_AU.UTF-8', 'en_AU.UTF8', 'ena_au' @setlocale(LC_ALL, array('en_US.UTF-8', 'en_US.UTF8', 'enu_usa'));
  7. 1 point
    alex121121

    Auto set currency based on ip

    That is awesome. All problems are solved then. Thank you guys.
  8. 1 point
    raiwa

    Auto set currency based on ip

    Language is auto selected by browser language settings. EDIT: Nothing illegal, each browser and WEB Site uses this. Just check your browser settings and visit multilanguage sites. Each site which supports your preferred browser language will show the site in that language.
  9. 1 point
    raiwa

    Auto set currency based on ip

    What is very easy to do is to link the currency to the language. In admin: Configuration: My Store: Switch To Default Language Currency set to true Then in each main language file, set the desired currency in aprox. line 39-40: // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'USD');
  10. 1 point
    burt

    Auto set currency based on ip

    Would be 100% illegal per GDPR, by my understanding. You can't use the users IP "for stuff" unless you get the users permission.
  11. 1 point
    Jack_mcs

    Auto set currency based on ip

    @alex121121The addon mentioned by @raiwawas meant for the purpose you want. However, it uses a third-party site to check the IP and if you go to that site (mentioned on the addon page), you will see it says closed. The site may still work but IP's won' be updated, from the looks of it. Also, if it does work, there is a limit in the code that only allows a certain number of checks for a certain period. That won't matter on slow sites but will on busier ones. There was also a problem with that other site, as I recall, that if it was busy or not responding, the calling site would set and wait. Any benefit of showing the currency would be lost if a customer has to wait. And one final point, IP's are not country-specific so the addon might report the wrong country. This is especially true in Europe where the countries are so close together.
  12. 1 point
    raiwa

    Auto set currency based on ip

    Hello @alex121121, If you search the marketplace for your title you'll get several promising results. The best in my opinion: Auto change currency based on IP address It may need some minor updates, but I believe it shouldn't be too difficult.
  13. 1 point
    altoid

    Sitewide Hooks

    @burt I think I understand this now. For me, I can look up the versions as noted. I modified the language file a bit to help remind me whenever down the road where to start when doing a version change...
  14. 1 point
    @douglaswalker sorry Doug didn't think properly - you need to change the query string rather than the url RewriteCond %{QUERY_STRING} "^([^\s%20]*)(?:\s|%20)+(.*)$" RewriteRule ^ %{REQUEST_URI}?%1%2 [L,R]
  15. 1 point
    JcMagpie

    Sitewide Hooks

    I very much doubt this as it does nothing to let the ordinary user know if he or she is using gold, edge, or frozen. Also very complicated way of doing somthing as simple as letting people know what they have just installed. All this can be done by having a simple file in the install zip which holds all the info and displays it in admin. Simple file which any user can edit and keep updated if they ever make changes. For those that download frozen with BS4 from the test site they will have this (see below) in version checker. So will know eactly what they have just installed, but then maybe I'm taking a too simplistic view of this!
  16. 1 point
    😊 Here it is, https://apps.oscommerce.com/TEHRr&amp;specials-ribbon-v2-3-4-1-ce In apps market just click on any of my add-on's and then by the Updated by click the name and you will see my profile which lists them all. https://apps.oscommerce.com/Profile&amp;152272-jcmagpie
  17. 1 point
    Hotclutch

    2nd Product Image replaces main image

    Here is the demo of last official osC: https://demo.oscommerce.com/product_info.php?products_id=28 You already have a small image gallery. The bootstrap code is the same as the last official osC in this respect.
×