james-mountford
Forum Replies Created
-
Forum: Plugins
In reply to: [Export Users to CSV] [Plugin: Export Users to CSV] doesn't export meta?“Export Users to CSV” doesn’t appear to be working with a WordPress install of mine, works when I remove ‘all_with_meta’ from fields in ‘get_users()’, but I need the meta! – I just get a blank page and no download prompt with it in it’s original state.
It is possible that it should work but the function is failing because of an inconsistency with the usermeta after the site has been updated over time from older databases, but I don’t know for sure…
Forum: Plugins
In reply to: Plug In WP Shopping Cart – Disable prices from being displayedHi Guy,
Simple enough, there are a few places that price gets inserted, so go through the theme files that you are using.
I am using the ‘default’ theme, so I looked in that theme’s folder under ‘plugins/wp-e-commerce/themes/default, and on line 145 in single_product.php, you will find the line:
<span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span><?php echo TXT_WPSC_PRICE; ?>: <br />
that is the line that displays “Price:” and the price.
if you don’t want to remove the whole line, and merely want to just hide the text that would be echoed, edit out like so:
<span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php //echo wpsc_the_product_price(); ?></span><?php //echo TXT_WPSC_PRICE; ?> <br />
remembering to remove the ‘:’ that was before the
<br />
directly above.Now, on single product pages, you should find no prices.
The same goes for any other prices that you want to remove, look for the above function call – wpsc_the_product_price(); and remove it.
Hope that helps for anyone in the future, sorry my reply came so late, but I’ve only just stumbled on this thread!
James
Forum: Fixing WordPress
In reply to: Order by meta_key where meta_value is NUMBERIn 2.9.1 you need to add:
$allowed_keys[] = 'meta_value_number';
on line 2005and
case 'meta_value_number': $orderby = "$wpdb->postmeta.meta_value+0"; break;
on line 2032 in wp-includes/query.php to get this to work ??
thanks for your original answer gabriel, it really helped!