Announcement

Collapse
No announcement yet.

Formatting elements within Act_ShoppingCartXML.html

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

    Formatting elements within Act_ShoppingCartXML.html

    Hi everyone

    Before I forget the (very) beta site to which I am referring here is at <REMOVED>. Click on SHOP > JACKETS and there are a couple of products in there.

    I am merrily ploughing through making the site match our designers designs and have used Norman's "image in the shopping cart" technique to get a scaled product image into the cart but now I'm stuck.

    I'm having a really tough time formatting each line item in the cart - you'll notice that...

    a) the size is being displayed beneath the image rather than the description
    b) the description is not picking up xxsmall style like it should.
    c) neither is the quantity text box.
    d) the separator line is appearing twice for each item (with size in the middle) - I placed it after "product line end".

    This HTML file is not easy to edit all + when I look in the Advanced Users' Guide to see how for format ProductName for instance it says have a look in "design > Text > Web Site > HTML - but does not indicate which item to edit!!

    Any suggestions very gratefully accepted.

    Ed

    #2
    I don't know that template so I can't help much. However:-

    separator.gif is 533 pixels wide and is pushing your cart display off the page.

    Also, in case my patch (which was really for V6) is messing with things it might be best to get the cart looking as you prefer without said patch and add it back in later.

    Norman

    PS. That progress bar is neat.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman + everyone else

      So as to tackle one problem at a time I have simplified the layout of my shopping cart a little - by taken out the separator.

      Norman's "thumbnail image" in the basket code is included and working.

      It appears that the sizing option that is displayed is placed in its own table - which is not a problem when there is no image as it aligns nicely with the description - but now that I have an image in there I need to have it under the description and NOT under the image.

      Any thoughts welcome.

      Ed

      Comment


        #4
        I've done several posts regarding images in checkout. Please point me to the one you are using.

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

        Comment


          #5
          Hello Norman

          Its the one entitled "V6 Product Thumbnail Images in checkout" - last updated 04-02-03.

          Ed

          Comment


            #6
            Sorry, that doesn't match anything I've got on file here. Can you give me the URL (web address) of the info you downloaded plaese?

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

            Comment


              #7
              Hello Norman

              More specifically it was...

              http://www.drillpine.biz/actinicstuf...InCheckout.txt

              ...that I used. I am running v7 - so when searching for some of the strings in the perl scripts it was a little tricky as they have had more parameters added to them - but the end result is that the images appear (thanks) but the size info appears under the image rather than the description.

              Ed

              Comment


                #8
                OK. That's the neatest solution.

                All you have to do is to move the fragment

                NETQUOTEVAR:NORCATIMAGE

                around within Act_OrderDetail.html and Act_ShoppingCartXML.html

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

                Comment


                  #9
                  I've now created an readme for V7 scaled checkout images. It's on www.drillpine.biz/actinicstuff/

                  It's uses a better technique than before for passing the image name and requires less template changes. Also the modified V6 one won't work with V7 duplicate products.

                  To install this restore any altered templates / scripts and start from scratch.

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

                  Comment


                    #10
                    Hello Norman

                    I've removed the v6 patch and applied v7 instead. Its working fine - except that I am still not able to place the NORCATIMAGE in a position to achieve the result I require - nor can I display my CUSTOMERVARESIGNER in the cart. They say a picture says a 1000 thousand words - so I've attached a "before + after" shot of what I aiming for.

                    Cheers
                    Ed
                    Attached Files

                    Comment


                      #11
                      Options: The size selected for the item should always appear underneath the product name anyway. That's just a default feature of Actinic.

                      Price Alignment: I suggest locating these lines in Act_ShoppingCartXML.html...
                      Code:
                      <TD ALIGN="RIGHT" BGCOLOR="NETQUOTEVAR:CHECKOUTBG"><SPAN CLASS="actxsmall">NETQUOTEVAR:PRICE</SPAN></TD>
                      <TD ALIGN="RIGHT" BGCOLOR="NETQUOTEVAR:CHECKOUTBG"><SPAN CLASS="actxsmall">NETQUOTEVAR:COST</SPAN></TD>
                      and adding a 'valign="top"' into the <td> tags and see if it helps.

                      Designer Name: No idea. The problem is that custom properties are not included in the *.cat file for a section - and this is the only info that is used in the shopping cart.

                      Comment


                        #12
                        This could be done but is a BIG job. You'd have to move NETQUOTEVAR:NORCATIMAGE in Act_ShoppingCartXML.html to the <Actinic:XMLTEMPLATE NAME="OrderLine"> section (and now wrapped in some TABLE code).

                        Then alter ActinicOrder.pm to move the NorcatImage code from sub ProductLineHTML to sub OrderLineHTML and then locate all calls of ProductLineHTML, remove the final parameter and replace in all calls of OrderLineHTML.

                        Then test to destruction with every combination of product with/without choices, with/without components (again with/without choices), etc, etc.

                        Norman

                        If this is beyond your capabilities then I can do it for you but you'll have to contact me for a quote.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          As to the CUSTOMVARESIGNER this again is difficult. It can probably be done but would mean more expensive Perl patching.

                          Norman

                          P.S. Chris, the custom properties are now in the .cat structures, and so can be accessed from the product hash. E.g.:-

                          'CUSTOMVARS' =>
                          {
                          'TOTALPROMPT' => 'Total for one off:- ',
                          },

                          and a bit of code like

                          $$pProduct{CUSTOMVARS}{TOTALPROMPT}

                          would get at the value.
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment

                          Working...
                          X