Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. <!-- begin cartadd template -->
  2. <div id="addtocart">
  3. <ss:if test="$product.attributeLists">
  4. <div id="attributes">
  5. <div>&nbsp;Please select options:</div>
  6. <dl id="attr-list">
  7. <ss:foreach item="productAttrList" within="$product.attributeLists">
  8. <ss:if test="$productAttrList.attributeValues">
  9. <ss:if test="$productAttrList.attributeValues.size > 1">
  10. <ss:if test="$productAttrList.displayType == DisplayType.RADIO">
  11. <ss:foreach item="attributeValue" within="$productAttrList.attributeValues">
  12. <ss:if test="$counter.currentRow==1">
  13. <dt><ss:font source="$font.paragraph"><b><ss:value source="$productAttrList.attributeLabel"/></b></ss:font></dt>
  14. </ss:if>
  15. <dd><ss:radio name="$system.concat('attributevalue_', $productAttrList.listNumber)" source="$attributeValue" checked="$counter.currentRow==1"/><ss:font source="$font.paragraph"><ss:value source="$attributeValue"/></ss:font><br>
  16. </ss:foreach>
  17. <ss:else/>
  18. <dt><ss:font source="$font.paragraph"><b><ss:value source="$productAttrList.attributeLabel"/>:</b> </ss:font></dt>
  19. <dd><ss:select source="$productAttrList.attributeValues" name="$system.concat('attributevalue_', $productAttrList.listNumber)"/></dd>
  20. </ss:if>
  21. <ss:else/>
  22. <dt><ss:font source="$font.paragraph"><b><ss:value source="$productAttrList.attributeLabel"/>:</b> </ss:font></dt>
  23. <dd><ss:value source="$productAttrList.valuesText"/></dd>
  24. <input type="hidden" name="$system.concat('attributevalue_', $productAttrList.listNumber)" value="$productAttrList.valuesText"/>
  25. </ss:if>
  26. </ss:if>
  27. </ss:foreach>
  28. </dl>
  29. </div>
  30. </ss:if>
  31. <ss:if test="$product.customService1Enabled || $product.customService2Enabled">
  32. <div id="servicetable">
  33. <dl id="custom-services">
  34. <ss:if test="$product.customService1Enabled">
  35. <ss:if test="$string.matches($product.customService1Title, 'NULL')">
  36. <ss:else/>
  37. <dt><label for="custom-service-1"><ss:value source="$product.customService1Title"/><ss:comment><span class="cost"><ss:value source="$product.customService1Fee" format="currency"/></span></ss:comment></label></dt>
  38. <dd><input id="custom-service-1" type="text" name="custom1" maxlength="50" size="20"></dd>
  39. </ss:if>
  40. </ss:if>
  41. <ss:if test="$product.customService2Enabled">
  42. <ss:if test="$string.matches($product.customService1Title, 'NULL')">
  43. <ss:else/>
  44. <dt><label for="custom-service-2"><ss:value source="$product.customService2Title"/><ss:comment><ss:if test="$product.customService2Fee"><span class="cost"><ss:value source="$product.customService2Fee" format="currency"/></span></ss:if></ss:comment></label></dt>
  45. <dd><input id="custom-service-2" type="text" name="custom2" maxlength="50" size="20"></dd>
  46. </ss:if>
  47. </ss:if>
  48. </dl>
  49. </div>
  50. </ss:if>
  51.  
  52. <span style="float: left; margin: 17px 0; width: 100%;">Quantity: <input type="text" name="qty" value="1" size="3"></span><ss:comment><ss:link shortcut="BuyIt" image="$templateSet.images['buyit.gif']"/></ss:comment><input type="image" src="$templateSet.images['buyit.gif']" value="Add To Cart" style="float: left;"/>
  53. </div>
  54. <!-- end cartadd template -->
Add Comment
Please, Sign In to add comment