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

bobsnead

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

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 25, 2010 at 3:15 pm in reply to: coding question for simple cart wp plugin with custom field template plugin #15800
    bobsnead
    Member

    Well I figured out something that will work. I mainly needed to be able to put the cart button in the sidebar, so for the time being I’m using this:

    <?php

    $product = get_post_meta( post->ID, ‘product’, true);

    echo print_wp_cart_button_new($product);

    ?>

    Then I just put the full shortcode string with all variations into the ‘product’ meta field of my post. Quick and dirty, I don’t mind that.

    July 25, 2010 at 3:59 am in reply to: coding question for simple cart wp plugin with custom field template plugin #15799
    bobsnead
    Member

    I used the same principle to utilize the wordpress custom meta fields to get the same result. So I have a two fields named productname and productprice that I can enter values into and it works great.

    <?php $product_id = get_post_meta($post->ID, ‘productname’, true);

    $product_price = get_post_meta($post->ID, ‘productprice’, true);

    echo echo print_wp_cart_button_for_product($product_id, $product_price); ?>

    My question now is how do I get variations, like for tshirt size?

  • 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