Announcement

Collapse
No announcement yet.

BasketItem_Update_Pricing() Not Working After Precision Pricing Update

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    BasketItem_Update_Pricing() Not Working After Precision Pricing Update

    mvt:do BasketItem_Update_Pricing() function not working after update 10.11.

    I tried formatting pricing to 8 decimal points but that did not correct the price, retail, base_price update issue.

    I added a string '000000' to the updated_price value and expect it to be converted to a number.

    Function returns '0'.

    What else could it be?

    http://www.alphabetsigns.com/

    #2

    I noticed the Improvement Notes MM-14852 Database Layer: BasketItem_Update.

    Is there a BasketItems table structure update that requires the item object schema to be updated?
    http://www.alphabetsigns.com/

    Comment


      #3
      alphabet Here is the link to the updates regarding BasketItem_Update:

      https://docs.miva.com/developer/deve...deritem_update

      You can also find those functions in the LSK here:

      BasketItem_Update_Pricing: https://github.com/mivaecommerce/miv...240C21-L240C46

      BasketItem_Update: https://github.com/mivaecommerce/miv...214C21-L214C38
      Nicholas Adkins
      Technical Training Specialist / Miva, Inc.
      [email protected]
      https://www.miva.com/mivalearn

      Comment


        #4
        Thank you, I was able to get it working.

        I used the v10_BasketItem_Update_Pricing() function passing in the l.settings:original_basketitem and the l.settings:basketitem varables directly.

        I could not understand how to pass the l.settings:original_basketitem variable to the backward compatible BasketItem_Update_Pricing() function.

        It works, thank you for the quick response!

        http://www.alphabetsigns.com/

        Comment

        Working...
        X