Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Reply To: "Add to Cart" button not in "the_content"

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › "Add to Cart" button not in "the_content" › Reply To: "Add to Cart" button not in "the_content"

January 20, 2010 at 5:35 am #17385
amin007
Participant

You don’t need to change the line… you can just add the following line and it will filter the content as well as the excerpt:

add_filter(‘the_excerpt’, ‘print_wp_cart_button_new’,11);

To display a button on the sidebar use the following PHP function (you can pass in the product name and price to the function):

<?php echo print_wp_cart_button_for_product(“PRODUCT-NAME”, “PRODUCT-PRICE”); ?>

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ