How can i create envato purchase code verification in php for WordPress Plugin - php

I have WordPress Plugin and I want to put a license code for activation.
what i want to do is
1- When the customer puts the code show's the code is validated.
2- If the code time expires-> give a warning.
3- Also how do I send a warning sign that there is an update for my plugin ?
I searched on https://build.envato.com/
But I didn't understand anything. If someone here can help, thanks

Related

Woocommerce default emails design not working

I have enabled all emails from admin end woocommerce, but when I submit order the design of the email is not working I mean it's not showing the original default woocommerce emails design it's showing something like paragraphs I have tried to customizations but nothing happens. please guide me where I am making mistakes the email screenshot given below:
Even where from its coming, I have tried to find but no solution gets. I have tried emails customizations, templetes plugins as well nothing going to work. Also, my woocommerce plugin is the latest as well. Please suggest me.
Thanks

Dragon Pay Payment gateway extension for AbanteCart

Here is the link of developer section of Dragonpay payment gateway which shows way of integrating to the ecommerce website. But I am not getting the right way that how can I do it
http://www.dragonpay.ph/developers
I want to integrate this gateway in my Abantecart based website. If Any body could help creating extension for it or showing me the way to get it done...that will be of great help.
I want it done in php
Thanks in advance
Just copy the same files of the Cash on Delivery plugin which is already present in AbanteCart. Make Changes to XML and replace Cash On delivery with Dragonpay. Then in place of defaultcod.tpl create your own dragonpay.tpl file. Add in this file the form with your button (Pay with dragonpay button.) Now go to confirm.tpl file present in storefront>view>defaulthtml5>checkouts and add the default dragonpay php code there. Now you are through.
You have just created a dragonpay plugin for AbanteCart.
It is sort of trick , dont rely on it and suggest better answers.
For now this trick is working perfectly fine for me.

Show Registration form in front end wordpress

I've searched and search but to no avail. I cant find a simple way to have the registration form on a page in my wordpress site. I've seen a lot of plugins that kind of do it but they also make you customize the form or have a gazzlion bugs in them. I just want to reproduce the register form that appears at:
www.example.com/wp-login.php?action=register
I dont want a members plugin either as I am in the midst of creating my own CRM type plugin.
Here is an (old) article about customizing your registration / login form:
http://digwp.com/2010/12/login-register-password-code/

Custom Wordpress 3.5.2 plugin "You do not have sufficient permissions to access this page."

I have been trying to integrate a custom Wordpress plugin called custom_rss into Wordpress by following http://net.tutsplus.com/tutorials/wordpress/creating-a-custom-wordpress-plugin-from-scratch/.
I have successfully achieved the proper URL in the menu items for settings. However, when I click on the custom_rss link under settings, the url that loads the plugin just returns content with the text You do not have sufficient permissions to access this page.. I am logged in as the super user admin.
The script that fires when the menu item is clicked is wordpress/wp-admin/options-general.php which passes page as its parameter :options-general.php?page=CustomRSSGenerator.
Does anyone have any ideas about how to allow privileges for this page or better yet, has anyone found out how to do a custom plugin for Wordpress 3.5.2 who can offer a solution to my problem? This has been beating me for about a week now and any advice is appreciated.
So there is a solution!
If you read the comments below the tutorial you will find a comment by a Robert character which states:
Great article. 2 things:
1. The following code produces an error in Admin panel, that makes the page inaccessible:
add_options_page("OSCommerce Product Display", "OSCommerce Product Display", 1, "OSCommerce Product Display", "oscimp_admin");
ERROR: "You do not have sufficient permissions to access this page."
To remove this error, modify the above code to:
add_options_page("OSCommerce Product Display", "OSCommerce Product Display", 1, "OSCommerce_Product_Display", "oscimp_admin");
That change will help you display the page correctly when the link
"OSCommerce Product Display" is clicked under the "Settings" menu
option. Hope this helps anyone who experienced a problem with the
code.
"The first parameter of this function is the option name which will be sued later to uniquely identify this option and its value." It
should have been "used" but incorrectly spelled as "sued". Not a big
deal, but just wanted to let you know.
Posting on this old topic because it was the most relevant Google result when I was searching after running into a similar problem so I figured I'd add my fix.
I had a really similar problem where any change I made to the page slug resulted in an insufficient permission error. At first I thought my page slug must be getting referenced somewhere else in my code so I searched and found no other references. I also tried stripping away every line of code outside of the basic plugin instantiation code but it still didn't work.
The fix was to deactivate then reactivate the plugin (within admin UI). I'm guessing upon plugin activation wordpress adds various entries to it's DB; some of which are likely your plugins name, menu page names, slugs, etc. After reactivating the plugin, the exact code that previously threw permission errors now worked perfectly.

add a new custom field to the register pages

I'm using Opencart 1.5.5.1.
I have researched for about 2 days now on how to add a new field to my registration pages (create new account, register checkout and guest checkout) but without any luck. It seems nobody has done a step-by-step tutorial on how to do this seeing that (as I understood) it is not that simple.
My question: How can I add new required fields to all my register pages in Opencart 1.5.5.1?
I wrote a post on how to add re-captcha captcha field in opencart registration page sometime back. Please have a look at this. You can follow this post and achieve what you want with slight modifications.

Categories