Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Popup Window Title Rate Topic   - - - - -

 
  • ghostrider
  • Junior Member
  • Members
  • Join Date: 05-Jan 11
  • 177 posts

Posted 15 July 2016 - 04:45 AM #1

I'm trying to create a popup window with the following code:

<a data-ca-target-id="popup" class="cm-dialog-opener cm-dialog-auto-size">TEST LINK</a>
	<div class="cm-product-layby-service hidden" id="popup">
		<p>TEST CONTENT</p>
	</div>

How do I insert a Title to to the Title of this popup window? The following field:

<span id="ui-id-2" class="ui-dialog-title">&nbsp;</span>



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20771 posts

Posted 15 July 2016 - 08:33 AM #2

I'm trying to create a popup window with the following code:

<a data-ca-target-id="popup" class="cm-dialog-opener cm-dialog-auto-size">TEST LINK</a>
	<div class="cm-product-layby-service hidden" id="popup">
		<p>TEST CONTENT</p>
	</div>

How do I insert a Title to to the Title of this popup window? The following field:

<span id="ui-id-2" class="ui-dialog-title">&nbsp;</span>

 

Try the following code:

{capture name="popup_content"}
TEST CONTENT
{/capture}
{include file="common/popupbox.tpl" id="popup" content=$smarty.capture.popup_content link_text="TEST LINK" text="TEST HEADER"}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • ghostrider
  • Junior Member
  • Members
  • Join Date: 05-Jan 11
  • 177 posts

Posted 15 July 2016 - 12:51 PM #3

It's so simple and elegant! Thank you!