Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter taktomedia

    (@taktomedia)

    I have idea) But have some problems. This solution:

    In Stock

    <?php /** start the product loop here */?>
          <?php while (wpsc_have_products()) : wpsc_the_product(); wpsc_the_product_title();?> 
    
        <?php if(wpsc_product_has_stock() >= 1 ) : ?>
    ............
         <?php endif; ?>
    	<?php endwhile; ?>
    <?php /** end the product loop here */?>

    Out of stock

    <?php /** start the product loop here */?>
          <?php while (wpsc_have_products()) : wpsc_the_product(); wpsc_the_product_title();?> 
    
        <?php if(wpsc_product_has_stock() == 0 ) : ?>
    ............
         <?php endif; ?>
    	<?php endwhile; ?>
    <?php /** end the product loop here */?>

    Now i have:

    In stock
    Product1 price 100 (Max)
    Product2 price 90
    Product3 price 80
    Product4 price 70
    Product5 price 60
    ………………
    ProductN price Min

    Out of stock:
    Product1 price 100 (Max)
    Product2 price 90
    Product3 price 80
    Product4 price 70
    Product5 price 60
    ……………..
    ProductN price Min

    But items sorted in each pages.

    How make “in stock” on first pages and “out of stock” in last?

    Best regards,
    Alexandr

    P.S. Sorry for my English)

Viewing 1 replies (of 1 total)