• 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

    (@bcworkz)

    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://www.ads-software.com/support/plugin/woocommerce/

    Thread Starter ps23611

    (@ps23611)

    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.