Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2399685
"X [product name] have been added to your cart" message does not display decimal
Closed

Comments

  • Nick started the conversation

    Hello,

    On a product page, if you add some items to your cart, Woocommerce will automatically generating a message saying "X [product name] have been added to your cart". 

    I am using your plugin to allow people to pick decimal quantity. But when they chose a decimal quantity to add in the cart, this quantity is not the one displayed in the Woocommerce message. It gets cut to the integer (not rounded up or down).

    Screenshot attached.

    Would you be able to fix it or provide me the code to add so that this message display the exact quantity added ? 

    Thanks

  •  767
    Janilyn replied

    Hi Nick, 

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. Please stay in touch as he might need discuss further with you. 

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Nick,

    Please update our plugin to the latest version 1.2.3 to fix this issuesmile.png

    Best regards,
    Dustin

  • Nick replied

    Hi Frankie,

    Thanks for your quick answer - I have to say I am impressed by the support here :) It does work fine now. 

    One last question - this change seems to overwrite the default message from Woocommerce, and therefore the traduction does not work anymore. I have found the file "wpc-product-quantity.pot" and edited my own "fr.po" and "fr.mo". Put them back in "languages" in the app file but it does seem to work.

    Could you please tell me if the naming of these files is OK, and where should I put them ?

    Thanks

  •  1,226
    Dustin replied

    Sorry for the late reply!

    You don't need to edit the file, please read this article https://wpclever.net/faqs/plugin-translation

    Best regards,
    Dustin

  • Nick replied

    Thanks :) All good now we can close the ticket