WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Price depends on gold price (8 posts)

  1. RobinWebber
    Member
    Posted 1 year ago #

    Hi there,

    I would like to know if it's possible to let the price of WooCommerce products depend on something fixed, like the gold price.

    Is it possible to add a field to WooCommerce to add the fixed (gold) price which calculates the price of the products like for example 2.5x the fixed price?

    Hopefully someone can help!

    https://wordpress.org/plugins/woocommerce/

  2. bowenac
    Member
    Posted 1 year ago #

    Yes you could create a template override and add a custom feild maybe called Gold... Then where the price is displayed multiply that by the value of the gold field value...

  3. RobinWebber
    Member
    Posted 1 year ago #

    Hi bowenac,

    Thanks for the quick reply! Could you explain yourself a bit more? How could I create a template override so that the price will be used, also in the following pages?

  4. bowenac
    Member
    Posted 1 year ago #

    You want me to write the code for you? I explained myself perfectly fine. Look up creating template over rides. Or contact me directly and I can help you with this.

  5. RobinWebber
    Member
    Posted 1 year ago #

    Okay, thank you! I'll figure it out.

  6. bowenac
    Member
    Posted 1 year ago #

    Did you figure this out? Just wanted to let you know you should be able to do this using filters as well.

  7. RobinWebber
    Member
    Posted 1 year ago #

    Hi bowenac,

    Yes I think I've found it. Thanks for the tip!

  8. arslanhaider01
    Member
    Posted 6 months ago #

    hi can you guys explain me a little more??? I am developing a jewlery website

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic