• I am working with wp e commerce trying to build a custom store. I’m guessing my issue has to do with somewhere in a PHP file.

    If you go here you can see what I am currently working with:http://feeltheneed.net/blog/products-page/mens/one-love/

    What I would like to do seems very simple, but I have had a hard time fixing it (new to PHP). I want to get rid of the “from” in front of where the price is shown. I looked in the PHP file I am editing and there is no sign of a “from” would this be coming from wherever the file is getting called from? Sorry if my lingo isn’t right, again I am new to all of this. Hope this is an easy fix and I can get it taken off.

    Appreciate any help! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The from is likely being returned from the ecommerce ‘get price’ functions if it is not in the page that renders the output.

    There would be a PHP function call for the price, and the function called is where you will find the ‘From’ text?

    It would be worth visiting the ecommerce plugin developers website and see if they have a forum, and see if the question has been addressed there.

    Contact the plugin author and asked if this could be added to the setup options.

    If the plugin folder comes with a language file, search this for ‘From’ and that will tell you the file and line number.

    Example Twenty Ten /langages/twentyten.pot search ‘comments’:

    #: loop.php:99 loop.php:122 loop.php:164
    msgid "% Comments"
    msgstr ""

    From this we would see that it is one file three times and the line numbers.

    The other option is to download the plugin folder and files, open all files in something like NotePad++ and search in ‘all files’ for the word ‘From’ or __(‘From’

    Then consider if it is worth it, everytime the plugin is upgraded you would have to remake the change.

    HTH

    David

    Thread Starter ftntravis

    (@ftntravis)

    Thanks for the response! I appreciate it.

    Yea it ended up being in the product-template.php file. I did a search for the word, it came up, I removed it and it worked! Very happy to have gotten rid of this, I just didn’t like that it had that in front of the price. Again thanks for your help! Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue getting rid of word in PHP’ is closed to new replies.