Announcement

Collapse
No announcement yet.

Component Display

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

    Component Display

    Anybody know how to hide the component quantity in the checkout pages in Version 7. Also, is it possible to only display the component value and not it's name labels?

    I know there is a way to do it in Version 6 after searching these forums but it does not seem to apply to V7!

    Cheers

    Dave
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    #2
    Hi there

    Originally posted by dave_finlayson
    Anybody know how to hide the component quantity in the checkout pages in Version 7.
    This can be done by editing the Perl script ActinicOrder.pm.

    - Locate the file ActinicOrder.pm in the site folder.
    - Edit the file using a text editor such as Notepad.
    - Search for?

    $pComponent->{'QUANTITY'},

    - There are two occurrences, only change the first. The second is used to display the component quantity when the Component is set to appear as a separate product.

    - replace the line with...

    $pComponent->{' '},

    - Save and exit.
    - Update the site (Web | Update Website).


    Also, is it possible to only display the component value and not it's name labels?
    I have done this before, again by editing the script ActinicOrder.pm, and searching for these lines -

    #Include component name

    if ($Res{text})
    {
    $Res{text} = $component->[$::CBIDX_NAME] . " - " . $Res{text};
    }
    else

    If you comment these lines out, by putting a # at the start of every line, that will remove the attribute (label names) in the checkout, and just give you the component names.

    Once youve done that, save and then in Actinic, go to Web | Refesh Website.

    Hope that helps

    Comment


      #3
      James,

      Thanks for that, I had read that in other posts but this does not seem to apply to Version 7. I think it should be the ao000001.pm that I should amend.

      Would that be right?

      Dave
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #4
        Hi Dave

        I tested both my suggestions out in version 7 before I replied to you, and they both worked fine for me...

        If you cant get it to work, I can just send you over the pm file I had edited, and you could just save that into your site1 folder and then it should work for you...

        Let me know

        Comment


          #5
          Ok, I have attached the zipped up amended ActinicOrder.pm file below, if you save the pm file to your site1 folder, overwritting the existing one then in Actinic, go to Web | Refersh Website...

          If it dosent have the desired affect, an original version of this file can be found in the Original folder which you can put back in the site1 folder.

          Have a look, and let me know if its all good...
          Attached Files

          Comment


            #6
            James,

            That works perfectly unfortunately I explained myself badly! I want the checkout to display the attribute label and value i.e COLOUR: BLACK but not the component name i.e COLOUR : COLOUR : BLACK.

            Any ideas?

            Dave
            Cheers

            David
            Located in Edinburgh UK

            http://twitter.com/mcfinster

            Comment


              #7
              Hi Dave

              Right then, ive re-done the pm file for you and tested it out, it removes the component name, and the quantity from the shopping cart...

              If you save the pm file into your site1 folder, then in Actinic go to Web | Refresh website - then have a look.

              Hope you like it!
              Attached Files

              Comment


                #8
                Works perfectly James, thanks for all your very quick help, much appreciated!

                Dave
                Cheers

                David
                Located in Edinburgh UK

                http://twitter.com/mcfinster

                Comment


                  #9
                  James (Or anyone else!),

                  Just wondering if you could explain how you did this so I can amend the script again when v7.02 comes out. Really should have asked in the first place!!!

                  Dave
                  Cheers

                  David
                  Located in Edinburgh UK

                  http://twitter.com/mcfinster

                  Comment


                    #10
                    Hello Dave

                    This is what I did to remove the componant name from the checkout, I edited actinicorder.pm with notepad, the searched for the following lines...

                    if ($Res{text})
                    {
                    $Res{text} = $component->[$::CBIDX_NAME] . " - " .
                    $Res{text};
                    }
                    else
                    {
                    $Res{text} = $component->[$::CBIDX_NAME];
                    }

                    And changed it to read...

                    if ($Res{text})
                    {
                    # do nothing
                    }
                    else
                    {
                    $Res{text} = $component->[$::CBIDX_NAME];
                    }


                    Hope that helps

                    Comment


                      #11
                      James,

                      Many thanks again!

                      Dave
                      Cheers

                      David
                      Located in Edinburgh UK

                      http://twitter.com/mcfinster

                      Comment


                        #12
                        Hi All,
                        have just installed this mod and it works great. However I have one question -
                        When the order has been downloaded to the PC and the 'Line Items' tab clicked is it possible to remove the 'No. Ordered' from the component line?

                        Hope this makes sense

                        Michael

                        Comment


                          #13
                          Hi Micheal

                          Im afraid the No. Ordered cannot be removed from the line items tab within a downloaded order, as it is built into the user interface.

                          Hope that helps

                          Comment


                            #14
                            Hi James,
                            No problem & thanks for the reply. Is it possible to have this added to a 'wish list' somewhere?

                            Michael

                            Comment


                              #15
                              Hi Mike

                              Yes, I will add this to the wishlist for you.

                              James

                              Comment

                              Working...
                              X