Nopcommerce 4.5 - Create a plugin to disable reward points for a specific customer role - asp.net

I need to create a plugin to disable reward points for a specific customer role.
The plugin must give me the option in the reward points settings to give me something like this to select customer role(s).
Any clue on how I can do it?
No idea how since I am new to Nopcommerce.

The same plugin configuration has been used in Nop.Plugin.DiscountRules.CustomerRoles. You can get all the functions and code from that plugin.
Nop.Plugin.DiscountRules.CustomerRoles GitHub link
Before starting development of the plugin, you can see the source code and get ideas from default NopCommerce plugins
NopCommerce Default Plugins GitHub link

Related

WooCommerce Default Pages NOT showing up on brand new site

I recently installed WooCommerce on a brand new Wordpress website. I went through all the steps as directed exactly in this tutorial I found on YouTube How To Create An eCommerce Website With Wordpress 2021 -ONLINE STORE- (Easy For Beginners)
I then needed to edit the cart, shop, account, etc. pages. The only problem I have is that those pages did not generate when I installed WooCommerce. They do not exist. I have tried multiple ways to solve my problem. One of which is a tool that WooCommerce has in their plugin. If I go to WooCommerce-->Status-->Tools and scroll down I have an option that says, "Create default WooCommerce pages
Note: This tool will install all the missing WooCommerce pages. Pages already defined and set up will not be replaced."
This option DOES NOT install missing WooCommerce pages.
WooCommerce-->Settings-->Advanced No Default Pages:
Appearance-->Menus-->View All No Default Pages:
How can I fix this so that I can create the needed default pages and continue creating my online store?
Thank you!
There are multiple ways of solving this issue. But following the guideline on woocommerce website, please try manual instructions below.
First make sure there no default pages, Cart, Checkout and My Account page exists, Not as publish or draft or event in trash.
Then go ahead and create new pages for each as mentioned below.
Create a cart page and paste the shortcode [woocommerce_cart]
Create checkout page and paste the shortcode [woocommerce_checkout]
Create My Account page and paste shortcode [woocommerce_my_account]
This should do the trick, Also make sure that in permalinks options available under Settings -> Permalinks and make sure Post Name is selected and click save changes.
If this does not work for you, do post a comment with exact screenshot of the issue.
Article link on official website - https://docs.woocommerce.com/document/woocommerce-pages/

Which one is the best WordPress plugin for test system with separate price for every test

I have developed a WordPress website, I am being asked to find and integrate a plugin for the test system. Plugin requirements are as following:
The plugin will have multiple choice questions and will have the option to have more than one test in it.
every test will have a price and payment option with be pay with paypal.
we can change passing percentage.
only logged in user can perform the test. Only user and admin can see the result.
Please tell me if you have this kind of plugin, I am stucked and cant proceed., please please please point me to the solution if you can.,
As per your question,
you have to create new custom wordpress plugin and functionality because you can not get the ready plugin for this requirement.
In case, you can use the ready the plugin then you have to customise custom functionality as per your requirement.
So, I will suggest to you. you can create new plugin then user can easy to use.

how to create plan subscription in wordpress plugin so no one can play with the code?

I am confuse about plan subscription development in plugin, because if user download the whole plugin coding file then he/she can change the any of the code in plugin.
so how can develop this type of plugin. And also backupbuddy, gravityforms also make this type of annual subscription plan and if user make to code change in backupbuddy then deactivate the plugin but i can't understand the code which type of security in those plugin.
So, please suggest me how to develop.
I think Backup-buddy and gravity forms are used "filemtime" function for security purpose,because there are no any way to prevent user to modify code. because wordpress plugin are fully under control in user (open source).

provide automatically updates to pro plugins in wordpress

I want to implement WordPress pro plugin automatically updates features.
my plugin is the pro so it not available in WordPress plugins directory.
I found some solution but when I provide updates features to the user at that time WordPress provides view version information link and open up one model with plugin updates detail but also contain Install plugin button.
I don't want that button to display when WordPress open model for plugin updates information.
please help me I have spent too much time on Google and not found any proper solution for that.
Any kind of help is appreciated.
thanks

wordpress restrict pulgin installation to those who have a unique code

i want to make an wordpress plugin, and to put it public, but i want that only the users that have a certain unique code to be able to activate it.
is there possible using the wordpress api to ask for a unique code at plugin activation (and to condition the plugin activation by this code)? I searched wordpress codex, but nothing found.
thanks a lot!
This sounds like the old akismet plugin which required users to register for an API token. You can as part of your plugin require users to enter settings and at this point prompt them to register for an API key.
See the WordPress codex for adding an options page.
Also see this example for a good example of hooking into the plugin activation:

Resources