Announcement

Collapse
No announcement yet.

Section Listing Page Layout

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

    Section Listing Page Layout

    I'm trying to use the "create a listing page which links through to full details pages - method 2" but am having trouble in moving the add to cart button as I haven't a clue trying to postion with css.

    Can anybody advise me how I move it so it sits opposite the more info link at the bottom of the page.

    #2
    Bob you have got to provide a URL for us to see things, you can see the site, we cannot. We are just guessing otherwise.

    Comment


      #3
      Lee - I can't upload the changes at present as our site takes orders throughout the daytime. The code I am needing to change is from the AUG.

      <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" >
      <div style="float: right;">
      <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" />
      </actinic:block>
      </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 > 10)
      {
      $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>

      Comment


        #4
        Try:

        PS: Test mode is for just this, so you can 'test' things and still leave your main site running.

        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>
        
        <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>
        <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 > 10)
        {
        $sShort .= "...";
        break;
        }
        $sShort .= $sWord . " ";
        $nCount++;
        }
        echo $sShort;
        </actinic:block>
        </actinic:block>
        <br/>
        <actinic:block type="ProductList" >
        <div style="float: right;">
        <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" />
        </actinic:block>
        </div>
        <actinic:block type="PriceList" >
        <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>

        Comment


          #5
          Lee - Gave the code a try but the add to cart button and quantity box don't show. After playing around a little I've noticed that as soon as I place them below the section description variable they disappear.

          Comment


            #6
            Still getting the same problem, I played with this for 3 hours early and still had no joy getting it to show at the bottom...

            Comment


              #7
              Try this, i can't be exact i'm afraid as i am uploading so cannot post into actinic to try and make head nor tail of it. Let me know what is wrong or better still upload in test mode so i can see:

              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>
              
              <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" >
              <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 > 10)
              {
              $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>
              
              <actinic:block type="ProductList" >
              <div style="float: right;">
              <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" >
              <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:variable name="AddToCartButton" />
              </actinic:block>
              </div>
              </actinic:block>
              </div>
              
              <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
              </form>
              </actinic:block>

              Comment


                #8
                Just tried, uploaded and I've got the result I wanted, many thanks for your time on this Lee...

                Comment


                  #9
                  Woohoo Bob at last, alls well that ends well, i hope you've tested it thoroughly.

                  Comment

                  Working...
                  X