mbraasch
Member
Posted 10 months ago #
Messed up the title but couldnt change it.
I would like to change the displayed SKUto Part #. I found its location within class-wc-product.php but when I change this it doesnt change on the visual page.
Site is under construction:
http://www.trzmotorsports.com/wordpress
I'm not a real tech guy, but this is one of the only parts that have stumped me so far.
Any help would be great, thanks in advance
http://wordpress.org/extend/plugins/woocommerce/
ryansales
Member
Posted 10 months ago #
You changed the following line:
'sku' => __( 'SKU:', 'woocommerce' ) . ' ' . $variation->get_sku(),
to
'sku' => __( 'Part #:', 'woocommerce' ) . ' ' . $variation->get_sku(),
Then make sure you dump your browser cache, your wordpress cache if you are running one, and any other caches (such as Cloudflare).
mbraasch
Member
Posted 10 months ago #
That's what I thought would do it, but it does not change it. It's the only file I could find with "SKU:" but there must be something else.
I dont know how to clear the wordpress cache. Does woocommerce using caching? That could be a problem I suppose. I have cleared the browser cache. Thanks
ryansales
Member
Posted 10 months ago #
mbraasch
Member
Posted 10 months ago #
I have no idea what "clear transients" are.
I could only find one file previously in the woocommerce plugin editor. I just realized that each file you click on the right, when opened, also displays other files which werent on the original files list.
I found the file which needed to be modified (meta.php)as you said in the directory:
woocommerce/templates/single-product/meta.php
Thanks! This file also allowed me to remove the category listing that kept showing up after the SKU field