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

Widget Code for Subscribe Button?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Widget Code for Subscribe Button?

Tagged: button, subscribe, subscription

  • This topic has 12 replies, 4 voices, and was last updated 13 years, 10 months ago by janmarie.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • April 13, 2010 at 2:27 am #1060
    mmucklow
    Member

    Hi,

    Can a subscribe button be used in a widget like the buy button can be, using the PHP Code plugin?

    For Buy button: <?php echo print_eStore_buy_button(1); ?>

    What for Subscribe button?

    Thanks,

    Michael

    April 13, 2010 at 4:45 am #19655
    Ivy
    Member

    Hi Michael, I believe this is the code you are looking for:

    <?php echo print_eStore_subscribe_button_form(1) ?>

    Displays a “Subscription” button from a Theme file

    (eg. Sidebar, header, footer)

    You can find all the shortcodes and PHP functions for the eStore here: http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460

    Please let me know if this is not what you are looking for.

    Cheers,

    Ivy

    April 13, 2010 at 3:18 pm #19656
    mmucklow
    Member

    Yay! That worked! Thanks Ivy.

    Have _form at the end of the command is what I didn’t know.

    Michael

    April 13, 2010 at 11:45 pm #19657
    Ivy
    Member

    Hi Michael, I am glad this is what you where looking for. If you need anything else please let us know.

    Cheers,

    Ivy

    June 30, 2011 at 4:38 am #19658
    janmarie
    Member

    Hi Ivy,

    Last year you added a PHP subscribe box to http://www.freedomtobe.com.au. I had deactived it whilst doing some change overs and re installed it again today with a new download and everything is working prefectly. got rid of that dreadful google chrome :)

    However I have done a cut and paste of the php code (which is exactly the same here on this thread)except for the number of the item… and put it into http://www.janmarie.com.au and it is not working.. the fields do not come up?

    I remember when you were doing http://www.freedomtobe.com.au there were some issues. I use an artisteer theme – is there some reason that the php code does not work with this theme?

    Thanks

    Jan-Marie

    June 30, 2011 at 7:17 am #19659
    amin007
    Participant

    Remember, if you are planning to place the PHP example code on a WordPress post or page then you need to have a plugin (e.g. PHP Execution plugin – http://wordpress.org/extend/plugins/php-execution-plugin/) that lets you execute PHP code in WordPress page or post. If you have such a plugin installed on your site then you should be able to copy and paste the example code in HTML view

    July 1, 2011 at 9:17 pm #19660
    janmarie
    Member

    Thank you amin

    I downloaded the plugin and activated it. However is there something I am missing?

    I am not able to get the plugin to display in the spot where you grab it to move to the LHS and open as a PHP widget box where I can place the code into it.

    Thanks

    Jan-Marie

    July 2, 2011 at 1:31 am #19661
    amin007
    Participant

    Can you please tell me the exact line of PHP code that you are using?

    July 2, 2011 at 4:20 am #19662
    janmarie
    Member

    <?php echo eStore_free_download_form(3); ?>

    However it is not the code…it is because I am using a text box, because there is no php widget box to drag over the the RHS into the widget section.

    that is what I am missing! On http://www.freedomtobe.com.au there is this Widget PHP Code box

    in which to put the code into…on http://www.janmarie.com. I dont know HOW to get that bit – it did not appear after I activated the plug in.

    July 2, 2011 at 11:43 pm #19663
    amin007
    Participant

    Okay… this post should help:

    https://support.tipsandtricks-hq.com/forums/topic/using-php-on-the-sidebar-or-widget-eg-to-display-a-button

    July 3, 2011 at 1:49 am #19664
    janmarie
    Member

    Thank you…got it working. the only thing left to fix is the “Download Icon” at the moment it is coming up X. When Ivy did my other website it had a nice download menu bar but I cant see how she got it into the php code.

    any suggestions?

    thanks

    Jan-Marie

    July 3, 2011 at 2:20 am #19665
    amin007
    Participant

    You must have entered a wrong URL for the “Button Image URL”. Make sure the image URL that you entered in the “Button Image URL” field is not resulting a 404 (enter the URL in the browser’s address bar and verify it first)

    July 3, 2011 at 3:46 am #19666
    janmarie
    Member

    Thanks Admin….this was not listed on my other site which is why I couldnt work out how Amy did it…all good thanks heaps.

    Cheers

    Jan-Marie

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 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