Announcement

Collapse
No announcement yet.

Bestseller

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

    Bestseller

    I currently have a bestsellers list that i have created in the html templates using notepad. i am happy with how the list but to get the display to appear on the homepage, the store and the checkout i have to type (or paste) the code onto three different templates. the problem with this is that to change one item in the list all three templates need to be changed.

    Is there a way of typing this code once and getting the results on all three templates, or is there another way of setting up the bestsellers list thats easier to edit.

    Thanks in advance for any help.

    Olly.

    www.test4less.co.uk
    P.s. any ideas for improving the site would be appreciated

    #2
    Theres no easy way to include sections of HTML normally. As far as I'm aware Actinic doesn't have a method to include user-defined templates as NETQUOTEVARs (for v8 perhaps?).

    Try creating a custom variable which contains the HTML code. Then all you'll have to do is enter the variable name where you want your list to appear. I think there is a limit to the number of characters a custom variable can hold though.

    Another option is to use an inline frame which retrieved the HTML source from a seperate file.
    www.gbradley.co.uk
    Web Development, Actinic Patches, Scripts & more

    Comment


      #3
      Hi there, what you can do is create a file called 'best_sellers.txt' or whatever and then save this within your 'Site1' folder.

      Then create a new custom property called 'Best Seller List'. Then in 'Design | Options | Site Defaults', set the default value of 'Best Seller List' to be 'best_sellers.txt'. Then select 'Use as CUSTOMVAR', 'Is File Name' and 'Use File Content'.

      Then wherever you put CUSTOMVAR:BEST_SELLER_LIST in your templates, it will be replaced by the content of this file.

      Comment


        #4
        Bestsellers

        Thanks for al the help, i'm definatly getting closer.

        I have created the template 'Act_BestSellers.html' and have followed your instructions to setup the custom properties.

        I am now getting 'Act_BestSellers.html' appearing on my web page.
        Am i right in thinking that i haven't inserted the correct code into the html template that i created? If so what code do i need to insert?

        Thanks
        Olly

        Comment


          #5
          You've probably not followed all the steps in Chris's post above. You need "Use File Content" checked.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            If you are using a HTML file rather than a TXT file don't forget to strip out the <head></head><body></body> tags from the file otherwise they will be inserted twice into the finished page which can cause some browser issues


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Bestsellers

              Thanks very much, that has solved the problem on the preview page in Actinic. This doesn't load when the page is uploaded onto the internet though, the images are not displayed.

              Any theory's

              Thanks
              Olly

              Comment


                #8
                Best to keep the images in the root of the Site1 folder or specify them for upload under "additional files"


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #9
                  Bestsellers

                  I have now changed to using a .txt file to see if that would solve the problem, the images are stored in the site1 folder and i am using the same coding that i used yesterday, when i was inserting the code into the three different templates.

                  Any ideas as to why the images won't display?


                  Thanks
                  Olly

                  Comment


                    #10
                    best sellers

                    done it, thanks for the help


                    Olly

                    Comment


                      #11
                      What was the problem in the end?


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment


                        #12
                        i had to specify the location to the site1 folder i.e. Crogram files...... whereas i just typed the file name for the original code.

                        Not too sure why it wasn't lloking in the site1 folder anyway.

                        Comment


                          #13
                          BestSellers List

                          Olly,

                          can I ask how easy it was to create your Best Sellers code? I have a similar requirement for a site I am writing - I need to list the latest 6 items added to the site to the home page & wondered if there was an easy way to automate this.

                          Any advice much appreciated

                          Thanks

                          Ruth

                          Comment


                            #14
                            There is a 'last update' field included in the actinic database against each product, and this appears to store the date that each product is created.

                            A simple access or excel query will fetch the data and it can then be sorted / edited as you like.

                            One word of warning though. looking at my database (V6), this field does contain the date when the product was created, but if you ever copy an existing product and edit that then the date stored is the date when the original product was created, not the new one.

                            Mike

                            PS. If anyone knows where the pagename that the product is on is stored then this would help me make this a workable solution.
                            -----------------------------------------

                            First Tackle - Fly Fishing and Game Angling

                            -----------------------------------------

                            Comment


                              #15
                              In the Product table the field nParentSectionID refers to the page name. This is held in the Catalog section table where nParentSectionID matches the nSectionID field.
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment

                              Working...
                              X