WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
custom add to cart button (2 posts)

  1. javed.iqubal
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic