X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   rate product in popup window! (https://forum.x-cart.com/showthread.php?t=1810)

ciava 03-09-2003 08:35 AM

rate product in popup window!
 
Hi All

i'm still having trouble with vote.tpl and was hoping someone might be able to help?? the problem i am having is because my product.tpl now loads in it's own window when anybody tries to rate a product the product.tpl reloads and includes all the nav bars, headers etc instead of just the product spec the code for my vote.tpl is below i have also included the code for the button which opens the product.tpl as i suspect it's something to do with popup=on


Code:

{* $Id: vote.tpl,v 1.4 2002/12/03 11:55:44 svowl Exp $ *}
<FORM method=GET action="../customer/product.php">
<INPUT type=hidden name=mode value=vote>
<INPUT type=hidden name=productid value={$product.productid}>
<tr><td colspan=2>
<font class=ProductDetailsTitle>{$lng.lbl_customers_rating}</font>
</td></tr>
<tr><td class=Line height="1" colspan=2>[img]{$ImagesDir}/orangespacer.gif[/img]</td></tr>
{if $vote_max_cows ne ""}
<TR>
<TD>
{$lng.lbl_customers_rating}</TD>
<TD>

{section name=full_cows loop=$vote_max_cows}
[img]{$ImagesDir}/star_4.gif[/img]
{/section}
{if $vote_little_cow ne "0"}
[img]{$ImagesDir}/star_{$vote_little_cow}.gif[/img]
{/if}
{section name=free_cows loop=$vote_free_cows}
[img]{$ImagesDir}/star_0.gif[/img]
{/section}
</TD></TR>
{/if}
<TR>
<TD>
{$lng.lbl_customer_voting}</TD>
<TD>


<SELECT name=vote>
<OPTION value="" selected>{$lng.lbl_select_rating}</OPTION>
<OPTION value=5>{$lng.lbl_excellent}</OPTION>
<OPTION value=4>{$lng.lbl_very_good}</OPTION>
<OPTION value=3>{$lng.lbl_good}</OPTION>
<OPTION value=2>{$lng.lbl_fair}</OPTION>
<OPTION value=1>{$lng.lbl_poor}</OPTION>
</SELECT><INPUT type=submit value="{$lng.lbl_rate_it}">
</TD></TR></FORM>


button code:-

Code:

<a href="javascript:window.open('product.php?popup=on&productid={$products[product].productid}', 'blank', 'width=600,height=500,resizable,scrollbars=yes' ); void(0);">

regards

jon

funkydunk 03-10-2003 11:02 PM

Jon,

I tried this on your site and it gave me an access denied message.

Have you named your main page window?

If so you can just put in a target within the form action shown here.


All times are GMT -8. The time now is 02:59 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.