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, 7 months ago by
janmarie.
-
AuthorPosts
-
April 13, 2010 at 2:27 am #1060
mmucklow
MemberHi,
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 #19655Ivy
MemberHi 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 #19656mmucklow
MemberYay! 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 #19657Ivy
MemberHi 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 #19658janmarie
MemberHi 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 #19659amin007
ParticipantRemember, 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 #19660janmarie
MemberThank 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 #19661amin007
ParticipantCan you please tell me the exact line of PHP code that you are using?
July 2, 2011 at 4:20 am #19662janmarie
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 #19663amin007
ParticipantOkay… this post should help:
July 3, 2011 at 1:49 am #19664janmarie
MemberThank 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 #19665amin007
ParticipantYou 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 #19666janmarie
MemberThanks 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
-
AuthorPosts
- You must be logged in to reply to this topic.