dfwpress
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Problem with ascending sortingOK. Thanks for your help.
The empty rows caused the problem ??Regards
Forum: Themes and Templates
In reply to: [AccessPress Parallax] Change CSS for Service sectionHello,
Thanks for your answer.
I have solved this with next CSS:#section-231 .service-list .service-image { display: none }
Regards
Forum: Plugins
In reply to: [WooCommerce] Password resetHello,
I checked this again and it seems it also works OK for me. @mike Jolley, thanks for your answer.
Regards
Forum: Fixing WordPress
In reply to: Dashboard – Comments – cannot delete in "All"Hello,
I have the same issue. There are no comments but in Dashboard is displayed count All(10).
Thanks
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Price filter is displayed on all pagesOK
Thanks
RegardsForum: Plugins
In reply to: [WooCommerce] Change user roleHello,
The code:
$u = wp_get_current_user(); $u->remove_role('customer'); $u->add_role('product_vendor');
seems to work.
I have user edit form like this:
<?php echo do_shortcode( '[wpuf_profile type="profile" id="816"]' );
Now I would like to have something like this:if (the form is submited and user=Customer) { $u = wp_get_current_user(); $u->remove_role('customer'); $u->add_role('pending_vendor'); }
Thanks
Forum: Plugins
In reply to: [WooCommerce] Change user roleThanks @ralbatross.
@jase Pearson: The user (Customer) will fill out the form. I could maybe make a condition “if some fild is not empty”.
Forum: Plugins
In reply to: [WooCommerce] Change user roleHello Jesse Pearson,
Thanks for your answer.
I only need to change the role of the current user (already signed in as Customer) to Product Vendor.Forum: Plugins
In reply to: [WooCommerce] Uncategorised categoryOK
Thanks
RegardsForum: Plugins
In reply to: [WooCommerce] Remove First Name and Last Name fields from Edit account pageForum: Themes and Templates
In reply to: [Storefront] Replacing shopping cart in header with shortcodeFirst, I found and used this code to remove shopping cart:
/*
Deleting Shopping Cart from header
*/
add_action( ‘init’, ‘woa_remove_header_cart’ );
function woa_remove_header_cart() {
remove_action( ‘storefront_header’, ‘storefront_header_cart’, 60 );
}Then I wrote by myself this code that works second part of the job:
*
Adding social icons to header
*/
function my_add_social() {
?> <div style=”float:right”>
<?php
echo do_shortcode(‘[aps-social id=”1″]’);
?> </div> <?php
}
add_action( ‘storefront_header’, ‘my_add_social’, 60);As I am not a coding expert, I would like to know if the second part is correct. I have tried it and it works ??
Thanks
Forum: Themes and Templates
In reply to: [Storefront] Display Stock quantity in Product descriptionIt seems that I have managed to solve this by adding:
if (empty( $_price )) {
update_post_meta( $post_id, ‘_price’, ‘0’ );}Forum: Plugins
In reply to: [WP Edit] Image upload buttonHello,
Thank you for your answer.
Yes, I need it only for front end and would like to avoid Add Media button.Forum: Plugins
In reply to: [WooCommerce] Translate shortcode stringsSorry. I have forgotten that these shortcodes do not have their titles Recent Products and On Sale. I put titles manually on home page.
So, this is resolved.Forum: Plugins
In reply to: [WooCommerce] Translate shortcode stringsWP 4.3.1
WC 2.4.8