Support » Plugins and Hacks » custom add to cart button

custom add to cart button

  • hi,

    I have modified my theme and showed featured product in home page, now i need the add to cart button there, i have tried with

    <?php wpsc_add_to_cart_button(); ?>

    But it’s not working. the error says,

    Warning: Missing argument 1 for wpsc_add_to_cart_button(), called in D:\xampp\htdocs\wordpress\wp-content\themes\gmab\index.php on line 52 and defined in D:\xampp\htdocs\wordpress\wp-content\plugins\wp-e-commerce\wpsc-includes\display.functions.php on line 198

    Please help me. Thanks is advance.


Viewing 1 replies (of 1 total)
  • Roy Ho


    Haven’t looked at the code but I would imagine you’re missing the product id as the parameter/argument. You need to pass in a valid product id.

Viewing 1 replies (of 1 total)
  • The topic ‘custom add to cart button’ is closed to new replies.