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 7:06 pm #17386
klmartin
Member

Thanks! I finally got it to work!

1. I added the line you suggested to the wp_shopping_cart.php file.

2. In each post I added custom fields with the key/name Price & Shipping

3. In my sidebar template I established the 3 following variables

<?php

$prodname = $post->post_title ;

$prodprice = get_post_meta($post->ID, 'Price', true);

$prodshipping = get_post_meta($post->ID, 'Shipping', true);

?>

4. Then added this line where I wanted to put the button in that same template file

<?php echo print_wp_cart_button_for_product($prodname, $prodprice, $prodshipping); ?>

This worked for me – I seriously doubt its totally correct by php or wordpress standards, so admin, feel free to correct.

Thanks again for a great and simple plugin.

KLM

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