- This topic has 6 replies, 3 voices, and was last updated 12 years, 4 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 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 › Where are shortcodes defined
Tagged: eStore short code
I’m trying to locate where the short codes are defined in eStore. I’m working with the developer of Sugar Modal Windows and currently the eStore short code is not working on a post that includes the Sugar Modal Windows short code. Other short codes do work. Can you help?
Thank you!
What is the conflicting eStore shortcode? I noticed that the Sugar Modal Windows plugin uses jQuery. That may be the conflict.
In this particular case it’s [wp_eStore:product_id:52:end]. From what I’ve read (and I know little about programming) it just might be a jQuery conflict.
Shortcodes are defined using the WordPress’s shortcode API. If this plugin you are referring to is just placing the mentioned shortcode in a modal window where WordPress is not running the “the_content” filter then shortcodes won’t get rendered. Try using the PHP functions directly which will be easier to use from another plugin. PHP function references can be found here:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Thanks, will pass this along to the Sugar Modal Windows developer.
Is there any way you can tell me the file name and line number for the short code definition?
Thanks
Look in the wp_eStore1.php file for a line that contains:
function print_wp_digi_cart_button($content)
Technically, this particular eStore shortcode is really a “content filter.” As such, I’m in agreement with @Admin that perhaps the developer is not properly rendering “the_content” within his own plugin.