marotiem
Forum Replies Created
-
Thank you Daniyal. It cleared for me. Thank you for all your help.
Actually, I achieved everything I wanted with the Sell Content add-on. No custom code was needed. I have one more question. I do not understand how my balance is calculated. When I counted my points with the log entries I got a different number from what appeared in my balance. How is it possible? (I only use points).
I am not using woocommerce, nor any types of shopping plugins. That is why I need some modification in the code. The rewards I have are meditation type videos I recorded myself. When a client completes an online course, they get points through mycred. What I want is: with the points they have they can unlock the links to the meditation videos. It should work as clicking on a picture of the video that has a certain point value, mycred checks if they have enough balance, and if they do, points will be deducted and they receive the link in an email. If they do not have enough points in their balance, a message pops up: Insufficient balance, and points will not be deducted.
Hi! What I am trying to achieve is basically a point payment without a shopping plugin. I do not have an online store, but I want to give rewards for points to my clients. E.g. if a client completed a challenge, they receive 10 points. Then they can redeem their points on a page that contains reward items. If an item has a value of 10 or less, the client can obtain the item. If the item has a value of more than 10, the transaction would be declined. I found this code that is similar to what I need. I would like to ask, if it can be modified in a way that does not require a shopping plugin?
Code link: https://codex.mycred.me/filters/mycred_decline_store_purchase/
Hi!
This code you sent does not allow any kind of deduction. Even if the user has enough balance, no points are deducted.
When I paste this code, it says syntax error, unexpected end of file. Could you please correct the code for me and resend it?
Hi Tariq! Thank you for the code. It does deductions, but unfortunately it allows negative balance. What I need, is a code that does NOT allow negative balance, so when the user would like to acquire something that’s worth more points than the amount he has, the points will not be deducted, and an error message comes up. So deduction is ok, as long as the balance does not go below zero. Also, since I am using mycred link, I want the link not to redirect if balance is not enough.
Forum: Plugins
In reply to: [Evergreen Countdown Timer] timer not showing on existing pageHello,
I already fixed it in another way. That’s why it is visible. The old page still does not work, so I created a new page with the timer, and copied all the content from the old page, then changed the URL to the old page’s URL. What you’re looking is the new page. Not a good solution, but works.
Forum: Plugins
In reply to: [Evergreen Countdown Timer] timer not showing on existing pageHello,
Unfortunately, disabling Autoptimize did not solve the problem. I noticed though that when I switched from Default editor to Advanced editor on the new page, the timer disappeared and disabling Autoptimize made the timer visible again. But, it did not affect the appearence of the timer on the existing page. What else can I do to fix the problem?