Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Download product using php script/code
Tagged: css, Download, free product download, PHP, products, squeeze form, widget
- This topic has 7 replies, 3 voices, and was last updated 13 years, 1 month ago by
camden.
-
AuthorPosts
-
September 23, 2012 at 12:48 pm #7463
camden
MemberHi
I would like to be able to add a downloadable product to a widget, product is integrated with MailChimp. I have the Executable php widget, but wanted to know how I can specify download a certain product using php script as oppose to shortcode. Can it be done?
Thanks in advance.
September 23, 2012 at 9:03 pm #49629wzp
ModeratorHave you looked at the PHP functions in this list?
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Here is a link to the PDF file with the list:
http://www.tipsandtricks-hq.com/ecommerce/wp-content/uploads/wp-estore-shortcodes.pdf
Perhaps the php echo eStore_show_download_now_button($product_id) function is what you are looking for?
September 24, 2012 at 7:54 am #49630camden
MemberHi
Yes I did have a look at the list, it does not list the the download product display I am after. I would like the user to be able to download a free pdf, after they have submitted a name and email (which is integrated with MailChimp).
Thanks for getting back to me though
September 24, 2012 at 7:58 am #49631camden
MemberHere is a test page link with the type of product display I mean, if it helps.
[http://creativehandsmarketing.com/test/]
September 24, 2012 at 11:04 pm #49632admin
KeymasterI think you are referring to the squeeze form. You can use the following PHP code to place a squeeze form anywhere in your template file (1 is the product ID in this example):
<?php echo eStore_free_download_form("1"); ?>September 25, 2012 at 8:37 am #49633camden
MemberBrilliant that is the one, many thanks. Now to continue to be a pain, is there any way I can edit the php/css so the input boxes and button run horizontally as oppose to vertically, this is due to space available in the header and not wanting to make it any deeper.
Thanks
September 25, 2012 at 11:40 pm #49634admin
KeymasterLet me know if this post helps:
https://support.tipsandtricks-hq.com/forums/topic/estore-changing-layout-of-squeeze-page-form
September 26, 2012 at 8:16 am #49635camden
MemberAll sorted, thanks very much for your help and Patience!
-
AuthorPosts
- You must be logged in to reply to this topic.