WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP Supersized] integrate with WPEC

[Resolved] [Plugin: WP Supersized] integrate with WPEC

  • Hi

    I am attempting to integrate this with WPEC – see the following code –

    Working perfectly in all browsers except IE which is returning an error because of the final comma not being removed.

    How can I implement a fix to use a foreach argument that will strip out the final comma ?

    global $wp_query;
    
     $my_query = new WP_Query
    ( array(
              	'post_status' => 'publish',
                'post_type'   => 'wpsc-product',
    			//'numberposts' => 5,
                'orderby' 	  => 'title',
    			'order'       => 'ASC',
    			'showposts'   => 50 ));
    while( $my_query->have_posts() ) : $my_query->the_post(); 
    
    		 ?>
    
    {image : '<?php echo wpsc_the_product_image(); ?>', title : '<div class="slidecaptioninside"><a href="<?php echo wpsc_the_product_permalink(); ?>"><?php echo wpsc_the_product_title(); ?></a> <br /><div class="slidedescription"><?php $excerpt = wpsc_the_product_description(); echo string_limit_words($excerpt,5)."...";?>  <br />Priced from- <?php echo wpsc_the_product_price(); ?> - <a href="<?php echo wpsc_the_product_permalink(); ?>">find out more</a></div>', url : '<?php echo wpsc_the_product_permalink(); ?>'},

    http://wordpress.org/extend/plugins/wp-supersized/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: WP Supersized] integrate with WPEC’ is closed to new replies.