Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – shortcode for product page url
Tagged: Product url, shortcode product url
- This topic has 5 replies, 3 voices, and was last updated 9 years, 9 months ago by admin.
-
AuthorPosts
-
February 19, 2015 at 8:08 pm #12241KorotkovMember
Hi,
In your excellent plugin, there’s a shortcode for “info”: [wp_eStore_product_details id=1 info=”name”] etc. I know that you list the shortcodes in the pdfs, but you don’t say there “list of all available info values”, you say “for example”, and somewhere here on the forum I already saw something that was not added to the pdf: “price_formatted” or something like this.
Do you have any info value available to post Product Page Url? I use my own “display template”, and for this it would be great to use the link by the product id. Is it possible? I tried “url” and “page_url”, but to no avail. Do you have an updated list of all possible info values?
Thank you!
February 20, 2015 at 12:45 am #68682adminKeymasteruse the following parameter to get the product page URL field’s value:
product_url
We intentionally don’t list everything in our shortcode documentation. We have many many many shortcodes. Some of those shortcodes are for advanced/developer type users. If we listed everything in that one PDF file, it can create a bit of confusion for an average user. Developers love to search and find stuff so they will always find the info
February 20, 2015 at 12:01 pm #68683KorotkovMemberThank you! Is it possible to get the list for my use?
Thank you!
February 20, 2015 at 1:18 pm #68684wzpModerator@Korotkov — Thank you! Is it possible to get the list for my use?
@admin — If we listed everything in that one PDF file, it can create a bit of confusion for an average user. Developers love to search and find stuff so they will always find the info
Hint: If you have access to a Unix/Linux/*nix command line, cd over to the plugin directory and issue the following shell command:
grep add_shortcode *.php
* This gives you a list of filter/hook functions for each recognized shortcode.
* Then, for the shortcode of interest, grep for the name of the filter/hook function.
* From that result you determine which file contains the function that parses the shortcode.
* You can then examine the parsing code for the shortcode.
February 20, 2015 at 3:39 pm #68685KorotkovMemberHi,
I don’t have the access to the command line, it would be really nice to just get the list in text form, please.
Thank you!
February 21, 2015 at 1:50 am #68686adminKeymasterLets try this first:
Watch the following video to learn how to use PHPMyAdmin tool:
Then you will be able to look at the wp_eStore_tbl from there. All the column names in that table will work for you.
-
AuthorPosts
- You must be logged in to reply to this topic.