Home Forums WC Vendors Pro Support Removal of currency symbol in frontend add porduct page

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #57498
    Jaypreet Thukral
    Participant

    Hello,

    I would like to remove the currency symbol at the frontend add product posting page for all the vendors.

    Also I want to add one line above regular and sale price and that will be “enter price in US $ only”

    Kindly guide how may I do this.

    Thanks
    Jay

    #57504
    Anna
    Member

    Hello,
    Filters– yay!
    For removing the currency symbol- you need to re-name the title for those fields. In the title/label you can also add the info/instructions.
    To do that, you’ll need to use these filters: wcv_product_price and wcv_product_sale_price

    You create your custom label for your filter. Change the LABEL.

    Then you add that to your theme/child theme functions.php

    Theme/child theme functions.php:

    https://gist.github.com/fervous/68dfcde92dd5d5fb13be5f1746e375f1

    #57693
    Jaypreet Thukral
    Participant

    Hello,

    I am not a tech savvy and also not a expert in coding. But what I understand as per logic is this.

    This change has to be done in frontend product posting which is a part of WC vendors then why the change has to be done in child theme.

    I tried reading the product-edit.php in provendor plugin and also found the price line but was not sure what change I have to do in that ?

    Kindly guide.

    Thanks

    #57702
    Jaypreet Thukral
    Participant

    Hello,

    Well I have done some changes (highlighted in red) screenshot below.

    Also i didn’t find the route to change the label. What I found is the code below:-


    Please Note:- Ignore the currency symbol below and enter price in United States Dollor only.

    I added a note here and it is just showing where I wanted it to show. But that currency symbol is just there.

    I added these “wcv_product_price and custom_wcv_product_price –>” but they didnt do anything.

    Am i missing on something?

    Kindly guide
    Thanks
    Jay

    #57740
    Anna
    Member

    Hello,
    All you should need to do is put the code I gave you into your theme/child theme functions.php file.
    Copy and paste.

    The changes are being made with filters, not a template edit, so the code is done via php and placed in the theme or child theme functions.php file.

    #57787
    Jaypreet Thukral
    Participant

    Hello Anna,

    As per your guidance I have tried doing changes in the functions.php of my parent theme but it did not work.

    Then I tried in child theme and vola… It worked. Thank you.

    The only doubt I have is once my child theme is updated I think I will loose these changes so every time I have enter this code? is it correct?

    Thanks

    #57801
    Anna
    Member

    Hello,
    No- that’s why you use a child theme.
    If you were putting the changes in the PARENT theme, that’s when you would be at risk of losing them.
    If you put the code in the functions.php of the CHILD theme, then when you parent theme updates, or WC Vendors & WC Vendors Pro update, your changes will stay int he child theme.
    That’s essentially the purpose of a child theme- to modify in a way that will allow the parent theme to update, and allow you to retain your modifications when an update occurs.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.