- This topic has 7 replies, 3 voices, and was last updated 12 years, 2 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
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
Hi
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.
Have 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?
Hi
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
Here is a test page link with the type of product display I mean, if it helps.
[http://creativehandsmarketing.com/test/]
I 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"); ?>
Brilliant 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
Let me know if this post helps:
https://support.tipsandtricks-hq.com/forums/topic/estore-changing-layout-of-squeeze-page-form
All sorted, thanks very much for your help and Patience!