Erfan MHDi
Forum Replies Created
-
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Remove Plugin AssetsThanks for your response ??
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Remove Plugin Assetsi’ve found this line of codes to do this:
function yith_wcwl_selectively_dequeue_assets() { // dequeue assets wp_dequeue_style( 'jquery-selectBox' ); wp_dequeue_style( 'yith-wcwl-font-awesome' ); wp_dequeue_style( 'yith-wcwl-main' ); wp_dequeue_style( 'yith-wcwl-theme' ); // dequeue scripts wp_dequeue_script( 'jquery-selectBox' ); //wp_dequeue_script( 'jquery-yith-wcwl' ); } add_action( 'wp_enqueue_scripts', 'yith_wcwl_selectively_dequeue_assets', 99 );
it’s working now, but the problem is it looks like the jquery-yith-wcwl is loading jquery-selectBox too.
when i uncomment the
wp_dequeue_script( 'jquery-yith-wcwl' );
line both jquery-selectBox and jquery-yith-wcwl will be removed but when i comment or remove this line :wp_dequeue_script( 'jquery-yith-wcwl' );
although i havewp_dequeue_script( 'jquery-selectBox' );
but jquery-selectBox is still loading in my pages.how can i remove jquery-selectBox but keep jquery-yith-wcwl in page ?
Thanks.
yup, i noticed that, i was looking forward to have a widget like woocommerce to show recent reviews on wp admin dashboard.
i hope we see it in your next awesome update man ??Great, it’s nice to have the widget with SiteReview Plugin too.
Good luck ??Thanks for your fast response,
you are right, the problem was that i had temporarily disabled the addon, now it works great with WC API and iOS App.
one other thing is that when i active the WC addon, “WooCommerce Recent Reviews” screen element on wp-admin main dashboard page is being disappeared i guess.
is that because of the addon or am i doing something wrong again ? ??- This reply was modified 4 years ago by Erfan MHDi.
- This reply was modified 4 years ago by Erfan MHDi.
Thanks Man,
i Appreciate your help. ??- This reply was modified 4 years ago by Erfan MHDi.
Hello @champsupertramp,
Thanks, with your help i replaced [email protected] with [email protected] now.just 2 more thing :
1. how can i detect if user has a password or not ? so i can remove the current password field ONLY if there is no password set for user yet.2. how to make email address field optional in registration form? it’s a required field even when i uncheck the “Is this field required?” option in Backend.
Thanks for your time and help
i really appreciate it ??also appreciate it if you can tell me how to get fields value like username or phone number inside this filter hook :
add_filter("um_user_register_submitted__email", function( $email ){ // do something return $email; });
i’ve tried
$email = $user_login . ‘@domain.com’;
$email = $username . ‘@domain.com’;
$email = um_fetch_user( $user_id ) . ‘@domain.com’;but no luck so far …
Thanks @champsupertramp,
just what i wanted!
also can i add an if condition for them too ?
for example for email address can i make email address field optional ?
and make an if condition like this :if ( user filled email address on registration ) { $email = user email } else { add_filter("um_user_register_submitted__email", function( $email ){ $email = [email protected] return $email; }); }
and for current password field something to detect that current user has any password or not, if not then user is “Adding Password” so remove current password field, if yes then user is “Changing Password” so show current password field.
Thanks mate ??
Hello @julieskyverge,
Thank you for your response,Is there any way i can force the plugin to use attribute term title (1.2 Meter) instead of term slug (1-2-meter) to generate SKU for variations?
Currently we can only choose between attribute term slug and variation ID in plugin setting.
Forum: Plugins
In reply to: [WooCommerce] Override global Order of variation terms inside product pageHi @riaanknoetze,
Thanks for your response,actually we are kindda running low on budget can’t afford paying for a customisation expert.
i was hoping maybe i can get a hint on how it can be done in theory maybe i could do it myself.
appreciate it if you can give me a hint or a walkthrough if possible … ??
Thanks
Forum: Plugins
In reply to: [WooCommerce] Override global Order of variation terms inside product pageSomething like this maybe if possible :
wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'order' => 'ASC', 'orderby' => 'menu_order', ) );
Forum: Plugins
In reply to: [Beautiful taxonomy filters] get second taxonomy term name inside php filei’m not sure but maybe inside product_type taxonomy term php file
i need to detect if this page is opened DIRECTLY via a link like this :
domain.com/tracks/type/music/
or a link like this :
domain.com/tracks/type/music/artist/test1/
and if there is another taxonomy inside url like artist
i need to get info about artist term too like term name or term url so i can have a “Back to artist page link” too.something like this one maybe …
if (get_queried_object() contains second taxonomy in url ) { // like this url domain.com/tracks/type/music/artist/test1/ echo second_taxonomy_term->name; echo second_taxonomy_term->link; show posts from type "music" and artist "test1"...; } else { // like this url domain.com/tracks/type/music/ show posts from Music term of product_type taxonomy }
i’m really struggling with these so hard :-))
i know i’m not obviously an expert but is it possible the way i think at all ?
i really appreciate your help if you got time,
if not please clearify this for me, give me some hint so i get search for it maybe i can figure it out. ??Thanks.
- This reply was modified 4 years, 3 months ago by Erfan MHDi.
- This reply was modified 4 years, 3 months ago by Erfan MHDi.
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Remove CPT slug from urlThank you for your response @jonathandejong ??
by the way Great Plugin, nice job !Forum: Plugins
In reply to: [Beautiful taxonomy filters] Remove CPT slug from urlSorry for rush but is there any way i can get an answer sooner ?
i want to know if its possible to remove CPT from urls ?