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.

Revisions

  1. isakib revised this gist Nov 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Backpackbang conversion
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    actual_price = $("#priceblock_ourprice").text().replace("$", "");
    actual_price = $("#priceblock_saleprice").text().replace("$", "");
    a = Number(actual_price)
    fees_of_bpb = a * .21
    sales_tax = a * .09
  2. isakib created this gist Nov 2, 2016.
    10 changes: 10 additions & 0 deletions Backpackbang conversion
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    actual_price = $("#priceblock_ourprice").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.