Announcement

Collapse
No announcement yet.

Stock defined choice table

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

    Stock defined choice table

    Hi there,

    I am just about to upgrade from V7 to V9 and have been playing around with the new way of setting up the layouts and really like the new way of designing things.

    I have set up the push button grid from the AUG PHP plug in but would like it to do something slightly different. However, my PHP is not the best and was wondering if anyone else had tried this.

    I would like to retain the table layout as the push button grid already does but instead of Add to Cart buttons I would like the option of using either radio buttons/images and then have the Add to Cart button and quantity below the table.

    Additionally I would like to be able to exclude an option if that product is out of stock so that the only options in the table are those in stock.

    Attached is an image of how i would like it to look. Any ideas??

    Thanks
    Billy
    Attached Files
    Mad 4 Ponies
    http://www.mad4ponies.com/index.html

    #2
    I've done this for a couple of sites but it required considerable custom work. Examples are http://www.kettlewellcolours.co.uk/a..._Wrap__35.html and http://www.stardustkids.co.uk/acatal...s-clothes.html
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman, I like what you have done with those sites. It looks very clean. Is it possible to do it with radio buttons in the table and have the add to cart button below?

      Thanks
      Billy
      Mad 4 Ponies
      http://www.mad4ponies.com/index.html

      Comment


        #4
        Is it possible to do it with radio buttons in the table and have the add to cart button below?
        Undoubtedly.

        However, making the customer do 2 clicks instead of one wasn't what these sites required.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          You make a fair point Norman!

          I take it the tables on the above sites use the php add in from the AUG with a condition for stock control element, or am I barking up the wrong tree??

          Billy
          Mad 4 Ponies
          http://www.mad4ponies.com/index.html

          Comment


            #6
            Those sites use custom code and also require a patch to actinic_main.php to cure a bug that's in the push button table code (certain characters in the product reference break the table). See http://community.actinic.com/showthr...t=actinic_main
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks Norm. I will have a play with this and see how far I get. I did have some problems with the original table ot adding the permutations into the basket.
              Hopefully, your fix will solve the problem.

              Cheers

              Billy
              Mad 4 Ponies
              http://www.mad4ponies.com/index.html

              Comment


                #8
                Norm,

                I was wondering if you could point me in the right direction, my php knowledge is slowly building but still leaves alot to be desired. I have added an extra elseif statement to the actinic_main.php but I am having trouble with which variable to reference.

                I have tried using stocklevel as that seems the most obvious. In the layout code for the push button grid i added this into the $listpermutations array:

                $nIsProductInStock = <actinic:variable name="StockLevel" />

                I then referenced this in the last part of the actinic_main.php by adding the following elseif statement:

                elseif
                ( $nIsProductInStock <= 0)
                {
                echo "<td>";
                echo <<<FREE_MARKUP_CODE_BLOCK
                $sOOS
                FREE_MARKUP_CODE_BLOCK;
                echo "</td>";
                }

                Where $sOOS is a layout with just a gif file for the product out of stock.

                I think I have gone wrong in the the permutations array but am not completely sure. Maybe you could give me a couple of pointers please.

                Many Thanks
                Mad 4 Ponies
                http://www.mad4ponies.com/index.html

                Comment


                  #9
                  Sorry, but I've no free time to look into specific requests.

                  Best make a general request so that others may be inclined to volunteer.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X