same issue as #4005 but on different template.
Merge pull request #4013 from bernardpeh/woocommerce-master

same issue as #4005 but on different template.