Remove SKU from email

override email-order-items.php in your template and comment out the SKU line.

To remove SKU from invoice, override print-content.php (from the Print Invoice and Delivery Note for Woocommerce Plugin) and comment the content with the dt and dd element on line 199 and 200.

Remove SKU from order invoice and email in virtuemart

Here are the list of files to modify to remove sku from virtuemart, order, invoices and emails:






When modifying tables, change the product name column to colspan=”3″ where you find colspan=”2″

Make sure to create overrides in your template

If your template already have overrides for those then save your files before updating the template as they would be overriden.

Ideally make a copy of your template to not accidently erase your modification when updating your template.

Date and time in php: common function

Convert a date in a timestamp:

strtotime ( string $datetime [, int $now = time() ] ) : int

Add an arbitrary amount of time in a string format:

strtotime("+1 week"), "\n";

$availability_date=get_post_meta( get_the_ID(), 'availability date', true );
$date_string.=" +3 weeks";
$date=new DateTime;
$diplay_time= date('d-m-Y',strtotime($date_string)) ;

Adding a custom field in a product page

1- Add a custom field in the backend

*Add a custom field in the product data section of Woocommerce product.
function cf_create_custom_field(){
 $args= array(
  'label'=>__('Custom Text Field Title','cf'),
  'description'=>__('Enter the description of your custom text field','cf'),


You can find the list of accepted parameters here:


*Save the custom field
function cf_save_custom_field($post_id){
*Display custom field on  the front end
function cf_display_custom_field(){
  global $post;
  //Check for the custom field value
  if ($title){
   //Only display our field if we've got a value for the field title
   '<div class="cf-custom-field-wrapper"><label for ="cf-title-field">%s</label><input type="text" id="cf-title-field" name="cf-title-field" value=""></div>',

Writing content

In case you have no idea about the content a page should have but you have to write it anyway, because you client absolutly want it or because there is an obvious use for such a landing page but you have no inspiration on the content, I present you with a methodology to write a text about a given topic whithout prior knowledge:

Take the few first search result pages and use it as inspiration for the page structure and content. Once you have an overview of the different elements that needs to feature on the page. You will have a better idea on how to layout the page.

With the example gathered from to pages you can now write a text that presents your topic/product/category correctly, using appropriate keyword and satisfying customer expectation and ansewering customer intent.

Even if the pages you use for inspiration or as source were ranking well they might be overooking important keyword or not be fully satisfying for the customer. So don’t hesitate to take further step in order to write better text using a more engaging layout.

Consult your analytic to find for user query using the target keyword(s) to check if customer have recurring question or associate your keyword with specific adjectives or query.