Title: Missing Prefix
Last modified: November 13, 2018

---

# Missing Prefix

 *  Resolved [domino4evers](https://wordpress.org/support/users/domino4evers/)
 * (@domino4evers)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-prefix/)
 * Hi there
 * Great plugin! But missing the Prefix, I am using to show the text “Without Vat.”

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Altos](https://wordpress.org/support/users/sefin/)
 * (@sefin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-prefix/#post-10878439)
 * You can do it with our plug-in also.
 * This is an example:
 *     ```
       function change_product_price_html($price){
   
       	$newPrice 	 = "Text Before Price";
         	$newPrice 	.= $price;
         	$newPrice	.= "Text After Price";
   
       	return $newPrice;
       }
   
       add_filter('woocommerce_get_price_html', 'change_product_price_html');
       ```
   
 * To make it work, you must append the code to your “/wp-content/themes/YOUR_THEME/
   functions.php” file.
 * Let me know if this solved your issue.
 *  Thread Starter [domino4evers](https://wordpress.org/support/users/domino4evers/)
 * (@domino4evers)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-prefix/#post-10879056)
 * Well
 * It gives me an error
 * function change_product_price_html($price){
    $newPrice = "Text Before Price";
   $newPrice .= $price; $newPrice .= "Text After Price"; return $newPrice; } add_filter('
   woocommerce_get_price_html', 'change_product_price_html');
 * functions.php on line 1088
 * It’s this line: “$newPrice = "Text Before Price";”
 *  Plugin Author [Altos](https://wordpress.org/support/users/sefin/)
 * (@sefin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-prefix/#post-10884129)
 * You should probably check for syntax errors, but we can’t tell exactly were the
   problem is, with this information.
    What type of error it gives to you can you
   specify it?
 *  Thread Starter [domino4evers](https://wordpress.org/support/users/domino4evers/)
 * (@domino4evers)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-prefix/#post-10885323)
 * Got it. It was my copy / paste skills
 * Sorry
 *  [slovack](https://wordpress.org/support/users/slovack/)
 * (@slovack)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/missing-prefix/#post-11102984)
 * HI there, sorry im new in php but need the same prefix after price (incl VAT)
   
   where exactly should I paste this code in functions.php?? Thanks!
 *  Plugin Author [Altos](https://wordpress.org/support/users/sefin/)
 * (@sefin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/missing-prefix/#post-11112389)
 * Hello!
    It’s usually paste it at the end of the file. It’s a code standalone,
   so It’s not linked to some particular code in the file. We suggest to paste it
   at the end of the file in order to don’t mixed it with other code. I hope this
   information can help you. Let me know if the issue remains. I’ll be waiting for
   your feedback.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Missing Prefix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-price-calculator_cbcbcc.svg)
 * [WooPrice Calculator](https://wordpress.org/plugins/woo-price-calculator/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-price-calculator/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-price-calculator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-price-calculator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-price-calculator/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Altos](https://wordpress.org/support/users/sefin/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/missing-prefix/#post-11112389)
 * Status: resolved