Home › Forums › Themes Support › Claue › Countdown Help
- This topic has 33 replies, 2 voices, and was last updated 6 years, 2 months ago by Harry.
-
AuthorPosts
-
-
October 4, 2018 at 8:37 pm #25408
Hi Harry,
Is there any chance to remove the ” 0 ” before the days and hours … ? http://take.ms/A4pMI
I think in this way the user gets more attract.
Regard
Rahim Vaziri
CEO & Founder at Look.ir -
October 4, 2018 at 8:38 pm #25409
And also I don’t see the badge of ” New ” product.
I just made a product and make the ” New ” badge available for 5 days, but don’t see the badge on it!
Sample Page : https://look.ir/testpage
Rahim Vaziri
CEO & Founder at Look.ir -
October 4, 2018 at 9:35 pm #25415
Hi Rahim,
1. I’m sorry it doesn’t have option to hide “0” number on countdown sale.
2. The days in New Arrival = the day public product till today + number day you want to show badge.
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 5, 2018 at 3:43 pm #25435
Hi Harry,
So it means for example when I add a new product right now and select 5 days to show the badge, I should have the ” New ” badge for 5 days from today, right?
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 5, 2018 at 5:44 pm #25439
Yes, by default when you don’t put anything the badge will show in 5 days.
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 5, 2018 at 7:00 pm #25449
Hi Harry,
But it’s not working on my site.
I created a sample product yesterday for this but didn’t work.
Check my New Arrival Page.
Rahim Vaziri
CEO & Founder at Look.ir -
October 5, 2018 at 11:08 pm #25462
Hi Rahim,
I check on my site it still work well http://take.ms/y6kxY http://take.ms/H2cGL , could you try deactivate one by one plugin and check
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 5:13 am #25971
Hi Harry,
According to this topic, I just made a sample product right now witch can be found on my New Arrival page.
I still don’t see the badge of “New”.
I have set the value to 14 days.
I also checked by disabling the plugins.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 3:03 pm #25980
Hi Rahim,
Did you add any code in child theme to remove “New” badge?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 3:06 pm #25982
Hi Harry,
Now I don’t have any code for the new badge!
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 5:46 pm #25986
Could you send me new admin account to check?
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 5:59 pm #25991This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 6:01 pm #25992
I changed your user’s language to EN.
Let me know if you have any issue.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 6:15 pm #25995
Hi Rahim,
When i check your Dashboar, it doesn’t support jQuery http://prntscr.com/l9ujeg
I try change language to English but still doesn’t work, i think the issue it now the number in New Arrival field is number in your language so when it insert to code it can’t run it should be in latin number
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 6:22 pm #25998
Uhum, I see Harry,
Well unfortunately I cannot change the numbers to EN for UX results.
I will try this plugin instead and if it worked for me, will share it with you for having experience to other RTL users.
https://wordpress.org/plugins/yith-woocommerce-badges-management/
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 7:33 pm #26002
Hi Harry,
Can you please provide me the css code of changing the font family of the input of the days?
I want to try to change it to a supported font by html and test it again.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 7:38 pm #26004
Harry,
As I see, the font family of this input didn’t make any change for the value of it.
Check this:
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 8:24 pm #26005
Hi Harry,
I double checked that with my installed plugins and found out that it disappears by a plugin which localize the timing format of my wordpress.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 8:51 pm #26006
Hi Harry,
I tested 4 famous plugins of changing the timing system to find the compatible plugin for having the new badge.
Unfortunately with all of them when I activate them, the “New” badge disappears.
Is there any chance to change the function of new badge to make it compatible with these timing localizing plugins?
Regards.
Tested plugins:
https://wordpress.org/plugins/wp-jalali/
https://wordpress.org/plugins/wp-parsidate/
https://wordpress.org/plugins/wp-persian/
https://wordpress.org/plugins/wp-farsi/
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 9:01 pm #26007This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 9:42 pm #26008
Hi Rahim,
Please try
.rtl .cs-field-number input[type="number"] {font-family: Arial !important;}
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 9:48 pm #26009
Hi Harry,
Did you read my previous replies?
It’s because of the conflict of a plugin.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 9:48 pm #26010
Hi Rahim,
Please try plugin https://yithemes.com/themes/plugins/yith-woocommerce-badge-management/
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 24, 2018 at 9:54 pm #26011
Hi Harry,
I see you have edited the product, right now, you cannot see the new badge, because I have activated the timing plugin again,
If you wana see the results, tell me to deactivate the timing plugin.
The Yith plugin, doesn’t have counting the days. I tried that already.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
October 24, 2018 at 10:45 pm #26013
Hi Rahim,
Im’ sorry, the code doesn’t understand time format in your language. So you can’t use plugin
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 13, 2018 at 6:11 pm #26619
Hi Rahim, Im’ sorry, the code doesn’t understand time format in your language. So you can’t use plugin Regards
Hi Harry,
If you remember, when I activate the localizing time format plugins, that I named up here, I cannot use the “New” sale badge.
Because the code as you said, doesn’t understand the time formatting of new arrival days.
I discussed this with one of my friends and he suggested to tell you use the localizing function of time formatting of WordPress.
Read this article: https://codex.wordpress.org/Function_Reference/date_i18n
You have many customers globally, and they have their own time formatting which is activated via a their country developers to override the timing of wp.
Hope you can fix this timing bug.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
November 13, 2018 at 9:35 pm #26635
Hi Rahim,
If it show the time on post it work well with your suggest code but it now calculate number of the days (future day – current day) and get result to apply it need latin format to understand.
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 13, 2018 at 9:41 pm #26638
Hi Harry,
Thank you.
Is this function like yours?
/* * Adds a new badge to product entry for any product added in the last 30 days. * Simply add to child theme's functions.php file then add some css to your site to style it. * If you want the badge to be a part of the "equal height" content then use 'PHP_INT_MAX' for the * priority instead of 20 * */ add_action( 'woocommerce_before_shop_loop_item_title', function() { $postdate = get_the_time( 'Y-m-d' ); // Post date $postdatestamp = strtotime( $postdate ); // Timestamped post date $newness = 30; // Newness in days if ( ( time() - ( 60 * 60 * 24 * $newness ) ) < $postdatestamp ) { echo '<div class="woo-entry-new-badge">' . esc_html__( 'New', 'total' ) . '</div>'; } }, 20 );
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
November 13, 2018 at 9:42 pm #26639
Yes Rahim. this function same as in our theme.
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
November 13, 2018 at 9:47 pm #26643
Yes Rahim. this function same as in our theme. Regards
Oh Ok.
This is really good feature. 🙁
We use alot this timing format in our localized plugins.
Like this which is an invoice plugin.
Thank you Harry.
Rahim Vaziri
CEO & Founder at Look.ir
-
-
November 13, 2018 at 9:43 pm #26640
I searched the net and found only 2 links for this:
1. https://github.com/jameskoster/woocommerce-new-product-badge/blob/master/new-badge.php
2. https://wpexplorer-themes.com/total/snippets/woo-new-badge/
Rahim Vaziri
CEO & Founder at Look.ir -
November 13, 2018 at 9:47 pm #26642
Could you ask your developer check these function with your language?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 13, 2018 at 9:48 pm #26644
Could you ask your developer check these function with your language?
Sure Harry 🙂
If I found a solution will share with you.
Can you please tell me which file is having this function in the theme?
Rahim Vaziri
CEO & Founder at Look.ir -
November 13, 2018 at 10:36 pm #26648
Hi Rahim,
The file we implement is sale-flash.php in claue/core/libraries/vendors/woocommerce/templates/single-product and claue/core/libraries/vendors/woocommerce/templates/loop
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.