Search the Community
Showing results for tags 'word'.
-
Ok well turns out i didnt do it correctly. Supposedly i should have done it via the hook so it changed it on all pages where price was shown (common sense i guess). Now im a little stuck editing the get_price_html to include price per label. Anyone can see where im going wrong?? add_filter( 'woocommerce_get_price_html', 'chris_price_html', 100, 2 ); function chris_price_html( $price, $product ){ $priceperlabel = 'each'; //write logic to get the perlabel here return str_replace( 'get_post_meta', 'get_post_id()'.$priceperlabel, $price ); }
-
I just wanted to know why people get offended if someone call them bro? though we know in real its not but why get offended? its just a question i wanted to know for sometime )
-
I've got a function in my WordPress functions file that sends a Word doc based on what venue the ordered product is from. However I also need to be able to paste variables such as the customer name and others onto the specified word document. It also needs to be in specific places. How can I go about doing this? Please let me know if you have any idea or don't understand me! Thanks!
