We use a preprocess function to remove elements you don’t need
Insert this code snippet in your theme’s template.php and change THEMENAME to your theme’s name. Comment what you don’t need (delete user + date, delete user or delete date)
function THEMENAME_preprocess_search_result(&$vars) {
//delete user + date
$vars['info'] = "";
//delete user
$vars['info'] = $vars['info_split']['date'];
//delete date
$vars['info'] = $vars['info_split']['user'];
}
How to apply same tax rule on all products quickly
UPDATE ps_product SET id_tax_rules_group = 1 WHERE id_tax_rules_group = 0;
UPDATE ps_product_shop SET id_tax_rules_group = 1 WHERE id_tax_rules_group = 0;
Making a mass price change
UPDATE ps_product_shop SET price = 10;
UPDATE ps_product SET price = 10;
This code will display the user avatar by user ID and also make the avatar a clickable link to their profile.
// replace the number in the first line with the userID that you want.
$member_id = bp_core_get_userid( '1' )
<a href="<?php echo bp_core_get_user_domain( $member_id ) ?>"
title="<?php echo bp_core_get_user_displayname( $member ) ?>">
echo bp_core_fetch_avatar ( array( 'item_id' => $member_id, 'type' => 'full' ) ) ?></a>