WP eCommerce
custom add to cart button (2 posts)

  1. javed.iqubal
    Posted 2 years ago #


    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.


  2. Roy Ho
    Posted 2 years 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

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic