• Resolved ringelbach

    (@ringelbach)


    Hi,

    I am using a special Theme, which has change the settings under the Product-Tab of WordPress.

    So this Plugin use the Product-Price from the WordPress standard Price row.

    How I can redirect it to the Price row from my Theme?

    Because at this moment my wishlist show me that all Products are for free ??

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Well, usually when any piece of code (theme or plugin) customizes products’ prices, it should do that in a way that ->get_price() method returns the correct output; otherwise this could lead to major problems

    Unfortunately, not knowing for sure what your theme does to change products’ prices, I cannot provide any specific suggestion
    Your best option is to override wishlist-view.php template inside your theme’s or child theme’s directory, and change line 199, that prints the price
    You could also avoid overriding the template, and use yith_wcwl_item_formatted_price filter instead
    In both cases, anyway, you’ll need to know a way to retrieve correct product price via code, starting from the product ID.

    Thread Starter ringelbach

    (@ringelbach)

    Yes they have change the Function to get_product_price ??

    Thanks a lot I have it now!!!!!!

    But can you tell we what I have to do that my Child-Theme take affects of the wishlist-view.php?

    How I have to rebuild the path in my theme?
    Or it is enough to copy this PHP-File to /theme/childtheme/

    Plugin Support Antonio La Rocca

    (@therock130)

    But can you tell we what I have to do that my Child-Theme take affects of the wishlist-view.php?

    In order to override a default plugin’s template, just copy original file from wp-content/plugins/yith-woocommerce-wishlist/templates and paste it under wp-content/themes/<your theme or child theme directory>/woocommerce/
    From that moment plugin will automatically load template included in your child theme, and any change applied to that version will be reflected online

    Hope this answers your question ??

    Thread Starter ringelbach

    (@ringelbach)

    Thanks!!!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect the Unit-Price Variable to another reference’ is closed to new replies.