|
Javascript Popup TemplateThe javascript popup templates are used to create javascript and a link to pop up another page in a window (for shipping or other information). Parameters passed to the template allow you to determine the location of the page to pop up, the text to show in the link (or you could pass html for an image link) as well as the width and height of the popup box. You can see these templates in use just above this text. To install the templates: First, save the files listed below and upload them with the template upload program. The yst-jspopup-call template isn't used but you can upload it to see a sample of the call or copy the call in the template for placement in your templates. The call used to call this template can be seen in the yst-jspopup-call template but here is the format (notes are in parentheses). CALL :yst-jspopup "info.html" (this is the location of the page to pop up) "text message" (this is the text message to be shown in the link that the customer sees) 270 (width of the popup box) 330 (height of the popup box) If you are using standard templates and want the popup link to appear just above your item's order buttons and pricing you would edit your copy of the page-body template (most likely yourstorename-page-body) and click on the WHEN in the statement that looks like: WHEN OR NONEMPTY @code CALL :rtmltemplates-has-price and then simply use the PASTE WITHIN. To download the templates simply right click on the following links and use the "Save as" option to save them to a folder Template 1: yst-html-tag.rtml Template 2: yst-jspopup.rtml Template 3: yst-jspopup-call.rtml | |||||||||||||||||





