loadmoduleid and AddToAny button don't work !

Phoca Cart - complex e-commerce extension
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

loadmoduleid and AddToAny button don't work !

Post 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 :shock:

Any idea?
Plugins published
Module published and display on all pages/ no position
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: loadmoduleid and AddToAny button don't work !

Post by Nidzo »

Do you have Ad Blocker in yout browser? Ad Blockers don't like AddToAny.
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: loadmoduleid and AddToAny button don't work !

Post by ScaleBXL »

No I don't have it !
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: loadmoduleid and AddToAny button don't work !

Post by ScaleBXL »

[Imgur](https://imgur.com/jOtLwmH)

Image

[Imgur](https://imgur.com/jEV8N9c)

Same result with Module anywhere
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: loadmoduleid and AddToAny button don't work !

Post 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...
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: loadmoduleid and AddToAny button don't work !

Post by ScaleBXL »

That doesn't work either ! I have only the module title :D

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 :idea:
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: loadmoduleid and AddToAny button don't work !

Post by ScaleBXL »

Perhaps another plugin or module to recommend to me?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: loadmoduleid and AddToAny button don't work !

Post by Jan »

Hi, the question is what exactly do you want to achieve?

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 35
Joined: 14 Feb 2024, 14:20

Re: loadmoduleid and AddToAny button don't work !

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: loadmoduleid and AddToAny button don't work !

Post by Jan »

I don't fully understand this:

"That doesn't work either ! I have only the module title"

Each module has ID.

Jan
If you find Phoca extensions useful, please support the project
Post Reply