Tagged: Labels
Hello,
Currently I only have the option to place “NEW” when am adding a product. I have the option to use additional labels aside “NEW”
How do I do this?
BR
Anthony
Site URL: hidden Theme version: 2.5 WooCommerce version: 4.3.1Hello,
Navigate to Dashboard->Products->edit product->Additional Products options-> and select yes for ‘Mark product as “New”‘
Regards,
Robert Hall.
Hello Robert,
Thanks for the reply. I know how to add “NEW” to the product image. What I need is how to implement the ability to add other labels such as “20% OFF”, “50% OFF” etc to the product image. We have a color tag sale which we run in our physical store and we wish to do same online.
To be more specific in addition to the label “NEW”, we need the ability the place following labels aside “NEW” on the product image when adding or editing a product-
Yellow label with 20% OFF as text
Blue label with 30% OFF as text
Green label with 40% OFF as text
Red label with 50% OFF as text
Thanks again.
BR
Anthony
Site URL: hidden Theme version: 2.5 WooCommerce version: 4.3.1Hello,
Unfortunately we don’t have such options.
You can try to use some third-party plugin to implement such functionality.
Regards,
Robert Hall.
Also you can try to edit labels by yourself in \themes\woopress\woocommerce\loop\sale-flash.php file
Regards,
Robert Hall.
Thanks Robert. I have edited that. I have also edited the style sheet. What other file should I edit so that I can select the relevant label under Additional Product Options when adding a new product?
Thanks again.
Anthony
Hello,
You may edit 950 line in /themes/woopress/framework/woo.php.
Regards,
Brian Johnson
I added a second option based on the “NEW” code
// **********************************************************************//
// ! Is product New
// **********************************************************************//
if(!function_exists('etheme_product_is_new')) {
function etheme_product_is_new( $product_id = '' ) {
global $post, $wpdb;
$key = 'product_new';
if(!$product_id) $product_id = $post->ID;
if(!$product_id) return false;
$_etheme_new_label = get_post_meta($product_id, $key);
if(isset($_etheme_new_label[0]) && $_etheme_new_label[0] == 'enable') {
return true;
}
return false;
}
}
// **********************************************************************//
// ! Is product Yellow
// **********************************************************************//
if(!function_exists('etheme_product_is_yellow')) {
function etheme_product_is_yellow( $product_id = '' ) {
global $post, $wpdb;
$key = 'product_yellow';
if(!$product_id) $product_id = $post->ID;
if(!$product_id) return false;
$_etheme_yellow_label = get_post_meta($product_id, $key);
if(isset($_etheme_yellow_label[0]) && $_etheme_yellow_label[0] == 'enable') {
return true;
}
return false;
}
}
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty
Seems you did not register purchase code for WooPress WordPress Support Forum to be able to create a topic on this forum.