Announcement

Collapse
No announcement yet.

Cart Layout Help Needed

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

    Cart Layout Help Needed

    Hi - I am using Actinic 7.0.1

    Can someone please help me change the layout of my cart in three ways.

    1: Remove the Component Attribute Label (See Circle in link below)
    2: Move the Quantity box to the components line only (See arrow in jpg link)
    3: Move the 'remove checkbox' to components line only (See arrow in jpg link)

    All Products in my site have a component with an attribute and choice. The Pricing model for the whole site is 'sum of component prices' with the 'No Order Line for Main Product' UNCHECKED so that the actual product is not ordered.

    I hope someone out there can help. Thanx in advance

    #2
    'No Order Line for Main Product' UNCHECKED so that the actual product is not ordered.
    Would it not be better having that checked as it will remove the actual product from the cart and solve problems no. 1 and 2?

    1: Remove the Component Attribute Label (See Circle in link below)
    Is that the component name or attribute?

    To remove component name:

    Edit ActinicOrder.pm

    Search for:

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

    Change to:

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

    I'll post back in a bit with the fix for removing the attribute name.
    Regards,

    Toby Blanchard

    Comment


      #3
      Hi,

      This thread should help you with removing the attribute name (take a look at the 10th posting).
      ********************
      Tracey
      SellerDeck

      Comment


        #4
        Hi - thanx for your reply

        I have this box Unchecked becuase I want the Product Thumbnail in the cart - I Have edited the ActinicOrder.pm file (with help) already to remove the product reference from this product in the cart.

        I have also successfully removed the component name from the cart (with help) but am still left with the attribute name in the cart. Hence - if you look at my ActinicOrder.pm file I have posted a link to I think I have already completed you suggestion so far.

        Look forward to your suggestions

        Comment


          #5
          Originally posted by TraceyG
          Hi,

          This thread should help you with removing the attribute name (take a look at the 10th posting).
          This thread only removes the component name - not the attribute name.....right? And is the same as Toby B's suggestion?

          Comment


            #6
            Sorry, I read the posting incorrectly. Here's what you need to do:

            Edit ActinicOrder.pm in a text editor

            1) comment out the following line by adding a # at the beginning
            Code:
            $Res{text} .= $pAttribute->[$::ABIDX_NAME];
            2) change
            Code:
            $Res{text} .= ': ' . $pAttribute->[$::ABIDX_CHOICES]->[$nIndex];     # Choice description
            to read

            Code:
            $Res{text} = ': ' . $pAttribute->[$::ABIDX_CHOICES]->[$nIndex]; # Choice description
            3) comment out the following line by adding a # at the beginning
            Code:
            $Res{text} .= ': ' . $pAttribute->[$::ABIDX_NAME];      # Insert at
            4)change
            Code:
            $Res{text} .= $pAttribute->[$::ABIDX_NAME] . ': ' . $pAttribute->[$::ABIDX_CHOICES]->[$nIndex] . $separator .' ';
            to

            Code:
            $Res{text} .=  ': ' . $pAttribute->[$::ABIDX_CHOICES]->[$nIndex] . 
            $separator . ' ';
            5) Change
            Code:
            $Res{text} .= $pAttribute->[$::ABIDX_NAME] . $separator . ' ';
            to

            Code:
            $Res{text} .=  $separator . ' ';
            Save the file and upload your site.
            ********************
            Tracey
            SellerDeck

            Comment


              #7
              Almost there....

              A big thanx to Tracy G.

              This Link show the result.

              Can you help me further.

              1) The Circle in the jpg link above shows a ':' still showing (I think it is the separator between the component and the attribute name)

              2) Is it possible to move the quanity choices and the remove checkboxes as shown in the jpg link above down to the component lines?

              Look forward to your response

              Matt

              Comment


                #8
                Hi,

                1) The Circle in the jpg link above shows a ':' still showing
                For points 2 and 4 above remove the : from both lines.

                Is it possible to move the quanity choices and the remove checkboxes as shown in the jpg link above down to the component lines?
                You cannot move the quantity boxes down to the components as the quantity is only for the main product itself - you cannot have different amounts of choices than for the product.

                To move the 'remove box' down, go to 'Advanced | Template Manager | Ordering Tab (click 'Change View' if you do not see the tabs) | Cart Table button' to open Act_ShoppingCartXML.html. Search for:

                <TD ALIGN="CENTER" ROWSPAN="NETQUOTEVAR:REMOVEROWSPAN"
                BGCOLOR="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:REMOVEBUTTON</TD>

                Add 'VALIGN="bottom"' to the <TD> tag so it looks something like:

                <TD VALIGN="bottom" ALIGN="CENTER" ROWSPAN="NETQUOTEVAR:REMOVEROWSPAN"
                BGCOLOR="NETQUOTEVAR:CHECKOUTBG">NETQUOTEVAR:REMOVEBUTTON</TD>

                Close and save the file and update the site.
                ********************
                Tracey
                SellerDeck

                Comment


                  #9
                  Thank you for your help

                  Comment

                  Working...
                  X