We want to add special order items to our site. Currently, the same add-to-cart button appears on all items pages and would also appear on the special order item pages. I would like to make a custom item drill-down template for these special order items which would have a different add-to-cart button than our regular items.
Here's what I've done so far...
[LIST]
[*]Made a copy of our usual item drilldown template and renamed it SPECIAL.
[*]Went to the section with all the add-to-cart stuff
[INDENT]<table width="170" cellspacing="3" cellpadding="0" style="font-size: 11px; border: 1px solid #ccc; background-color: #FFFFFF;">
<%=getCurrentAttribute("item", "addToCartHTML")%>
</table>[/INDENT]
and replaced <%=getCurrentAttribute("item", "addToCartHTML")%> with the html for the add-to-cart button as it is entered in our theme:
[INDENT]<tr align='left'>
<td class='smalltext' width='1%'><NLADDTOCARTITEMID><NLADDTOCARTQUANTITY><INPUT type='button' class='bgbutton' value='Add to Cart' id='addtocart' name='addtocart' onkeypress="window.event.cancelBubble=true;" onclick="<NLADDTOCARTCLICKSCRIPT>"><NLADDTOCARTOPTIONS></td>
</tr>
<tr align="left">
<td class='smalltext'><font color="#666666"><%=getCurrentAttribute('item', 'custitemshipping')%></font></td>
</tr>[/INDENT]
[*]Apply the new template to one of our special order items and I get an add-to-cart button which doesn't work. The quantity input box and item options do not appear. <NLADDTOCARTITEMID>, <NLADDTOCARTQUANTITY>, <NLADDTOCARTCLICKSCRIPT>, <NLADDTOCARTOPTIONS> all seem to be ignored.
[/LIST]
Here are screenshots of what I want and what I get:
and
Obviously, I'm missing something. Does anyone know how to do this?
(just to be super-clear on this: I only want to replace the add-to-cart button in this one item drilldown template -- not site-wide. I know how to do it site-wide.)
Thanks, Mimi