• How can I remove the check of stock when a product is added to cart..
    I don’t care if the product is in stock or not I just want it to be added into cart …
    Thnx!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Go to Settings > Store > Presentation and set “Show Stock Availability” to “No”.

    Second, for each product, ensure the “I have limited stock for this product” option is NOT checked.

    Thread Starter cocolin

    (@cocolin)

    I really need to show the Availability of stock .My problem is a little bit complicated..I modified so that for my “Not in stock” Products the “Add to cart button” to apear .. .But it’s not working . Actually i need to change this functionality (Not in stock) into “Available to order” which means even thought my product in not in stock it could be added to cart .
    In sigle_product.php I removed the <?php if(wpsc_product_has_stock()) : ?> option from cart option and still not working… This is the code..Can you help me, pleaaase ?
    <?php if((get_option(‘hide_addtocart_button’) == 0) && (get_option(‘addtocart_or_buynow’) !=’1′)) : ?>
    <?php if(wpsc_product_has_stock()) : ?>
    <div class=”wpsc_buy_button_container”>
    <?php if(wpsc_product_external_link(wpsc_the_product_id()) != ”) : ?>
    <?php $action = wpsc_product_external_link( wpsc_the_product_id() ); ?>
    <input class=”wpsc_buy_button” type=”submit” value=”<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( ‘Buy Now’, ‘wpsc’ ) ); ?>” onclick=”return gotoexternallink(‘<?php echo esc_url( $action ); ?>’, ‘<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>’)”>
    <?php else: ?>
    <input type=”submit” value=”<?php _e(‘Add To Cart’, ‘wpsc’); ?>” name=”Buy” class=”wpsc_buy_button” id=”product_<?php echo wpsc_the_product_id(); ?>_submit_button”/>
    <?php endif; ?>
    <div class=”wpsc_loading_animation”>
    <img title=”Loading” alt=”Loading” src=”<?php echo wpsc_loading_animation_url(); ?>” />
    <?php _e(‘Updating cart…’, ‘wpsc’); ?>
    </div><!–close wpsc_loading_animation–>
    </div><!–close wpsc_buy_button_container–>
    <?php else : ?>
    <p class=”soldout”><?php _e(‘This product has sold out.’, ‘wpsc’); ?></p>
    <?php endif ; ?>
    <?php endif ; ?>

    I’m not sure I understand what you’re trying to do. Can you try explaining it again?

    Thread Starter cocolin

    (@cocolin)

    I have 2 different types of products: “In stock” and “Available to order”..Both types should be added into cart but they must look different (like “in stock” vs “out of stock” products from plugin) …For “In stock” product there is no problem adding into cart
    The plugin has also 2 types of products:”In stock” and “Out of stock” …
    But if a product is “Out of stock” it can’t be added into cart (which is normal)..
    Well , all I want is to modify the “Out of stock” type into “Available to order”

    Ah, ok. That is very involved and not something that can be answered in a simple support ticket. Sorry.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘One more try -WP e commerce plugin issue’ is closed to new replies.