Page 1 of 2
loadmoduleid and AddToAny button don't work !
Posted: 08 Mar 2024, 12:52
by ScaleBXL
Hello
I followed the Nidzo guide to display AddToAny button on product view
I create template override of com_phocacart>item
I have used loadmoduleid and the plugin module anywhere code in default.php but no result
Any idea?
Plugins published
Module published and display on all pages/ no position
Re: loadmoduleid and AddToAny button don't work !
Posted: 08 Mar 2024, 21:52
by Nidzo
Do you have Ad Blocker in yout browser? Ad Blockers don't like AddToAny.
Re: loadmoduleid and AddToAny button don't work !
Posted: 09 Mar 2024, 11:08
by ScaleBXL
No I don't have it !
Re: loadmoduleid and AddToAny button don't work !
Posted: 09 Mar 2024, 11:26
by ScaleBXL
[Imgur](
https://imgur.com/jOtLwmH)
[Imgur](
https://imgur.com/jEV8N9c)
Same result with Module anywhere
Re: loadmoduleid and AddToAny button don't work !
Posted: 09 Mar 2024, 12:53
by mino182
You need to use it with content.prepare in php:
echo HTMLHelper::_('content.prepare', '{loadposition myposition}');
Or HTMLHelper::_('content.prepare', '{loadmoduleid 127}'); in your case...
Re: loadmoduleid and AddToAny button don't work !
Posted: 10 Mar 2024, 10:51
by ScaleBXL
That doesn't work either ! I have only the module title
One thing is clear, it is not at the plugin level but at the module level because I tried to display another module without problem
Re: loadmoduleid and AddToAny button don't work !
Posted: 10 Mar 2024, 13:18
by ScaleBXL
Perhaps another plugin or module to recommend to me?
Re: loadmoduleid and AddToAny button don't work !
Posted: 11 Mar 2024, 00:21
by Jan
Hi, the question is what exactly do you want to achieve?
Jan
Re: loadmoduleid and AddToAny button don't work !
Posted: 11 Mar 2024, 11:55
by ScaleBXL
What can be done with AddToAny buttons, share the products to social or whatsapp...
I haven't yet installed anything like a component or plugin that could create a conflict. I am at the beginning of my catalog, I only have one category, one product.
Re: loadmoduleid and AddToAny button don't work !
Posted: 11 Mar 2024, 16:29
by Jan
I don't fully understand this:
"That doesn't work either ! I have only the module title"
Each module has ID.
Jan