Title: Create a 2nd Buy Button
Last modified: February 21, 2017

---

# Create a 2nd Buy Button

 *  [ps23611](https://wordpress.org/support/users/ps23611/)
 * (@ps23611)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/create-a-2nd-buy-button/)
 * Hello,
 * I hope I’ve posted this in the correct forum, apologies if not.
 * I’m creating a Sunglass Shop website which will allow customers to buy with or
   without a prescription.
 * Basically, I need a second ‘Buy with prescription’ button on product pages, this
   will create a pop up with a selection of drop downs/options to enter and will
   amend the price accordingly.
 * Does anyone know if there is a plug in that could do this or would it have to
   be created?
 * Many thanks in advance.

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/create-a-2nd-buy-button/#post-8832029)
 * Are you using the WooCommerce plugin? Have you considered product variations 
   as a way to accomplish this?
 * There’s two ways to add content to a product page, by hook or by customized template.
   Using a hook is preferable. Examine the product template for possible hooks. 
   Any function called on the template could also have a hook that may be usable.
   You would need to locate the function’s source code to see if hooks are available.
 * You also need a hook to save any data entered (unless saved via AJAX), such as“
   publish_product”.
 * If you need more specific advice or plugin recommendations, please use the plugin’s
   dedicated support forum. For WooCommerce, go to [https://wordpress.org/support/plugin/woocommerce/](https://wordpress.org/support/plugin/woocommerce/)
 *  Thread Starter [ps23611](https://wordpress.org/support/users/ps23611/)
 * (@ps23611)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/create-a-2nd-buy-button/#post-8834733)
 * Many thanks for the reply.
 * I do have WooCommerce installed so I will look to see if I can do this using 
   variations.
 * Thanks

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

The topic ‘Create a 2nd Buy Button’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [ps23611](https://wordpress.org/support/users/ps23611/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/create-a-2nd-buy-button/#post-8834733)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
