re: product file description ?

20 views
Skip to first unread message

eggproject

unread,
Dec 20, 2011, 7:35:46 AM12/20/11
to WordPress e-Commerce Plugin Development
delete text :)

if ( isset( $_REQUEST['wpsc_admin_action'] ) &&
($_REQUEST['wpsc_admin_action'] == 'delete_file') ) {
add_action( 'delete_attachment', 'wpsc_delete_file_text' );
}

function wpsc_delete_file_text($postId){
if(isset($_GET['product_id']) && isset($_GET['file_name']))
{
delete_post_meta($postId, "_wpsc_product_file_text");
}
}

Nur Roni Dinnurohman

unread,
Dec 20, 2011, 7:39:42 AM12/20/11
to wordpress-e-c...@googlegroups.com
Wow, it's great.
Do you create the plugin for this?


Nur Roni Dinnurohman
Follow me on Twitter and get an updates about WordPress (@onnayokheng),
wordpress developer and web development.
+62 856 2090 987
 





--
You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
To post to this group, send email to wordpress-e-c...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.


Egg

unread,
Dec 21, 2011, 5:24:33 AM12/21/11
to wordpress-e-c...@googlegroups.com
not tested :)
-- 
Harangozo Gabor
wp-e-commerce-product-file-description.zip
Reply all
Reply to author
Forward
0 new messages