Announcement

Collapse
No announcement yet.

Displaying Price in Section Link

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

    #61
    Code:
    <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>
    This part in the code is doing the 10 word description part, so get rid of that. What else is showing that you do not want?

    Comment


      #62
      Thanks Lee, I want to get rid of everything (including product name, quantity etc) apart from the actual add to cart button. Is there a way I can do that?

      Comment


        #63
        I'm a bit confused Matt what you're trying to do, you want nothing on screen but an add to cart button, what will people think it is for or relating to?

        Do you want to explain or show a picture or provide a link to explain what you want to do, might be quicker that way to provide you with a solution. Good news is whatever you want will probably be possible, bad news is at the monent it makes no bloody sense lol.

        Comment


          #64
          Sorry Lee, I am the master of confusion after all...

          This is how my pages look like at the moment: http://www.10thway.co.uk/acatalog/St...gle_Sided.html

          As you can see I managed to have price, description etc at section link level. My problem is that I fear that many people may not click the links to view the products and add them to the cart (hence the red "Click the above link to view product details and add to cart button" text).

          I would like to have an add to cart button instead of the "Click the above link to view product details and add to cart button" text as I beleive it would help sales.

          Thank you very much for all your help so far mate.

          Comment


            #65
            Right, think i understand a bit better now, just need you to clarify a few things.

            The example link is showing me section layouts, when clicked that takes me to the one single product in that section, what we call SPP setup?

            The text we see on the section layout on your example page, that is the section description I take it or the product description being read by the extra code?

            Can you paste the whole of your section link layout code into here (in code tags) so i can see what you have.

            What you want basically is the facility to either add to cart at example page level (section) or they can click into the page and also add to cart there?

            Comment


              #66
              Hello Lee,

              1) correct

              2) section description

              3) section code as follows:

              Code:
              <table width="100%" cellspacing="0" cellpadding="5" border="0">
                 <tr>
                    <td align="center" valign="top" width="10%">
                       <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>
                    </td>
                    <td align="left" valign="top" width="90%">
                       <b><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"><actinic:variable name='SectionName'/></a></b><br />
                  <font color="ca003a"><small>Click the above link to view product details and add to cart button</small></font></br>  
               
              <actinic:block type="ProductList" >
              <actinic:block type="PriceList" >
              <b><actinic:variable name="PriceLayout" /></b>
              </actinic:block> 
              </actinic:block>
              
              </br></br>
                       <actinic:variable name='SectionDescription'/>
                    </td>
                 </tr>
              </table>
              4) I would like the add to cart button to display at section link for each product (http://www.10thway.co.uk/acatalog/St...gle_Sided.html) as well as keeping the add to cart button at spp level (i.e. http://www.10thway.co.uk/acatalog/10...le-Sided-.html).
              This would basically save the user from having to click one more level to add to cart. I hope I'm clear, but if not just let me know.

              Thanks mate!

              Comment


                #67
                Matt i have to pop out very shortly, try the below and see if that gets you anywhere near to what you want. I can take another look when i get back if no good. Copy all of this to replace all of what you have for your section link layout.

                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="5" border="0">
                   <tr>
                      <td align="center" valign="top" width="10%">
                         <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>
                      </td>
                      <td align="left" valign="top" width="90%">
                         <b><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"><actinic:variable name='SectionName'/></a></b><br />
                <actinic:block type="ProductList" >
                <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
                <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>
                </actinic:block>
                </div>
                <actinic:block type="PriceList" >
                <b><actinic:variable name="PriceLayout" /></b>
                </actinic:block>
                </actinic:block>
                </br></br><actinic:variable name='SectionDescription'/>
                      </td>
                   </tr>
                </table>
                The V8 aug has the complete code on page 20 something if you want to start with that as your starting point instead.

                Comment


                  #68
                  Thanks Lee, I'm off for lunch too, I'll try it as soon as I'm back.

                  Comment


                    #69
                    Hello Lee, it works! Please see here: http://www.10thway.co.uk/acatalog/St...gle_Sided.html

                    The only thing, I'd like to remove the quanity box as this did confuse the customers in the past. I was used to receive calls asking how many flyers would they receive if they were to order 1 quantity of 5000 flyers. Can this be done?

                    I do not wish to offend you, but I would love to be able to send you 500 laminated business cards as a thanks for your time. Details and template can be found here: http://www.10thway.co.uk/cgi-bin/ss0...F=10&NOLOGIN=1

                    Please PM me your delivery address and I'll sort it out.

                    Thanks,

                    Matt

                    Comment


                      #70
                      Try the following, that should do it:

                      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="5" border="0">
                         <tr>
                            <td align="center" valign="top" width="10%">
                               <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>
                            </td>
                            <td align="left" valign="top" width="90%">
                               <b><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"><actinic:variable name='SectionName'/></a></b><br />
                      <actinic:block type="ProductList" >
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
                      <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" /><br>
                      <input type="hidden" name="Q_<actinic:variable Name="ProductID"/>"  value="<actinic:variable name="DefaultQuantity"/>" />
                      </actinic:block>
                      </actinic:block>
                      <actinic:block type="PriceList" >
                      <b><actinic:variable name="PriceLayout" /></b>
                      </actinic:block>
                      </actinic:block>
                      </br></br><actinic:variable name='SectionDescription'/>
                            </td>
                         </tr>
                      </table>
                      Thanks for the offer of some cards, i've not used any for years myself so i'd just be having something for the sake of it. Appreciate the offer though, that's good enough for me.

                      Comment


                        #71
                        Thanks Lee! You are a super star, that works a treat!

                        Comment


                          #72
                          Hello Lee,

                          As discussed via email, I'm having troubles in making this code:

                          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="5" border="0">
                             <tr>
                                <td align="center" valign="top" width="10%">
                                   <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>
                                </td>
                                <td align="left" valign="top" width="90%">
                                   <b><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"><actinic:variable name='SectionName'/></a></b><br />
                          <actinic:block type="ProductList" >
                          <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%21%3d%202" >
                          <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>
                          </actinic:block>
                          </div>
                          <actinic:block type="PriceList" >
                          <b><actinic:variable name="PriceLayout" /></b>
                          </actinic:block>
                          </actinic:block>
                          </br></br><actinic:variable name='SectionDescription'/>
                                </td>
                             </tr>
                          </table>
                          work on this site: http://www.nitro-rc.co.uk/

                          I did exactly the same as 10th Way (overwritten the section link code with the above code), the add to cart buttons and quantity boxes are displaying fine in actinic, but when I go to upload the site I get coding errors:

                          Nested html form tags (70 places)

                          I am not trying to abuse your kindness, but I would really appreciate if you could help me finding a solution.

                          Thanks mate.

                          Comment


                            #73
                            Your "sort by" will be what's screwing you over (i think). That sits within a form, so when you add a form within that it creates this error as you can't have a form within a form. The actinic solution is very inflexible and pretty much has to be as it is, so you will need to alter the sort by method i suspect, but i have no idea what you have done there, so can't really guide you. If you're not that bothered by the sort feature, you don't seem to have so many products anyway, just get rid of that and it will all play ball.

                            Comment


                              #74
                              Oh bother... That's a real shame, the sort by feature is one of Norman's plugins. I don't have many products yet, but I will do in a few months. I need to think about this. Thank you very much for all your help Lee.

                              Have a great weekend mate!

                              Comment

                              Working...
                              X