Announcement

Collapse
No announcement yet.

Editing product 'choice' font when displayed in the cart

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

    Editing product 'choice' font when displayed in the cart

    Hi

    Quick question...

    When viewing my cart, and I have a product with a choice, where is the font class for the 'choice' taken from? I have been looking at act_shoppingcartxml.html and cannot find its home!

    Hope that makes sense!

    Thanks

    Rachel

    #2
    Hi,

    The class is taken from the Act_ShoppingCartXML template.

    Search for:

    <SPAN CLASS="actxsmall">NETQUOTEVAR:PRODUCTNAME</SPAN></TD>

    Don't worry about the main product name as this is created from a link which is referenced in one of the perl scripts so only the choice names will be affected when changing the class above.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      I had changed that particular <span class> and it didn't seem to have an effect.

      However, since clearing out cookies, and purging the site and upgrading to version 6.1.4 (Norton conflicts) the <class> is being reflected.

      Thanks for your response.

      Rachel

      Comment


        #4
        Hi Rachel,

        I have just noticed that changing that tag does actually affect the product name but not in the cart. It does change it in the checkout though. It looks like these options cannot be separated, however, I will look into it further to see if there is something in one of the perl scripts that will do it for you.
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          Hi Rachel,

          OK, you can change the component format only by doing the following (please note that you will have to undo the change we made to Act_ShoppingCartXML.html for this to work:

          The following should set the font size for the component name (take backups of the files before editing them).

          Edit ShoppingCart.pl
          Search for...
          $hVariables{$::VARPREFIX."PRODUCTNAME"} = $sLine;

          Replace with...

          $hVariables{$::VARPREFIX."PRODUCTNAME"} = "<FONT SIZE=-1>" . $sLine .
          "</FONT>";

          Save and exit

          Edit ActinicOrder.pm
          Search for...
          $pComponent->{'NAME'} . $pComponent->{'DDLINK'}

          Replace with...

          "<FONT SIZE=-1>" . $pComponent->{'NAME'} . "<FONT>" .
          $pComponent->{'DDLINK'}

          Save and exit
          Update site.

          Change the font tags to whatever font options you want in the cart.

          I hope this helps.
          ********************
          Tracey
          SellerDeck

          Comment

          Working...
          X