• Resolved Gerdski

    (@gerdski)


    Hello,

    we have changed some things in the checkout and moved messages and stuff from the top left to the right. Points and Rewards doesn’t appear to like that and gives us plenty of identical messages in the form of “Would you like to redeem X Points for a discount of Y?”, at the top, at the bottom, and on the right.
    The only way to get rid of that (in my opinion) is to deactivate these messages completely and recreate it by hand, only once, on the right. Therefore I need some variables, and I cannot get them ??

    In the function “generate_redeem_points_message()” the message is created. It fills 3 variables in “Would you like to redeem {points} {points_label} for a discount of {points_value}?”

    I’d like to use these 3 variables points, points_label and points_value in a custom function in thechild theme’s functions.php…but I cannot get them out of the generate_redeem_points_message() function.

    Putting “global $new_variable” at the top of generate_redeem_points_message() and my_custom_function() does not work.

    Who knows how to do that?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello ,

    Thank you for using our plugin,

    In reference to your query , we would like to inform you that there are multiple notices our plugin shows on cart and checkout page and we have provided a setting to disable and enable all these respective notice on our plugin settings.

    Also can you please share a screenshot of how it is appearing on your end as you told us that you can see the notice in multiple section of a page .

    Regards

    Thread Starter Gerdski

    (@gerdski)

    OK, here is a screenshot, hope you can see it. Note the 3 different occurrences of the Message, marked in orange. The occurrence on the right is probably the result of our custom code. The only thing we want is this one occurrence, not the top and not the bottom. Thanks ??

    Plugin Author WP Swings

    (@wpswings)

    Hello ,

    Thank you for sharing the screenshot,

    The issue seems might be coming due to conflict of theme so please run a test by changing the theme to default woocommerce theme and then check whether you are facing same issue or not.

    Regards

    Thread Starter Gerdski

    (@gerdski)

    I am sure it does come from a theme conflict ??

    We have changed the theme because we wanted the Coupon Redeem Box on the right in checkout.
    Since then, multiple instances of the same messages pop up in 3 different places, but we only want it once on the right.

    Maybe the solution is what I wrote in the first question…deactivating the function/s in your plugin and recreating the message. You might be able to help me with it ??

    Thanks!

    Plugin Author WP Swings

    (@wpswings)

    Hello,

    Please raise a ticket from here https://wpswings.com/submit-query/ and the technical team will check this issue on their end and will assist you in resolving the issue.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.