kealan Posted May 22, 2015 Share Posted May 22, 2015 Hi All, Cheers in advance for anyone who picks up on this. I appear to be having a clash between the 'customers who also bought section' at the bottom of the products page and the Facebook comment feed.On any page where there are product recommendations 'customers who also bought section' it displays neither recommendations nor the Facebook feed. It simply displays the number 2 (see showing2.png). The Facebook feed works fine on any page without product recommendations (see showing feed.png). Its a fresh upgrade from v5 so I am using a very nearly stock foundation skin, with no changes to the content.product tpl file itself. The Facebook plugin is from the extensions market installed with a token. LAMP / PHP Version 5.4.40 / mysql 5.5.41 Quote Link to comment Share on other sites More sharing options...
kealan Posted June 9, 2015 Author Share Posted June 9, 2015 shameless bump / I had CC5 incorrectly in the footer, issue is for cc6 hope this will help Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2015 Share Posted June 10, 2015 "On any page where there are product recommendations 'customers who also bought section' it displays neither recommendations nor the Facebook feed."Allow me to say I am confused. You mention the feature, "customers who also bought section" (which is a feature seen during checkout), but you show pictures of the "Customer Reviews" feature (which is a feature of the View Product page).Can we have a web address for this store? Quote Link to comment Share on other sites More sharing options...
kealan Posted June 10, 2015 Author Share Posted June 10, 2015 Hi Brian,I have related products on my products page and I dont have additional related products mods. I thought related products this was a default addition to cc6 / foundation? I had written a related products modification for the cc5 version of the store but didnt expect it survived the upgrade.. store is https://mcsoutdoorstore.ie still under development but starting to take shape. Seems like the bad code is my own though if the related products is not a default addition to cc6 / foundation. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2015 Share Posted June 10, 2015 Help me by mentioning a specific product page I should be looking at. Quote Link to comment Share on other sites More sharing options...
kealan Posted June 10, 2015 Author Share Posted June 10, 2015 https://mcsoutdoorstore.ie/jack-murphy-ladies-malvern-coat.html you can see the number two on this page, I can disable the facebook plugin to display the related products if it helps. Cheers Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2015 Share Posted June 10, 2015 Well, I see the 2 under the "Write a Review" block. The HTML suggests that this is coming from either the getCommunityHTML() function of the Facebook social plugin, or from somewhere else -- perhaps your RP mod.I don't see a call to Facebook, so if it is enabled, it is malfunctioning. I do see six calls to another website - perhaps a related site of yours?We can help get your RP mod working with CC6 if you want. Quote Link to comment Share on other sites More sharing options...
kealan Posted June 10, 2015 Author Share Posted June 10, 2015 Yes having a few teething issues with calling FB in the footer and the page but thats another story! Not sure about the 6 external calls, all external calls on that page should be plugin / analytics related etc. I have disabled the facebook comment section only and the related products display again, but I have left the like buttons in place via the FB module in admin so it seems to just be the comments element causing the problem. Regards Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 10, 2015 Share Posted June 10, 2015 In the Foundation template content.product.php, near the bottom of the file, find: {foreach from=$COMMENTS item=html} {$html} {/foreach} Is your RP mod code above that or below it? Quote Link to comment Share on other sites More sharing options...
kealan Posted June 10, 2015 Author Share Posted June 10, 2015 Hi Brian,I seem to have given the wrong info I do appear to be using a related products module v1.0.0, I assume out of the box. I cannot see a call on that template file that relates to the related products being displayed.Thanks Quote Link to comment Share on other sites More sharing options...
kealan Posted June 10, 2015 Author Share Posted June 10, 2015 (edited) << code removed >> Edited June 11, 2015 by kealan Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 11, 2015 Share Posted June 11, 2015 Well, if whatever is showing the '2' is not code that been added to this template file (you can delete the code posted above, it's no longer necessary to see it), it must be coming from the $COMMENTS array. An array that gets populated by plugins.So there is an RP mod. But from the Extensions Marketplace, I cannot tell which one.Open the mod's settings panel. There should be some indication who published it. Quote Link to comment Share on other sites More sharing options...
kealan Posted June 11, 2015 Author Share Posted June 11, 2015 I appear to be using a plugin from Webcity see excerpt from the xml below - but no reference for this plugin on the site <creator><![CDATA[Webcity]]></creator> <homepage><![CDATA[http://www.webcity.com.au]]></homepage>I would hate to waste any of your time given I seem to be using an outdated mod thats no longer supported, again my understanding though is appears to be deeply flawed was I was using this from stock so the issue was a wider one and may affect others. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 11, 2015 Share Posted June 11, 2015 I'm still interested in solving this. If you are as well, send me a PM with your email address. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 12, 2015 Share Posted June 12, 2015 We found the problem with this plugin. (It seems it was myself who made a number of interesting edits to this plugin -- which this latest version may currently be available from WebCity.au.The plugin copies the action of finding "Customer Also Bought" as seen during checkout, and the result is shown on the Product Details page.My edits added the results to the Smarty variable $COMMENTS array. $COMMENTS is used by the CubeCart->_product() and CubeCart->loadPage()@case:_a=document functions and are stingy* about it.I was using the wrong PHP function to incorporate the plugin results into $COMMENTS. I was using array_unshift(), which returns an integer, not the resultant array. The correct function is array_merge().*Stingy: The two cases mentioned about using $COMMENTS is that the results of all enabled Social modules are grouped into an array and assigned directly to $COMMENTS. Thus, if any other type of module/plugin wants to use the $COMMENTS variable, and have already loaded their content into it using a hook, there is the very real possibility of having it trashed/replaced by content developed by the two CubeCart functions. Quote Link to comment Share on other sites More sharing options...
kealan Posted June 12, 2015 Author Share Posted June 12, 2015 (edited) Hi Brian, Many thanks for your assistance changing that from unshift to merge had the desired effect! I will update again once I get some time to add some meaningful styling RegardsKealan Edited June 12, 2015 by kealan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.