Skip to content

Instantly share code, notes, and snippets.

@isakib
Last active November 20, 2016 03:13
Show Gist options
  • Save isakib/e006a6ec16131bbe4fe647b2b31cf4af to your computer and use it in GitHub Desktop.
Save isakib/e006a6ec16131bbe4fe647b2b31cf4af to your computer and use it in GitHub Desktop.
actual_price = $("#priceblock_saleprice").text().replace("$", "");
a = Number(actual_price)
fees_of_bpb = a * .21
sales_tax = a * .09
total_price_in_usd = fees_of_bpb + sales_tax + a;
total_price_in_bdt = total_price_in_usd * 78.33
Math.ceil(total_price_in_bdt)
#selector can be changed, based on product on deal or regular price
#slight price varies -- which is about 5 to 10 tk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment