Announcement

Collapse
No announcement yet.

Adding a class to product link in the cart

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

    Adding a class to product link in the cart

    Hi there

    From what I have found the variable 'ProductNameOnline' generates the mark up for the link.

    I need to add a class to this link.

    How would I do that? Is there somwhere I can hard code a link into a Perl script somewhere?

    Regards

    Dave
    example of my work http://www.tattoofashion.com

    #2
    You could put a class on the <td> the link is in then use CSS to style the link inside it.
    Last edited by peblaco; 07-Nov-2009, 08:40 AM. Reason: Update
    Peblaco

    Comment


      #3
      Thanks for the speedy reply Pablaco! skillz! unfortunately that's not quite what I was after.

      I need to add a class to the 'a' tag.

      In my old shop (v7) I added a class called 'description' to the 'a' tag. On loading the shopping cart a script would run looking for all 'a' tags with the class 'description'.

      The reason, if basket total value is less then 5 items (buy totaling the values form inputs) the user could not checkout, but if product link name has the string 'pack' in it (which hold ten items) they can checkout.

      I think what I am going to do is wrap it in a span with the class 'description' and sniff out the 'a' tag with 'firstChild' in my script and read the values that way.

      D
      example of my work http://www.tattoofashion.com

      Comment


        #4
        Yup That did it.

        D
        example of my work http://www.tattoofashion.com

        Comment


          #5
          Found out how to add a class name.

          Page 137 of the V9 advanced user guide.
          example of my work http://www.tattoofashion.com

          Comment

          Working...
          X