SpikeHD / AmazonMonitor

Amazon price checker, item monitor and stock monitor, all shoved into a Discord bot
GNU General Public License v3.0
234 stars 39 forks source link

[Feature Request] Support to more easily change currency symbol/format #120

Open MaxJ02 opened 2 months ago

MaxJ02 commented 2 months ago

Support to more easily change currency symbol/format

It would be really nice if there were two variables in the config file where we could pick 1: currency symbol goes before or after price 2: currency symbol

I'm not very experienced in JS so I havent been able to change the currency symbol myself after looking at the code. Any help in the right direction would be greatly appreciated. The main issue is that $ is displayed when I get price alerts.

SpikeHD commented 2 months ago

What country are you viewing products in? Can you give me an example link?

MaxJ02 commented 2 months ago

Hi. I really appreciate you taking time to reply to this issue! I accidentaly closed this issue just now, sorry about that.

I'm viewing products in Sweden. links can either look like this if viewed in a browser (using .se instead of .com) https://www.amazon.se/LEGO-Plommonblomma-Blomsterprydnad-Underh%C3%A5llsfria-10369/dp/B00CALQB1E/?_encoding=UTF8&pd_rd_w=rymRx&content-id=amzn1.sym.02cf8378-4ac3-495a-bb29-abcb3fd080a9&pf_rd_p=02cf8378-4ac3-495a-bb29-abcb3fd080a9&pf_rd_r=4ZDVF09QGTQH8G2AR6V5&pd_rd_wg=WdA5q&pd_rd_r=8f647223-e937-4d58-868d-7e7c0cdc0f3b&ref_=pd_hp_d_btf_dtshoveler

Or if shared through the app they use this format: https://amzn.eu/d/9fKVwY6

Currently I have gotten a price update on an amzn.eu link even though I set the variable to "se" in the config file so both seem to work.