Support » Plugin: WP eCommerce » Can't add to basket more than 10000 pcs of 1 item

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there,

    I am able to add 10000 items on my site. Please see http://dl.getdropbox.com/u/1184399/Jing/2014-12-02_2349.png

    My advice for your case is to perhaps create variations of 10000 items per pack or so?

    Thank you,
    Ray

    Hi!
    No, You don’r understand. I need to buy 10001 pieces of one product or 20000 pieces, but I can to buy only 10000 pieces. It’s a maximum quantity.

    What I meant is as follow.

    Set up variations as such

    Item A
    1 piece – $1.2
    10 piece – $11
    100 piece – $100
    1000 piece – $900
    10000 piece – $8000

    Say a person wants to buy 10001 pieces, he would need to purchase 1 variation of 10000 piece and 1 piece total sale of $8000 + $1.2 = $8001.2.

    I am suggesting this method because it seems that your server might be a bit overloaded since it can’t handle adding 10000 items. By creating variation, it is as if you are only adding 2 items when purchasing 10001 items.

    Thank you,
    Ray

    ok. Thank You!

    Plugin Author Justin Sainton

    (@justinsainton)

    Hi Sergei,

    Alternatively, you could add the following function to your theme’s functions.php file or to a custom plugin:

    add_filter( 'wpsc_product_max_cart_quantity', function( $max, $product_id ) { return 10001; }, 10, 2 );

    Changing 10001 to whatever you desire the max to be.

    Hope that helps!

    Hi Justin!
    Cool! Thank You!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can't add to basket more than 10000 pcs of 1 item’ is closed to new replies.