April 13, 2010 at 2:27 am #1060mmucklowMember
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?
MichaelApril 13, 2010 at 4:45 am #19655IvyMember
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.
IvyApril 13, 2010 at 3:18 pm #19656mmucklowMember
Yay! That worked! Thanks Ivy.
Have _form at the end of the command is what I didn’t know.
MichaelApril 13, 2010 at 11:45 pm #19657IvyMember
Hi Michael, I am glad this is what you where looking for. If you need anything else please let us know.
IvyJune 30, 2011 at 4:38 am #19658
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?
Jan-MarieJune 30, 2011 at 7:17 am #19659
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 viewJuly 1, 2011 at 9:17 pm #19660
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.
Jan-MarieJuly 2, 2011 at 1:31 am #19661
Can you please tell me the exact line of PHP code that you are using?July 2, 2011 at 4:20 am #19662
<?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
Okay… this post should help:July 3, 2011 at 1:49 am #19664
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.
Jan-MarieJuly 3, 2011 at 2:20 am #19665
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
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.
- You must be logged in to reply to this topic.