Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Show price and tax including price for every variant of configurable product

    General Discussion
    3
    4
    671
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ionutbalasanu last edited by

      Hello! In my shop i show two prices : normal price and tax-included price. For simple products i used getTaxInclusiveRate function to get the tax-included price, but this function does not work for configurable products. I need to write a function wich returns tax included price for every variant of an configurable product.

      Has anyone done that and can help me?

      L 2 Replies Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        What problem are you facing in configurable product?

        1 Reply Last reply Reply Quote 0
        • L
          lorna-luxe @ionutbalasanu last edited by

          @ionutbalasanu said in Show price and tax including price for every variant of configurable product:

          Has anyone done that and can help me?

          For products that can be customized, you'll need to go through each child variant, get its final price, and then apply the tax rate by hand instead of using getTaxInclusiveRate. This manner, you can figure out the right price for each variety that includes taxes and send them back as a list.

          1 Reply Last reply Reply Quote 0
          • L
            lorna-luxe @ionutbalasanu last edited by

            @ionutbalasanu
            For products that can be customized, you'll need to go through each child variant, get its final price, and then apply the tax rate by hand instead of using getTaxInclusiveRate. This manner, you can figure out the right price for each variety that includes taxes and send them back as a list.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post