View Single Post
  #36  
Old 12-31-2009, 06:10 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Add a pop-up information box to describe a product option

Quote:
Originally Posted by w3designstudios
Is there any way to use the content from a static page that is created within X-Cart in the pop-up? I figured I could make the pop-up simply be the static page that is created in X-Cart, but instead would like just the content of that page.

Any ideas?

Looking at the original code and instructions...

Quote:
If you want to link to a unique image/html page for each product, you can use this:

Code:

{if $v.classtext eq 'Option Name'} <a href="#" onClick="window.open('files/options/{$product.productid}.html','','scrollbars=no,resiz able=no,width=300,height=400,menubar=no,toolbar=no ');return false;" target="_blank"><img src="{$ImagesDir}/question.gif" border="0" style="vertical-align: middle;" alt="Click here for more info" /></a>{/if}


So if you are veiwing the details for a product with ID # 8, clicking on the link next to the 'Option Name' option will link you to files/options/8.html.

.. it shouldn't be too difficult. Just copy the html code from where the static page is created in x-cart, paste it into a good text editor, name it accordingly (i.e. 8.html), and upload it to the files/options/ directory. If you try to link the popup to the static page directly you may end up having your entire site in the popup window (I haven't checked this, but it seems like that is what would happen).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote