Announcement

Collapse
No announcement yet.

Missing end of block not sure where?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Missing end of block not sure where?

    I have been working on a site and it is giving me coding errors on this block below, it is saying there is a missing end of block, but I dont know where it should go.

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
          <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"> 
             <input type="hidden" name="SID" value="<Actinic:Variable Name="SectionID"/>" />
             <input type="hidden" name="PAGE" value="PRODUCT" />           
             <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
             <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                <!-- Hidden field when in trial mode -->
                <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
             </actinic:block>
    </actinic:block>
    
    <table width="100%" cellspacing="0" cellpadding="10" border="0">
       <tr>
          <td width="25%" align="center" valign="top">
             <a name="<Actinic:Variable Name="EncodedProductAnchor"/>"></a>
             <b><Actinic:Variable Name="ProductName"/></b>
             <br /><br />
             <actinic:variable name="ProductImageLayout" />
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
                <br />Ref: <actinic:variable name="ProductReference" />
             </actinic:block
    >      </td>
          <td align="left" width="75%" valign="top">
             <Actinic:Variable Name="ProductDescription"/>
    			<actinic:variable name="ExtendedInformationLinks" />
                    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
                <br />
                <a href="<Actinic:Variable Name="ProductLinkInfo"/>">
                   <Actinic:Variable Name="ProductLinkText"/>
                </a>
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCustomerMessageUsed%22%20%2f%3e">
                <br />
                <Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable Name="ProductID" />" COMPONENTID=-1><Actinic:Variable Name="RetailCustomerMessage"/></Actinic:PRICE_EXPLANATION>
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
    				<b>
    				<Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
                <actinic:variable name="PriceListRetail" />
                </Actinic:PRICES>
                </b>
             </actinic:block>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20False">
    	         <Actinic:NOTINB2B><br /><strong><actinic:variable name="ProductPriceNotEnabledMessage" /></strong></Actinic:NOTINB2B>
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForProducts%22%20%2f%3e">      
                <br /><actinic:variable name="DiscountList" value="Standard Discount List" />
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOtherInfoPromptShown%22%20%2f%3e">
                <br />
                <span class="actrequired"><Actinic:Variable Name="OtherInfoPrompt"/></span><br />
                <input type="text" name="O_<Actinic:Variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
             </actinic:block>
             
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsDatePromptShown%22%20%2f%3e">
                <br />
                <span class="actrequired"><actinic:variable name="DatePrompt"/></span><br />
                <actinic:variable name="DayList" /><actinic:variable name="MonthList" /><actinic:variable name="YearList" />
             </actinic:block>
             
             <actinic:variable name="AttributeList" />
             <actinic:variable name="ComponentList" />
             
    			<actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e%20AND%20%28%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e%20%3d%3d%20FALSE%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e%20%3d%3d%20FALSE%29" >  
    				<actinic:block if="%3cactinic%3avariable%20name%3d%22CartButtonVisibleToAllCustomers%22%20%2f%3e" >
    				<!-- This code is used when the quantity box is visible to all customers -->
                <br />
                <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>
                &nbsp;
    				<input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" />
    				</actinic:block> 
    				<actinic:block if="%3cactinic%3avariable%20name%3d%22EnabledForCustomerGroupID%22%20%2f%3e%20%21%3d%20%22%22">
    					<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e" >
    					<!-- This code is used when the quantity box is visible to retail customers, but not all other customer groups -->
    				<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />">
    					<br />
    					<span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span>
    					&nbsp;
    					<input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" />
    				</Actinic:ShowForPriceSchedule>
    					</actinic:block>
    					<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20FALSE" >		
    					<!-- This code is used when the quantity box needs to hidden from retail customers -->
    					<Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<br /><span class=''actrequired''><Actinic:Variable Name="QuantityPrompt"/></span>&nbsp;<input type=''text'' name=''Q_<actinic:variable Name="ProductID"/>'' size=''4'' value=''<Actinic:Variable Name="DefaultQuantity"/>'' />"></Actinic:ShowForPriceSchedule>
    					</actinic:block>
             </actinic:block>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
                <input type="hidden" name="Q_<actinic:variable Name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
             </actinic:block>
    
             <br /><actinic:variable name="CartError" />
    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                <br /><actinic:variable name="AddToCartButton" />
             </actinic:block>
    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e">
                <br /><br /><strong><span class="actrequired"><br /><Actinic:Variable Name="OutOfStock"/></span></strong>
             </actinic:block>
    
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e">
                <br /><br /><strong><span class="actrequired"><Actinic:Variable Name="CatalogSuspended"/></span></strong>
             </actinic:block>
             
             <actinic:variable name="ProductAlsoBoughtList" />
             
             <actinic:variable name="ProductRelatedProductsList" />
          </td>
       </tr>
    </table>
    
    
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
          </form>
    </actinic:block>

    #2
    If you double click on the error, does it take you to the right place? If you right click on the layout in the design library, you can use the 'compare' facility and if still none the wiser you can use the 'revert' feature to get things back as they were and then redo your changes.

    Comment


      #3
      It highlights this line when i click the error

      Code:
      			<actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e%20AND%20%28%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e%20%3d%3d%20FALSE%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e%20%3d%3d%20FALSE%29" >
      Not sure where to put the closing block

      Comment


        #4
        Use the compare facility as already outlined, it will show you, even highlight the changed line for you.

        Comment

        Working...
        X