Announcement

Collapse
No announcement yet.

Help with Category Alignment please

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

    Help with Category Alignment please

    Hi Actinic community!
    As always I need your help, I'd like to be in a position to return the favour/s, but if I was, I would be asking questions like this.... One day I'll get the hang of it!

    Now, after finally finding the "Holy Grail" of all posts - http://community.actinic.com/showthr...eferrerid=2641

    and after adding a very slight "tweak" to show stock, I can't get it all to line up!! Where have I gone wrong please? This is what it looks like - http://it-shop-online.co.uk/acatalog..._Switches.html

    and this is the code I used for the custom category -

    Code:
    <!-- SectionLine HTML begin -->
    	
    	<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>
    
    <div class="product_list">
    <div class="image_product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" /></a></div>
    <div><h3 class="product"><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><span style="color:<actinic:variable name="Palette2" />"><actinic:variable name='SectionName'/></span></a></h3></div>
    <actinic:block type="ProductList" >
    <b>Estimated Available Stock</b>: <span style="color:#f00"><actinic:variable name="StockLevel" /></span><br />
    <div style="float: right;">
    <table>
    
    <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" >
    <actinic:variable name="AddToCartButton" /><br>
    <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br>
    <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" /> <br>
    </actinic:block>
    
    </table>
    </div>
    <actinic:block type="PriceList" >
    <b><actinic:variable name="PriceLayout" /></b><br><br>
    </actinic:block>
    <actinic:block php="true" >
    $sShort = "";
    $nCount = 0;
    $sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
    foreach(explode(" ", $sOriginal) as $sWord)
    {
    if ($nCount > 60)
    {
    $sShort .= "...";
    break;
    }
    $sShort .= $sWord . " ";
    $nCount++;
    }
    echo $sShort;
    </actinic:block>
    </actinic:block>
    <br><a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self">More Info...</a>
    </div>
    
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
    </form>
    </actinic:block>
    </table>
    <!-- SectionLine HTML end -->

    #2
    Remove the redundant table tags.

    Code:
    <div style="float: right;">
    <table>
    
    <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" >
    <actinic:variable name="AddToCartButton" /><br>
    <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><br>
    <input type="text" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" /> <br>
    </actinic:block>
    
    </table>
    "Opportunities multiply as they are seized." - Sun Tzu

    Comment


      #3
      i cant really see anything wrong with this layout...

      perhaps you need to explain what you need, or even draw us a mock up?

      looks fine to me.

      Comment


        #4
        Also, I'm not exactly sure what you mean by "line up". What is it that you would like lined up? Can you be a bit more specific.

        I see that the description extract wraps around your quantity prompt box in FF which looks rather messy. Adding a <br /> just before the block that starts $sShort = ""; should sort this for you.
        "Opportunities multiply as they are seized." - Sun Tzu

        Comment


          #5
          Thanks for the replies.
          Removing the the table tag at the very end brought it all back into line. Thanks!

          Comment

          Working...
          X