Joomla and Ecwid Mini Cart Integration Code Topic is solved

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Greenleaf1+
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 23, 2021 9:54 am

Joomla and Ecwid Mini Cart Integration Code

Post by Greenleaf1+ » Wed Jun 23, 2021 10:05 am

Hi,

I am using Ecwid on my Joomla site and want to add a mini cart. Ecwid have provided me with the following code which they have told me to add to the Custom module tool in the Extensions>Modules section of the site. When I do this, however, Joomla removes a part of the code making it non-operational.

The code they provided is:

<div data-layout="SMALL_ICON_COUNTER" class="ec-cart-widget"></div>
<div><script data-cfasync="false" type="text/javascript"
src="https://app.ecwid.com/script.js?6132852 ... tform=code"
charset="utf-8"></script><script>Ecwid.init();</script></div>

And this is what remains after saving:

<div class="ec-cart-widget" data-layout="SMALL_ICON_COUNTER"> </div>
<div> </div>

The website is: http://pentlandwines.greenleaf1.co.uk/

Many thanks.

Greenleaf1+
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jun 23, 2021 9:54 am

Re: Joomla and Ecwid Mini Cart Integration Code

Post by Greenleaf1+ » Wed Jun 23, 2021 1:12 pm

This has been resolved - due to the Editor.

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6890
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla and Ecwid Mini Cart Integration Code

Post by AMurray » Thu Jun 24, 2021 12:33 am

OK, resolved topic but.....if you weren't aware there's a plugin on the JED for ECWID. Which would have made things alot simpler and avoids the editor-stripping-code issue.

https://extensions.joomla.org/extension/ecwid/
Regards - A Murray


Post Reply

Return to “Extensions for Joomla! 3.x”