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

Is there a variation shortcode?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Is there a variation shortcode?

Tagged: shortcode, Variation shortcode

  • This topic has 1 reply, 1 voice, and was last updated 10 years, 10 months ago by rob.marras.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 18, 2014 at 11:07 am #11039
    rob.marras
    Member

    Hi

    I am providing a custom field to my client from where he will insert the product id, this way I can create a custom page template.

    I do:

    <?php

    $productId = get_field(“product_id”);

    echo get_button_code_for_product($productId);

    ?>

    it works ok but it is not displaying the variation, if I insert the number manually the variation appears.

    E.g. <?php echo get_button_code_for_product(1); ?>

    is there any way I can call the variation with its own shortcode? or any idea why the variation isn’t displayed doing it the way I am doing?

    Thanks a lot

    June 18, 2014 at 11:39 am #63777
    rob.marras
    Member

    Ok the solution I have found is to simply use the_content(), and insert the cart via your plugin icon on the ditor. The create custom fields to upload photos, this way i can lpace the_content(); [the cart button with variation] anywhere in my template and load the “real content”, text and images via custom fields somewhere else in the template.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

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