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
You are here: Home

klmartin

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 20, 2010 at 8:23 pm in reply to: "Add to Cart" button not in "the_content" #17387
    klmartin
    Member

    Problem! Refreshing the page adds an item to the cart every time you refresh.

    Any clues as to how this is happening?

    January 20, 2010 at 7:06 pm in reply to: "Add to Cart" button not in "the_content" #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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)

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