Rating: 5 stars
Setup and using this plugin is very easy and nice. I had another theme that had problems with displaying the custom badge. Support was swift and great.
]]>Rating: 5 stars
Thanks a lot! Working on 6.1.0 (29 Nov ’22).
]]>Rating: 5 stars
just fine
]]>Rating: 5 stars
The custom image ability is a nice feature and the ability to resize it via css is wonderful.
Thanks heaps ??
]]>Rating: 5 stars
Hi
If you’d like to see the sticker on the cart page for sold out items here are 7 steps that I added to the plugin. (Works for me on WP 5.0.1 WC 3.5.2).
/public_html/wp-content/plugins/woo-stickers-by-webline/public/css/woo-stickers-by-webline-public.css
=====================================================================================================
Add at the BOTTOM
—————–
.woocommerce table.shop_table .woocommerce-cart-form__cart-item td {
position: relative !important;
}
.woocommerce-mini-cart .woosticker {
display: none;
}
/public_html/wp-content/plugins/woo-stickers-by-webline/public/class-woo-stickers-by-webline-public.php
=======================================================================================================
line 65 Add ,[new line]’enable_sticker_cart’ => ‘no’
—————————————————-
// Merge with defaults
$this->general_settings = array_merge ( array (
‘enable_sticker’ => ‘no’,
‘enable_sticker_list’ => ‘no’,
‘enable_sticker_detail’ => ‘no’,
‘enable_sticker_cart’ => ‘no’
), $this->general_settings );
line 285 (after previous addition) just before the last } that closes the class
——————————————————————————-
/**
* Call back function for show sold product badge on cart.
*
* @return string
* @param string $product_image The product image.
* @param string $cart_item.
* @param string $cart_item_key.
* @author Doron Shemesh
*/
public function show_cart_product_soldout_badge($product_image, $cart_item, $cart_item_key)
{
if ($this->general_settings[‘enable_sticker’] == “yes” &&
$this->sold_product_settings[‘enable_sold_product_sticker’] == “yes”) {
if( (!is_product() && $this->general_settings[‘enable_sticker_cart’] == “yes”) ) {
$product = $cart_item[‘data’];
$classSoldPosition=(($this->sold_product_settings[‘sold_product_position’]==’left’) ? ((is_product())? ” pos_left_detail ” : ” pos_left ” ) : ((is_product())? ” pos_right_detail ” : ” pos_right “));
$classSold=(($this->sold_product_settings[‘sold_product_custom_sticker’]==”)?(($this->sold_product_settings[‘enable_sold_product_style’] == “ribbon”) ? (($this->sold_product_settings[‘sold_product_position’]==’left’)?” woosticker soldout_ribbon_left “:” woosticker soldout_ribbon_right “) : (($this->sold_product_settings[‘sold_product_position’]==’left’)?” woosticker soldout_round_left “:” woosticker soldout_round_right “)):”woosticker custom_sticker_image”);
if($product->get_type()==’variable’) {
$total_qty=0;
$available_variations = $product->get_available_variations();
foreach ($available_variations as $variation) {
if($variation[‘is_in_stock’]==true){
$total_qty++;
}
}
if($total_qty==0){
if($this->sold_product_settings[‘sold_product_custom_sticker’]==”) {
echo ‘<span class=”‘.$classSold . $classSoldPosition .'”>Sold Out</span>’;
}
else {
echo ‘<span class=”‘ . $classSold . $classSoldPosition . ‘” style=”background-image:url(‘.$this->sold_product_settings[‘sold_product_custom_sticker’].’);”> Sold Out </span>’;
}
}
}
else {
if (! $product->is_in_stock ()) {
if($this->sold_product_settings[‘sold_product_custom_sticker’]==”) {
echo ‘<span class=”‘.$classSold . $classSoldPosition .'”>Sold Out</span>’;
}
else {
echo ‘<span class=”‘ . $classSold . $classSoldPosition . ‘” style=”background-image:url(‘.$this->sold_product_settings[‘sold_product_custom_sticker’].’);”> Sold Out </span>’;
}
}
}
}
}
return $product_image;
}
/public_html/wp-content/plugins/woo-stickers-by-webline/includes/class-woo-stickers-by-webline.php
==================================================================================================
line 214 just before closing the function define_public_hooks
————————————————————-
//action to show sold out product badge on Cart page
// By Doron Shemesh
$this->loader->add_filter(‘woocommerce_cart_item_thumbnail’, $plugin_public, ‘show_cart_product_soldout_badge’, 11, 3 );
/public_html/wp-content/plugins/woo-stickers-by-webline/admin/class-woo-stickers-by-webline-admin.php
========================================================================================================
line 150 Add ,[new line]’enable_sticker_cart’ => ‘no’
—————————————————-
// Merge with defaults
$this->general_settings = array_merge ( array (
‘enable_sticker’ => ‘no’,
‘enable_sticker_list’ => ‘no’,
‘enable_sticker_detail’ => ‘no’
), $this->general_settings );
line 215 (after previous addition) at the end of the function register_general_settings
—————————————————————————————
// By Doron Shemesh
add_settings_field ( ‘enable_sticker_cart’, ‘Enable Sticker On Cart Page:’, array (
&$this,
‘enable_sticker_cart’
), $this->general_settings_key, ‘section_general’ );
line 423 (after previous additions) before
/**
* New Product Settings :: Enable Stickers
———————————————-
/**
* General Settings :: Enable Sticker On Cart Page
*
* @return void
* @var No arguments passed
* @author Doron Shemesh
*/
public function enable_sticker_cart() {
?>
<select id=’enable_sticker_cart’
name=”<?php echo $this->general_settings_key; ?>[enable_sticker_cart]”>
<option value=’yes’
<?php selected( $this->general_settings[‘enable_sticker_cart’], ‘yes’,true );?>>Yes</option>
<option value=’no’
<?php selected( $this->general_settings[‘enable_sticker_cart’], ‘no’,true );?>>No</option>
</select>
<p class=”description”>Select wether you want to enable sticker feature on cart page or not.</p>
<?php
}
Enjoy
]]>Rating: 5 stars
Thanks guys
]]>Rating: 5 stars
Super easy to install and use. Worked first time out of the box.
Added our own stickers to match site design. Customer happy.
Thanks – will implement on other Woo based sites selling real products.
So nice when a Plug In just works.
]]>Rating: 5 stars
This is an excellent plugin. It works perfectly. You can make different settings for new products, products on sale, and sold out products. Thank you for this great plugin! Note to users – if you want a “Sold” sign to appear, you need to make sure that in WooCommerce > Settings > Products that “Hide out of stock items from the catalog” is NOT checked. You should also check the settings in your products under “Inventory” to make sure they are correct.
]]>Rating: 4 stars
This does what it says, and I like that you can upload your own sticker (though suggestions for size would be helpful). I have a slight issue with the sticker placement (as did another reviewer), but that can be fixed. My main issue is that the “Sold Out” sticker simply says “Sold”, which is a bit misleading. I guess I need to upload my own sticker to fix that. If the wording can be fixed in the next update, that would be great.
Thank you.
Rating: 5 stars
Perfect!!!! nice work
]]>Rating: 1 star
Woostickers are showing behind product image which is obviously not desired. Check support questions. Developer not responding to questions. I’ll delete this plugin and look elsewhere.
]]>Rating: 5 stars
Just used this for client to show “Sold Out” for out of stock items. Only had to adjust the css slightly to get it to fit on picture – looks like it is easy to use and customize. Using Genesis theme. Thanks!
]]>Rating: 5 stars
Saved me a lot of messing around. Keep up the great work! Thanks again.
]]>Rating: 5 stars
Simple and functional. I like it!
]]>Rating: 5 stars
Nice plugin, worked out of the box for me.
Being able to add a custom image just takes it up to 5 stars!
Thanks for your work,
Annie
Rating: 5 stars
Such a great plugin! I think absolutely necessary for every woocommerce install. Easy to configure and also to modify the stylesheet.
Thank you for your work!
Rating: 5 stars
Sold out badge doesn’t display on the product listing…it only displays when an individual product is opened. Please help.
Thanks
Rating: 4 stars
This is a great product for sale, sold, and new items, but it needs further development to make it able to also apply the custom stickers to specific products, categories, and featured items. Then it would deserve 5 stars!
]]>Rating: 5 stars
the plugin is fantastic and it works fine
]]>Rating: 5 stars
The plugin works great. It is easy and simple to use. I had a couple issues with the plugin and the support was responsive and solved them as soon as they could. Keep up the good work!!
]]>Rating: 5 stars
The sold out stickers doesn’t seem to work though ??
]]>Rating: 3 stars
…but, it needs more features. Such as: color options, placement options (to account for different themes built for WooCommerce…which includes placement for both views (catalog view and detail page view), and the plugin settings would make more sense if they were placed inside the WooCommerce settings environment.
]]>Rating: 5 stars
Nice, simple and effective!
Installation in 1 minute!
Thank you!!!
]]>Rating: 5 stars
Great. Does what it says.
Seems to override the built-in “sale” badge provided by woo commerce. Will conflict with WooCommerce Smart Sale Badge, if you have that installed.
Looking forward to a little more flexibility, like changing colors, wording or font & size. Also, would be nice to have the ability to turn on/off stickers at a product level.
]]>