Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Simple list of products from a category
Tagged: categories, category list, shortcodes, simple list
- This topic has 22 replies, 5 voices, and was last updated 9 years, 7 months ago by Troy Media.
-
AuthorPosts
-
December 5, 2011 at 1:43 pm #4942JaneMember
Is there a short code—-similar to [wp_eStore_list_products]—to create a simple list of products from a single category? I would like to have a simple list to accommodate the smart phone shoppers. I can do it manually (very tedious!) but I really like the ability to sort the products. Problem is, I want them divided by category first. Obviously the same shortcode doesn’t need to do both! A shortcode similar to the one above with the added category feature w/b fantastic.
It seems a rather obviously useful thing, but I can’t seem to spot such a thing. Am I just looking right past it in the list of shortcodes/extracodes?
December 6, 2011 at 4:30 am #39219adminKeymasterUse fancy display9 with that category shortcode. Fancy display 9 will produce a similar compact display that you saw in the other shortcode. You will need to have the latest build of the extra eStore shortocdes plugin to get fancy display 9. You can check this page to see how this display looks:
http://www.tipsandtricks-hq.com/ecommerce/stylish-product-display-options-for-wp-estore-829
December 6, 2011 at 1:55 pm #39220JaneMemberThanks! I think that will work. If I decide I’d rather not have the descriptions included (the way I use them in fancy4, they’re a bit long…like back cover copy) can I just take the:
$output .= ‘<div class=”eStore-fancy-clear”></div>’;
$output .= ‘<div class=”eStore_fancy9_description”>’;
$output .= html_entity_decode($ret_product->description, ENT_COMPAT,”UTF-8″);//$ret_product->description;
$output .= ‘</div>’;
section out of eStore-extra-shortcodes/shortcode_include.php?
I haven’t been able to try this yet because first I have to get it to display! I’ve installed the new shortcodes, and all other style options (1- will display, but not 9. I’ve tried the code on other pages on the site and fancy9 won’t show there, either. I did check the style css and other files, and fancy9 is listed. I’ve also tried deactivating and reactivating the plugin. I’m officially puzzled.
This is the page I’m trying to get the list on:
[http://www.closed-circle.net/WhereItsAt/list-of-titles]
The fancy list should be generating at the bottom under the three asterisks.
(The final lines of code on the page are:
<p style=”text-align: center;”>Blood Red Moon
Jane Fancher
[wp_eStore_add_to_cart id=49]</p>
<p style=”text-align: center;”>***</p>
<p style=”text-align: center;”>[wp_eStore_category_products_fancy id=1 style=9
order=3]</p>)
As I say, I’ve tried changing the style number within the same code and all the other styles will display…well 7 and 8 are all screwed up of course, but they display with the “you need to have…installed” warning. With fancy9, I don’t even get a warning.
(Embarrassment caveat: The page and in fact the whole site is very much under re-construction. The site is still on the old theme. I’m revamping in the background. We aren’t exactly what you’d call a high traffic site. Hopefully that’ll change someday.)
BTW…I just wanted to say how very much more this program has to offer than I ever realized. I put our little ebook site together in a handful of days two years ago in complete ignorance of what we needed/could use. Our shopping cart was something of a “gosh…they need to give us money, don’t they?” decision. I chose blindly for something that looked like I could make it work quickly and easily, and liked the little freebie cart so much that I went immediately for the full version…just in case.
That was the best decision I made back then, and I’m only now realizing how good. As part of the revamp, I began investigating other features the program offers and it’s making it possible to make the site much more how I saw it in my head, and doing it with a minimum of effort on my part.
What I never anticipated was the absolutely premium support of the product.
So, just…thanks, I guess, from an old writer trying to keep her head above water in this rapidly changing economic environment.
December 7, 2011 at 5:01 am #39221adminKeymasteryeah, removing that code should get rid of the description from the fancy9 display.
Regarding this fancy9 not displaying with the following category shortcode:
[wp_eStore_category_products_fancy id=1 style=9]
Please download a new version of the extra eStore shortcodes from here then give it a try after the update:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
December 9, 2011 at 12:42 am #39222JaneMemberOh…dear. Well…the good news it, it’s displaying. The not so good news is it’s not accommodating the text and variation boxes.
Sorry to be such a pest….
December 9, 2011 at 9:55 am #39223adminKeymasterFancy 9 is a one line display so it won’t be able to accommodate variations very well. Get a custom product display done and you won’t have this issue
December 10, 2011 at 2:54 pm #39224JaneMemberFancy1 or Fancy2 without the thumbnail would probably have worked, but they’re displaying oddly on my page.
[http://www.closed-circle.net/WhereItsAt/list-of-titles]
Alignment of image to information is all wrong. Probably something in my theme defaults, but I’m switching themes next week as a part of a general site upgrade, so I won’t mess with anything at this time.
However, poking around T&T, I found the following:
It sounds as if a fancy display sans thumb was created, but I’m not finding it anywhere. Am I just being blind?
If I wanted to just take the thumb out of Fancy2…would that be possible? I poked around the “includes” files for the main plugin but couldn’t find fancy2 anywhere.
December 10, 2011 at 10:25 pm #39225PeterMemberHi,
You can display your product without thumbnail image if you use the following:
[wp_eStore_fancy1_no_thumbnail id=1]
The above displays the title, description and an Add to Cart button.
There is also another variation for the buy now button:
[wp_eStore_buy_now_fancy1_no_thumbnail id=1]
October 9, 2013 at 2:13 pm #39226Troy MediaSpectator[wp_eStore_category_products:category_id:13:end] fancy shortcode includes an image. I want to simply have the headline, description price and add to cart button appear.
Is there such a code?
October 9, 2013 at 10:31 pm #39227wpCommerceModerator@Troy, please provide a link to the page in question so we can take a closer look.
March 29, 2015 at 8:53 pm #39228Troy MediaSpectatorSorry for the long delay on this:
Go to [http://marketplace.troymedia.com/doug-firby/]
You’ll see an item to purchase our columnist for a one-year contract.
We wanted to add a list of all of his columns (we created a category under his name) available for purchase below the contract item. But we didn’t want to have his photo (or any other for that matter) appear. We wanted a simple headline and description to appear. This is for two reasons: Having a thumbnail for each item would make for a very long page and a lot of additional work preparing the photo for each item.
We would also prefer a check box to the add to cart button, if that is possible.
March 29, 2015 at 11:34 pm #39229adminKeymasterYou should be able to use the product display template 9 (fancy 9) to list all those items. That should give you a layout you are after (simple list with name, description price and add to cart button). Have a look at it here:
https://www.tipsandtricks-hq.com/ecommerce/stylish-product-display-options-for-wp-estore-829
April 1, 2015 at 9:37 pm #39230Troy MediaSpectator[wp_eStore_category_fancy9 id=94]
Is that the code?
April 1, 2015 at 11:14 pm #39231wpCommerceModerator@Troy Media, That will work. I would recommend you to use the following shortcode though
[wp_eStore_category_products_fancy id="94" style="9" order="1" type="1"]
You will need to have the eStore extra shortcode addon for this to work.
Please check the “Category Display Shortcodes” section of the extra shortcode usage guide for more details.
April 2, 2015 at 6:26 pm #39232Troy MediaSpectatorThat’s starting to work. But the description isn’t wrapping. And there seems to be some superfluous white space above the item.
See [http://marketplace.troymedia.com/rashid-husain-syed/]
-
AuthorPosts
- You must be logged in to reply to this topic.