Announcement

Collapse
No announcement yet.

More than one product per line

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

    More than one product per line

    Please can someone advise me how to show more than one product on a line?

    This is a feature of one of Actinic's live example sites -

    http://www.jewellery247.co.uk/acatal..._Rings_22.html

    - but I can't see how to do it.

    Does it mean playing with the source code?

    I would appreciate any guidance on this, so thanks in advance.

    Mark Barrett

    #2
    I wrote the patch that does this. It's now in the Knowledge Base so look at http://knowledge.actinic.com/users/k...ails.html#a365 for details.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      More than one product per line

      Norman

      That looks just great!!

      I can't wait to give it a try.

      I will back up the original text in case I do something wrong and need to get back to where I started.

      I wonder if this patch will be built into a future version? - I noticed that one of Actinic's competitors allows multiple products per line as standard.

      Anyway many thanks for this and for replying so promptly.

      Mark Barrett

      Comment


        #4
        More than one product per line

        Norman

        That has worked a treat.

        Can I pick your brains one last time please?

        The code seems to generate quite a lot of space (padding?) above and below the productimage.

        I would like the text which I have below the image a bit closer to it but I can't work out what creates that space.

        Alternatively I tried to valign the image to the bottom of the cell but I couldn't make that work either.

        If you can help me with this it will be "the icing on the cake."

        Thanks

        Mark Barrett

        Comment


          #5
          Sorry, I just wrote it. I don't actually use it myself so I am unable to see what you are seeing.

          I'd try looking at the source of a generated page (or save the page locally and view it with Dreamweaver) and match up what you see with the code in Product and Image templates.

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Norman

            That's just the advice I needed.

            As soon as I looked at the generated page in my HTML editor I could see that the unwanted space was not in the bottom of the image cell but at the top of the cell below (which has the Price in it.)

            I took a look in Act_ProductPrice and found there was a break command in there producing the unwanted extra line.

            So I now have my multiple columns and it all looks just how I want it to - thanks for getting me there!!

            Mark Barrett

            Comment


              #7
              Multiple columns errors

              I've tried using this code but get continuous error messages. This can be seen "in action" at www.shop4it.biz if you go to Forms, docs & templates | Personnel (which incidentally uses Norman's excellent menu code, thanks Norman!).

              Any ideas why this isn't working properly, anyone?
              Pat Nelson
              vcommunity - the business to business network
              email: pnelson@vcommunity.org.uk
              www.vcommunity.org.uk
              Experts in database integration for Actinic Stores

              For web hosting, visit: www.vhost.org.uk

              Advertise your company for £1 for a year on www.1000adpages.com

              Comment


                #8
                Have you definitely created the two custom properties and put values for them in 'Design | Options | Shop Defaults'?

                Maybe you could zip up your edited Act_ProductBody and Act_ProductLine and attach them here.

                Comment


                  #9
                  Zip file

                  Chris,

                  Yeah, both the CUSTOMVARS are in the right place and are set. I've attached the Zip file as requested. Incidentally, since making these changes I've also been getting an error message whenever I do a full site preview stating that the configuration variable DISCOUNTINFOBULK was not found in the HTML templates. I assume that this is because the code was originally written for v6 and not v7. If (when!) I get this working, is it going to be ok to just drop NETQUOTEVARISCOUNTINFOBULK back in there?

                  Regards


                  Patrick
                  Pat Nelson
                  vcommunity - the business to business network
                  email: pnelson@vcommunity.org.uk
                  www.vcommunity.org.uk
                  Experts in database integration for Actinic Stores

                  For web hosting, visit: www.vhost.org.uk

                  Advertise your company for £1 for a year on www.1000adpages.com

                  Comment


                    #10
                    Ahem!

                    OK, so here's the Zip file
                    Attached Files
                    Pat Nelson
                    vcommunity - the business to business network
                    email: pnelson@vcommunity.org.uk
                    www.vcommunity.org.uk
                    Experts in database integration for Actinic Stores

                    For web hosting, visit: www.vhost.org.uk

                    Advertise your company for £1 for a year on www.1000adpages.com

                    Comment


                      #11
                      You're right. It is only one custom property.

                      But the problem is that it is NUMCOLS rather than NUMSCOLS - if you remove the 'S' in the middle you should be fine.

                      And you can get v7 code from HERE

                      Comment


                        #12
                        There's a slightly more up-to-date V7 patch on www.drillpine.biz/actinicstuff/

                        Norman
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          Still plagued by errors

                          Hi guys,

                          I'm afraid that neither of those patches worked. I'm uploading the changes so you can see it online - if you have time to take a look.

                          Regards


                          Patrick
                          Pat Nelson
                          vcommunity - the business to business network
                          email: pnelson@vcommunity.org.uk
                          www.vcommunity.org.uk
                          Experts in database integration for Actinic Stores

                          For web hosting, visit: www.vhost.org.uk

                          Advertise your company for £1 for a year on www.1000adpages.com

                          Comment


                            #14
                            Ignore my previous post - I was getting confused (easily done)

                            Right - your code looks fine. Your problem is that your value for CUSTOMVAR:NUMCOLS is mot making it into the HTML.

                            e.g. your code says
                            Code:
                            <script language=JavaScript>
                            <!--
                            if ( currentcol != 0 )
                             {
                             while ( currentcol++ <  ) document.write('<td width="' + colwidth + '%">&nbsp;</td>');
                             document.write('</tr></table></td></tr>');
                             currentcol = 0;
                             }
                            // -->
                            </script>
                            and in the template it is
                            Code:
                            <script language=JavaScript>
                            <!--
                            if ( currentcol != 0 )
                             {
                             while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%">&nbsp;</td>');
                             document.write('</tr></table></td></tr>');
                             currentcol = 0;
                             }
                            // -->
                            </script>
                            Please check that 'Use as CUSTOMVAR' is selected in the NUMCOLS row in 'Design | Options | Site Defaults'.

                            Comment


                              #15
                              Embarrassed relief

                              Chris,

                              Thanks for that - it's solved the problem.

                              The embarrassing thing is, I already knew that - my excuse is that I haven't used CUSTOMVARS for a while and forgot about that...

                              Once again, many thanks.
                              Pat Nelson
                              vcommunity - the business to business network
                              email: pnelson@vcommunity.org.uk
                              www.vcommunity.org.uk
                              Experts in database integration for Actinic Stores

                              For web hosting, visit: www.vhost.org.uk

                              Advertise your company for £1 for a year on www.1000adpages.com

                              Comment

                              Working...
                              X