Tagged: x
-
AuthorPosts
-
October 27, 2016 at 5:03 am #1232888
Hi guys,
I was wondering if you could help me find WHY a WC shortcode is breaking my site and how could i fix it.
Here’s the thing: i changed the WC single-page template to only show the image and some attributes. i removed pretty much everything because i wanted to use it on a custom cornerstone page i created.
I added a JS effect that toggles visibility on a certain section when a button is clicked and i added the [product_page id=”XXX”] shortcode in that “hidden” section. the thing is that as soon as i hit save and try to access the page i get a broken page: http://prntscr.com/czjefh it should show this: http://prntscr.com/czjenh
this used to work perfectly on woocommerce 2.6.1, but stopped working on the current versions (last tested on 2.6.7)
I don’t know if the problem is the toggle JS code or something else, i was hoping you could help me find out what is it or why is it acting like this, i can take it up from there :p
October 27, 2016 at 5:05 am #1232889This reply has been marked as private.October 27, 2016 at 5:45 am #1232925Hey there,
It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
October 27, 2016 at 7:17 am #1233034Not really. i can’t place that shortcode ANYWHERE inside cornerstone :/ i know you have woocommerce compatibility but this particular shortcode which is provided by woocommerce itself ( [product_page id=โXXXโ] ) doesn’t work if used inside cornerstone ๐ i wanted to know if you knew why.
October 27, 2016 at 10:32 am #1233306I have tested that shortcode in my test site and the product displays fine. Please try downgrading to WooCommerce 2.6.4 as this is the currently supported version. See https://community.theme.co/kb/version-compatibility/
Thanks.
October 27, 2016 at 11:05 am #1233387I just tried that and the problem remains ๐
If i add the code on a normal page (no cornerstone) it works but as soon as i add it in cornerstone it stops working and shows me what i showed you earlier(screenshots above)
(you can access my site to see the problem live)
October 27, 2016 at 5:18 pm #1233868Hi there,
There is an internal server error and the page isn’t fully loaded. If you’ll check its source code (not the developer tool’s inspector), you’ll notice that page is halted at
</div><!-- .summary -->
. I can check the detail for this error if I could check it through FTP. Please provide your FTP login credentials as well.Thanks!
October 27, 2016 at 5:25 pm #1233879This reply has been marked as private.October 27, 2016 at 5:26 pm #1233881I think that’s being caused by the shortcode itself, i still don’t know why, though. it only happens when i insert it on cornestone, it works normally if i just add it on a normal page with a text editor ๐
October 28, 2016 at 1:20 am #1234327Hello There,
It turns out that you are using an older version of WooCommerce. Could please update to the latest version?
After the updates, please add this following code in your child theme’s functions.php file// Remove UpSells // ============================================================================= function remove_upsells(){ remove_action( 'woocommerce_after_single_product_summary', 'x_woocommerce_output_upsells', 21 ); } add_action('wp_head', 'remove_upsells'); // =============================================================================
This should help you.
October 28, 2016 at 2:08 am #1234367Hi!
I just checked and it works now! i can’t believe the upsells were the ones preventing everything from working ๐ฎ
However i used to have v 2.6.7 but downgraded to 2.6.4 as per a request from one of you guys (you told me 2.6.4 is the last compatible version), should i ultimately upgrade or not (i’m a bit confused about this at this point :/ )
October 28, 2016 at 3:27 am #1234463Hello There,
Youโre welcome! We are just glad we were able to help you out.
Thanks for letting us know that it has worked for you.I guessed you can update to the latest. The upsells should no longer bother you now.
Cheers.
-
AuthorPosts