Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › J Shortcode Plugin
Tagged: shortcode nesting
- This topic has 11 replies, 2 voices, and was last updated 13 years, 6 months ago by amin007.
-
AuthorPosts
-
May 11, 2011 at 1:42 pm #3379rjdouganMember
I am using the J Shortcode plugin to have an accordion affect within the product description. The is working fine with version 4.5.0 of the WP eStore plugin. However, when I upgrade to the current version 5.3.2 the accordion affect is broken and the shortcode [jaccordion] and [/jaccordion] just show as text within the description.
What is different between the two versions? Is there a work around to get the accordion affect to work with v 5.3.2
Here is the link to the J Shortcode plugin
http://www.jshortcodes.com/making-shortcodes-for-jquery-accordion-and-tabs/
May 12, 2011 at 12:14 am #32342amin007ParticipantWhat shortcode are you using to display the product? Please post a link to the page where this is happening.
May 27, 2011 at 6:34 pm #32343rjdouganMemberThe short code I am using is [jaccordion] here is a link – http://thesilverclouddiet.com/vitamins-dietary-supplements/
Also, when I deactivate Version v5.3.2 and go back to Version v4.5.0 the email notification on sales does work, sales don’t get recorded in the DB and I get the following error when I try to access Manage Products in the Dashboard Admin. Looks like I am stuck with v5.3.2 but need to correct the shortcode issue
May 27, 2011 at 7:10 pm #32344rjdouganMemberI just tested with a different accordion plugin – Content Accordion – http://patrick.forringer.com/2011/04/wordpress-content-accordion/ and am get the same results as J Shortcode plugin
May 28, 2011 at 2:29 am #32345amin007ParticipantYou have the following scenario going on your site:
Just so you can find them easily… view the source code of your page and look for the following two lines of code which is including two different versions of JQuery on your site (one coming from your theme)… it’s a mess:
<script type=”text/javascript” src=”http://thesilverclouddiet.com/wp-content/themes/quickrise/assets/js/jquery-1.3.2.min.js”></script>
<script type=’text/javascript’ src=’http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js?ver=3.1.2′></script>
May 28, 2011 at 4:15 am #32346rjdouganMemberThanks for this explanation but I don’t understand what I need to do to fix this – Use a different theme? When I test with the base WordPress theme TwentyTen the accordion is still broken in the product description.
Also, the shortcode works fine when it is not a part of the product description – see this link – http://thesilverclouddiet.com/test/ below the product information the accordion is working.
Please provide some more direction, thank you.
May 28, 2011 at 11:46 pm #32347amin007ParticipantYou have got the following line of code coming from your theme:
<script type="text/javascript" src="http://thesilverclouddiet.com/wp-content/themes/quickrise/assets/js/jquery-1.3.2.min.js"></script>
So switching the theme will take care of that one (the article I linked explains how Jquery library should be included… so the theme developer simply need to follow WordPress’s guideline)
Then you have the following line that is coming from a plugin which also need to be removed:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js?ver=3.1.2'></script>
You can do this test to identify which plugin is doing this (look at the plugin test section):
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
The above just takes care of the JQuery conflicts you have on the site. Next, lets look at whats happening with the shortcode filtering. Which WP eStore shortcode are you using to display the products?
June 1, 2011 at 1:21 pm #32348rjdouganMemberI tested a new theme – the WordPress default – TwentyTen and the accordion is still broken. This accordion worked fine with Version v4.5.0 before I upgraded to release version 5.3.2.
The line you said needed to be removed:
<script type=’text/javascript’ src=’http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js?ver=3.1.2′></script>
is coming fro the J-Shortcode plug-in. When I deactivate this plug-in the line of code is gone.
Why did this work fine with the older version 4.5.0 but not the current version? I need some more help to resolve this issue.
June 1, 2011 at 1:34 pm #32349rjdouganMemberOne more thing. When I test the accordion shortcode outside of the WP eStore product description area it works fine. See link http://thesilverclouddiet.com/shortcode-test/ that has the same html – shortcode as is used on http://thesilverclouddiet.com/vitamins-dietary-supplements/anti-aging-factor/ and displays the accordion correctly.
Something is happening with WP eStore that is breaking the shortcode. It works fine with the theme jquery script as seen in the test page.
Your help will be greatly appreciated.
June 1, 2011 at 11:59 pm #32350amin007ParticipantI asked you the following question in previous post and didn’t get a reply yet:
Which WP eStore shortcode are you using to display the products?
Can you please copy and paste the exact shortcode that you are using (the one that is not working with this accordion thing).
June 2, 2011 at 3:58 am #32351rjdouganMemberThe shortcode used on the product pages are the following:
[wp_eStore_fancy1 id=xx]
[wp_eStore_cart_fancy1_when_not_empty]
June 2, 2011 at 5:07 am #32352amin007ParticipantThis is the exact shortcode that you were using before? Nothing has changed in that shortcode. Lets give it a try by changing the shortcode filtering priority to force the filtering of the fancy display to happen before the J Shortcode plugin.
Please open the “wp_eStore1.php” file and find the following line of code:
add_shortcode('wp_eStore_fancy1', 'eStore_fancy1');
Once you find it change it to the following:
add_shortcode('wp_eStore_fancy1', 'eStore_fancy1',9);
-
AuthorPosts
- You must be logged in to reply to this topic.