Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Do you have any plan to change the header layout 4 to something like mine in the next updates?
If you consider the header 4 has too much height for logo and menu together.
Regards.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
After the update I don’t see the preview changes in the product edit.
Does this come from you?
Regards.
Rahim Vaziri
CEO & Founder at Look.irHi Rahim, Please deactivate plugin WPA Product Bundle, it conflict with plugin change quantity on checkout page. Kind regards
Hi Harry,
Hope you are fine.
Is there still the conflict of these two plugins?
Regards.
Rahim Vaziri
CEO & Founder at Look.irThank you Harry,
Harry, I still see the sticky add to cart on catalog mode.
Please check this on your end.
Regards.
Rahim Vaziri
CEO & Founder at Look.irCould 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.irYes 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.irI 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.irHi 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.irHi 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 -
AuthorPosts