Can’t Delete Meta Data
-
No matter how many times I delete the custom meta data on an individual file, the meta data is visible to everyone and it looks really stupid on a product page. See my page here href=”http://www.reinfalldesign.com/products-page/la-salette/la-salette-alumni-sweatshirt/” target=”_blank”>
I tried this approach and it still didn’t delete it.
“Right, after several hours of digging I’m still not really sure how WP eCommerce is grabbing these fields, as the plugin registers them to a specific custom post type. These fields aren;t meant to be consumed by general post types- maybe I’m doing something wrong, maybe it’s WP eCommerce. I’ll keep looking to find out which.
The short term fix is to remove this code from line 63 of wpsc-single_product.php:
<?php if (wpsc_have_custom_meta()) : ?>
<div class=”custom_meta”>
<?php while ( wpsc_have_custom_meta() ) : wpsc_the_custom_meta(); ?>
<?php if (stripos(wpsc_custom_meta_name(),’g:’) !== FALSE) continue; ?>
<?php echo wpsc_custom_meta_name(); ?>: <?php echo wpsc_custom_meta_value(); ?>!<br />
<?php endwhile; ?>
</div><!–close custom_meta–>
<?php endif; ?>– Note that this is a hack, not a fix. If you updated WP ecommerce this change would be updated. It also means if you do rely on this feature you’ve just switched it off.
Hope that’s useful in the mean time anyway. The whole fix might take a few more days as I’m waiting on some answers.
***** FILE IS FOUND IN PUBLIC_HTML >> WP-CONTENT >> PLUGINS >> WP E-COMMERCE >> WPSC THEME *****”
The topic ‘Can’t Delete Meta Data’ is closed to new replies.