Title: Activate function on click
Last modified: February 13, 2024

---

# Activate function on click

 *  Resolved [inforcomweb](https://wordpress.org/support/users/inforcomweb/)
 * (@inforcomweb)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/)
 * Good afternoon
 * Is there any way, that clicking on a button just activates the plugin function?
   Normally my students buy their course at a fixed price, but some of them have
   access to special prices, and I want them to set the price. Is there any way 
   to do it? Since when I have one it works, it sends directly to the payment page.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/#post-17420547)
 * Hi,
 * Thank you for your notification. May I ask you to describe the scenario of how
   you would like this button to work? Would this button be visible only to a specific
   group of users, or maybe to all? Would it be visible immediately next to the 
   price, or would you have to tick a checkbox, for example? Please let me know.
 *  Thread Starter [inforcomweb](https://wordpress.org/support/users/inforcomweb/)
 * (@inforcomweb)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/#post-17422247)
 * It is a Courses page (We sell Psychology courses) and in one page we show in 
   detail what will be given and in a sidebar there is a button to buy the course,
   this button has the link [https://www.mipagina.com/checkout/?add-to-cart=50310](https://www.mipagina.com/checkout/?add-to-cart=50310)
   this sends me directly to the payment page. When I activate the plugin, the link
   does not work, it sends me first to the shopping cart, but the shopping cart 
   appears empty.
 * I have tried other similar plugins and the same thing happens, I understand that
   it is because its function is like that, but if I go to see the product page 
   and I put a price and I click on buy if the purchase proceeds normally.
 * What I need is that when I click on a button, just activate the function that
   the same user can place the price and make a purchase, or in any case that the
   link [https://www.mipagina.com/checkout/?add-to-cart=50310](https://www.mipagina.com/checkout/?add-to-cart=50310)
   works with the base price of the product.
 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/#post-17435452)
 * Hi,
 * Thank you for explaining how this should look and how you would like it to work.
 * Unfortunately, the plugin doesn’t support this yet. The addition of this feature
   is reported to programmers, but we do not know the date of its implementation.
 * I will add you to the list of people interested in this functionality, and I 
   will inform you when it happens.
 * In case of further questions, please contact me.
 *  Plugin Support [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * (@dominikl65)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/#post-17448614)
 * Hi,
 * We talked to the team about this functionality and have a few questions:
    1. **is there any way, that clicking on a button just activates the plugin function?**–
       What button are you talking about, do you want us to add a button on the store
       page?
    2. **some of them have access to special prices, and I want them to set the price**–
       here, would you like the button to be dependent on the user role in the store,
       possibly making the product variant available for the user role?
    3. with what value should the Custom Price product be added to the shopping cart?
       Where could customers set this value?
 * Please let me know.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Activate function on click’ is closed to new replies.

 * ![](https://ps.w.org/custom-price-for-woocommerce/assets/icon-256x256.png?rev
   =2712756)
 * [Custom Price for WooCommerce](https://wordpress.org/plugins/custom-price-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-price-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-price-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-price-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-price-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-price-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dominikl65](https://wordpress.org/support/users/dominikl65/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/activate-function-on-click/#post-17448614)
 * Status: resolved