How to assign HTML-Code to a button

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
UserName
 
 
Posts: 8
Joined: Thu May 03, 2018 10:58 pm

How to assign HTML-Code to a button

Post by UserName »

Hello together,

I actually try to switch from the paypal-add-to-cart-button to Ecwid e-commerce.

Ecwid holds on their website a generator to generate code which can be embedded on every website to add items to the Ecwid cart

Code: Select all

<div class="ecsp ecsp-SingleProduct-v2 ecsp-Product ec-Product-395410332" itemtype="http://schema.org/Product" data-single-product-id="395410332"><div class="ecsp-title" itemprop="name" style="display:none;" content="FFP2-CE0370"></div><div customprop="addtobag"></div></div><script data-cfasync="false" type="text/javascript" src="https://app.ecwid.com/script.js?65626913&data_platform=singleproduct_v2" charset="utf-8"></script><script type="text/javascript">xProduct()</script>
this button for example, I created there.

But when I add this code to a button, it does not work :-(

how do i have to assign such code to a button, that this code is executet by clicking the button?

thx in advance
Herbert
User avatar
Pablo
 
Posts: 21567
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to assign HTML-Code to a button

Post by Pablo »

You cannot just add this code to a button, that is not how HTML works.
It seems that the code is the button. If you want to add it to the page then use the HTML object.
Post Reply