Small php script
- or -
Post a project like this2361
$$
- Posted:
- Proposals: 1
- Remote
- #1741966
- Awarded
Description
Experience Level: Intermediate
General information for the website: Amazon affiliate link localization
Description of every page/module: We need a simple php script, that from given request parameter will determine amazon store location, user country by geolocation from IP and then redirect user to its closest store.
Script logic requirements:
1. If user comes from London, UK to scripts page(link is pointed to USA store) script.php?url=https://www.amazon.com/dp/B00MN10Q08/?tag=ntcdata1-20 then he gets redirected to https://www.amazon.co.uk/dp/B00MN10Q08/?tag=ntcdata-21
As you can see, Amazon ASINs are same in this case. This should work vice versa as well.
2. Script should be able to determine if this product exists in amazon store we want to redirect user to, if its not, then we need to redirect user to a search page instead of product page, example link: https://www.amazon.co.uk/s/ref=as_li_ss_tl?url=search-alias=kitchen&field-keywords=Whiskey+Decanter+-+Liquor+Dispenser+for+Wine,+Bourbon,+Vodka,+Mouthwash+-+Glass+Fathers+Day+Gift&linkCode=ll2&tag=ntcdata-21&linkId=4da7454547fb2e3a7ffb6007b01fdf84
3. We need a possibility to configure countries by amazon stores, configuration array will do just fine, example: https://take.sc/kh8
4. If link is pointed to USA store and user comes from USA, we need to make redirect to a initial url.
5. Script needs to be able check items stock and if its not available anymore - user gets redirected to a search page instead as I mentioned in 2.
Scripts output requirements:
6. Script needs to display a simple loading screen while it searches for stores, example: https://take.sc/ki1
7. For each link, custom OG tags must be able to add, as simple as possible - configuration array where key is amazon ASIN and value - og tag values. Example: https://take.sc/ki0
CMS and Admin requirements: No need for any kind of cms or admin panel, everything can be done using hard-coded configuration files.
Specific technologies required: php,html,css
Extra notes: Examples scripts that could be helpful https://github.com/search?utf8=%E2%9C%93&q=amazon+localize&type=
this is an interesting example of usage: https://github.com/joshbuchea/amazon-affiliate-link-localizer/blob/master/ajax.php , but if possible, we would prefer to use amazon api, if there is any.
Description of every page/module: We need a simple php script, that from given request parameter will determine amazon store location, user country by geolocation from IP and then redirect user to its closest store.
Script logic requirements:
1. If user comes from London, UK to scripts page(link is pointed to USA store) script.php?url=https://www.amazon.com/dp/B00MN10Q08/?tag=ntcdata1-20 then he gets redirected to https://www.amazon.co.uk/dp/B00MN10Q08/?tag=ntcdata-21
As you can see, Amazon ASINs are same in this case. This should work vice versa as well.
2. Script should be able to determine if this product exists in amazon store we want to redirect user to, if its not, then we need to redirect user to a search page instead of product page, example link: https://www.amazon.co.uk/s/ref=as_li_ss_tl?url=search-alias=kitchen&field-keywords=Whiskey+Decanter+-+Liquor+Dispenser+for+Wine,+Bourbon,+Vodka,+Mouthwash+-+Glass+Fathers+Day+Gift&linkCode=ll2&tag=ntcdata-21&linkId=4da7454547fb2e3a7ffb6007b01fdf84
3. We need a possibility to configure countries by amazon stores, configuration array will do just fine, example: https://take.sc/kh8
4. If link is pointed to USA store and user comes from USA, we need to make redirect to a initial url.
5. Script needs to be able check items stock and if its not available anymore - user gets redirected to a search page instead as I mentioned in 2.
Scripts output requirements:
6. Script needs to display a simple loading screen while it searches for stores, example: https://take.sc/ki1
7. For each link, custom OG tags must be able to add, as simple as possible - configuration array where key is amazon ASIN and value - og tag values. Example: https://take.sc/ki0
CMS and Admin requirements: No need for any kind of cms or admin panel, everything can be done using hard-coded configuration files.
Specific technologies required: php,html,css
Extra notes: Examples scripts that could be helpful https://github.com/search?utf8=%E2%9C%93&q=amazon+localize&type=
this is an interesting example of usage: https://github.com/joshbuchea/amazon-affiliate-link-localizer/blob/master/ajax.php , but if possible, we would prefer to use amazon api, if there is any.
Janis B.
100% (63)Projects Completed
54
Freelancers worked with
44
Projects awarded
45%
Last project
4 Jul 2022
Latvia
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies