Browse Source

Aug 29: [UPDT] Index and Key Word Updated 'geoip_website_redirect'

pull/331/head
Cybrosys Technologies 11 months ago
parent
commit
9ca4b16022
  1. 4
      geoip_website_redirect/README.rst
  2. 4
      geoip_website_redirect/__manifest__.py
  3. 6
      geoip_website_redirect/controllers/geoip_website_redirect.py
  4. 9
      geoip_website_redirect/doc/RELEASE_NOTES.md
  5. BIN
      geoip_website_redirect/static/description/banner.jpg
  6. 12
      geoip_website_redirect/static/description/index.html

4
geoip_website_redirect/README.rst

@ -2,8 +2,8 @@
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Website GeoIP Based Language and Currency
=========================================
Website Geolocation Based Language and Currency
===============================================
* This module allow to view the website content according to login user's country details.
Installation

4
geoip_website_redirect/__manifest__.py

@ -20,10 +20,10 @@
#
#############################################################################
{
'name': 'Website GeoIP Based Language and Currency',
'name': 'Website Geolocation Based Language and Currency',
'version': '17.0.1.0.0',
'category': 'eCommerce, Productivity',
'summary': """Website GeoIP Based Language and Currency Application
'summary': """Website Geolocation Based Language and Currency Application
for Odoo 17""",
'description': """The module helps you to map currency and language
based on User's IP address""",

6
geoip_website_redirect/controllers/geoip_website_redirect.py

@ -26,11 +26,13 @@ from odoo.http import request
from odoo.addons.web.controllers.home import Home
class GeoIP(Home):
class Geolocation(Home):
""" controller for selecting login user's datas """
def get_location(self, ip_address):
""" Get location details of user using ip address"""
response = requests.get(f'http://ip-api.com/json/{ip_address}', timeout=20).json()
response = requests.get(f'http://ip-api.com/json/{ip_address}',
timeout=20).json()
return {"country": response.get("country")}
@http.route()

9
geoip_website_redirect/doc/RELEASE_NOTES.md

@ -4,4 +4,11 @@
#### Version 17.0.1.0.0
##### ADD
- Initial Commit for Website GeoIP Based Language and Currency
- Initial Commit for Website Geolocation Based Language and Currency
#### 29.10.2024
#### Version 17.0.1.1.0
#### BUG FIX
- The Key word is replaced from the index , manifest and controllers.

BIN
geoip_website_redirect/static/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 115 KiB

12
geoip_website_redirect/static/description/index.html

@ -69,7 +69,7 @@
<div class="col-lg-12 d-flex flex-column align-items-center">
<h1 class="text-center text-uppercase"
style="font-family: Montserrat, 'sans-serif' !important; font-size: 67px !important; color: #5154a5; font-weight: 900 !important;">
<span style="color:#5154a5;">Website GeoIP Based </span><span style="color: #791d97;">Language and Currency</span>
<span style="color:#5154a5;">Website Geolocation Based </span><span style="color: #791d97;">Language and Currency</span>
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing: 4px !important; color: #74788D !important;font-size: 21px;font-weight: bold;">
@ -78,7 +78,7 @@
<div class="col-lg-12 d-flex flex-column justify-content-center">
<p class="my-1 text-center"
style="font-family: Montserrat, 'sans-serif' !important; color: #212121 !important;font-size: 16px;font-weight: bolder;">
Website GeoIP Based Language and Currency is an application
Website Geolocation Based Language and Currency is an application
which is fetch the IP address of customer's device and allow
them to see website in their native language and see the
currency as per the geolocation.
@ -231,12 +231,12 @@
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing:4px !important; color:#74788D !important">
Website GeoIP Based Language and Currency.</p>
Website Geolocation Based Language and Currency.</p>
</div>
<div class="col-sm-12 py-4">
<h5 style="text-indent: 2em; text-align: justify;">
The Website GeoIP Based Language and Currency application
The Website Geolocation Based Language and Currency application
detects the IP address of a customer's device to display
the website in their native language and show prices in the
appropriate currency based on their geolocation.
@ -323,7 +323,7 @@
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing:4px !important; color:#74788D !important">
Website GeoIP Based Language and Currency
Website Geolocation Based Language and Currency
</p>
</div>
@ -387,7 +387,7 @@
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing:4px !important; color:#74788D !important">
Comprehensive Features of Website GeoIP Based Language and Currency</p>
Comprehensive Features of Website Geolocation Based Language and Currency</p>
</div>
<div class="row">
<div class="col-md-4 col-sm-6 mt48" style="padding-bottom: 10px">

Loading…
Cancel
Save