View Single Post
  #1  
Old 11-10-2016, 12:11 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Help: Pupup window not opening for "Ask a question about" link

Hello,
I am trying add link "Ask a question about this product" in my mobile skin template.

I added following code in product_details.tpl in mobile skin template.
HTML Code:
<div class="ask-question"> {include file="customer/buttons/button.tpl" button_title=$lng.lbl_ask_question_about_product style="link" href="javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=`$product.productid`')"} </div>
The link is appearing on product page now but it's not opening the popup window

is there any javacript code needs to be apply before </head> ?
Bcoz google chrome console display following error

HTML Code:
Uncaught ReferenceError: popupOpen is not defined at HTMLAnchorElement.onclick
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote