Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore shortcode to list category for download now?
Tagged: category, free download, Free Download Now, sdm category
- This topic has 15 replies, 2 voices, and was last updated 7 years, 2 months ago by dnuttall.
-
AuthorPosts
-
September 6, 2017 at 3:49 pm #14390dnuttallMember
The shortcode:
[wp_eStore_download_now_button_fancy_no_price id=#]
produces a display that I like…..but is there a short code to do download now buttons for a CATEGORY?Everything in the category would be free.
Thanks.
September 7, 2017 at 12:25 am #76385adminKeymasterThe available product display templates are listed here:
You pick a template from there then you can use the following shortcode to display a group of products from a particular category using that template. You can also specify that it should be download now type buttons (type=4 means you want to use download now buttons):
[wp_eStore_category_products_fancy id=1 style=1 type=4]
The shortcode documentation has explanation of how this shortcode works:
https://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
September 7, 2017 at 11:53 am #76386dnuttallMemberThe shortcode above would be perfect except that there doesn’t seem to be a way to not display price without removing price from everything using display: none; in the custom_css.
So I experimented with a PHP insert plugin, and in 20 lines of PHP, I read all the product IDs for a specific category into an array, then parse the result however many times a product is included in a category and output the shortcode:
[wp_eStore_download_now_button_fancy_no_price id=#]
where # is the value of prod_id from the table *_wp_wpEstore_cat_rel_tbl
On my journey, I experimented with the WP eStore Members Only Download, but couldn’t make the Subscribe link for non-members trigger the free signup with email verification.
As always, I realize that I’m probably overlooking something that would give me a list free downloads in a category for logged in eMembers and without displaying the price tags.
But, I think this will work OK for what I need to implement. Comments/suggested alternatives will be most welcome!
Thanks for the exchange.
September 7, 2017 at 11:46 pm #76387adminKeymasterUsing a CSS tweak to hide the price is the best way to go in my opinion. You can wrap your shortcode in a CSS div like the following:
<div class="my-custom-download-listing">
[wp_eStore_category_products_fancy id=1 style=1 type=4]
</div>This will allow you to target the price for that particular CSS class only (without affecting anything else anywhere).
September 8, 2017 at 10:24 am #76388dnuttallMemberIt took me a while to get a handle on the CSS for the fancy displays, but the “learning” feels pretty good!!!
I’m using FANCY1 with prices and FANCY2 for free downloads.
My CUSTOM-CSS is as follows (we don’t want/use images/thumbs for anything)
.eStore-product {
height:100%;
overflow:hidden;
margin-bottom:25px;
border:6px solid #bb0000;
padding:15px;
}
.eStore-fancy2-product {
height:100%;
overflow:hidden;
margin-bottom:5px;
border:6px solid #bb0000;
padding:15px;
}
.eStore_fancy2_price{
display: none;
}
.eStore-fancy2-product-name{
font-family: Comic Sans MS;
color: #bb0000;
font-size: 30px;
font-weight: bold;
padding-bottom:5px;
margin-left: 15px;
}
.eStore-product-description {
font-family: Times New Roman;
text-align:left;
font-style: italic;
font-size: 16px;
margin-left:15px;
}
.eStore-thumbnail {
display: none !important;
}
.eStore-product-fancy2-thumb-image {
display: none !important;
}September 9, 2017 at 10:24 pm #76389dnuttallMemberIs the eStore capable of recording the identity of the “consumer” of a
[wp_eStore_category_products_fancy id=1 style=1 type=4]
or `[wp_eStore_category_products_fancy id=1 style=2 type=4]’ transaction?
The Manage Products “Sales Count” clearly increments but I can’t seem to see any “customer” data even though I’m using eMember and require logged in to get the freebies.
September 11, 2017 at 1:48 am #76390adminKeymasterIf you edit a record from the manage customers menu, you will see the member ID of the user (so you can see which member purchased the item).
September 11, 2017 at 9:42 am #76391dnuttallMemberThe “manage customers” DOES show purchases, but when the product is free/$0.00, no record seems to accumulate even though the user is logged in as an eMember.
September 12, 2017 at 11:26 pm #76392adminKeymasterFree transactions via manual checkout do not go to the customers list by default (this is how most people want it so that is the default behavior).
You can configure your manual checkout to add the record there (even though the customers are not paying anything for it).
Read the following page and it will explain how you can configure the manual checkout to your liking:
September 14, 2017 at 10:35 am #76393dnuttallMemberI’ve tried to make the manual checkout work, but it puts me back to specifying individual products instead of a category list, and the confirm order does NOT recognize a logged in eMember even though the page is restricted to logged-in eMembers.
What I think I need/want to achieve is simply “logging” who the eMember was and which product was selected when this shortcode is used:
[wp_eStore_category_products_fancy id=4 style=2 type=4]
If adding custom PHP or even creating a custom shortcode would achieve the logging, that would be extremely satisfying.
Thanks.
September 15, 2017 at 4:04 am #76394adminKeymasterI am not sure what the checkout has anything to do with the shortcode.
#1) Enable the following option in manual checkout settings:
Automatically Update Customer & Products Database
#2) Then after someone does a manual checkout, you will be able to see the record in the manage customers interface. Edit the user’s record and you will see the eMember ID in there so you know which emember user purchased that item.
September 15, 2017 at 12:58 pm #76395dnuttallMemberI see that a manual checkout creates a record that can be seen in the “manage customers” interface.
I have the Automatically Update Customer & Products Database option enabled.
But I can’t figure out how to make the shortcode:
[wp_eStore_category_products_fancy id=4 style=2 type=4]
become a manual checkout.
September 16, 2017 at 12:01 am #76396adminKeymasterManual checkout is done from the cart. So users add items to the cart then they can do a manual checkout.
Where are you using that shortcode on your site? I would like to check that page.
September 16, 2017 at 9:57 am #76397dnuttallMemberNot sure how to send you a PM with credentials.
September 17, 2017 at 12:33 am #76398adminKeymasterNo credentials needed. You just share a link to the page where you are using that shortcode you mentioned. I can then go there and add items to the cart and see if your manual checkout option is shown in the cart.
I am not sure why are you expecting manual checkout when you are using download now buttons though? eStore’s download now button doesn’t do anything with membership. The download now button simply creates a secure download option and thats it.
If you want to monitor the download and see who is downloading what then you need a plugin like the following:
https://wordpress.org/plugins/simple-download-monitor/
There is an addon to create hidden downloads (which will offer secure downloads and at the same time monitor who downloaded it):
https://simple-download-monitor.com/hidden-downloads-for-simple-download-monitor/
-
AuthorPosts
- You must be logged in to reply to this topic.