Jump to content

Leaderboard


Popular Content

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

  1. 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
  2. 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'); ?>
  3. 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'));
  4. 1 point
    alex121121

    Auto set currency based on ip

    That is awesome. All problems are solved then. Thank you guys.
  5. 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.
  6. 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');
  7. 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.
  8. 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.
  9. 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.
  10. 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]
  11. 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
  12. 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.
×