Announcement

Collapse
No announcement yet.

Perl Script for View Cart

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

    Perl Script for View Cart

    Hi All

    I am quite new to Actinic but can program in PHP (but learning Perl).

    I have created a custom variable against products.

    In View Cart, I would like to condition the quantity field to

    1. display as normal when my variable is false
    2. display just the value (non editable) if true

    If someone can point me in the right direction, that would be great.

    Many Thanks

    #2
    Welcome, Peter

    Best search the forum. I've posted regarding how to display user variables in the Cart. It's ActinicOrder.pm that needs mod's and my post will take you to the appropriate area.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for the quick reply.

      I have had a look, but thought i would do it in stages first.

      I firstly tried to remove the quantity to identify I was in the right file / position in ActinicOrder.pm

      So I did a search for 1st occurance of
      $pComponent->{'Quantity'}
      and changed it to
      $pComponent->{''}

      then refreshed the site

      however, when i view cart, it still shows the quantity field, so thats when i decided to post here.

      Comment


        #4
        Search ActinicOrder.pm for Q_ as that's how the editable quantity is defined. You'll see code that switches between the editable and non-editable in that very area.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks again.

          Sorry, I have further questions regarding this:

          if I concatinate my variable to the text box - as follows:

          $$pProduct{CUSTOMVARS}{ASP_Multiplier} . "<INPUT TYPE=TEXT etc etc....

          it does not show the value.

          it leads me to think that the values are empty are I have incorrect syntax

          Am I doing anything wrong with this?

          Comment


            #6
            furthermore, if I concatenate the:

            $$pProduct{"MIN_QUANTITY_ORDERABLE"}, it shows the value.

            Comment


              #7
              apologies - variable isnt set to upload

              you learn something new every day

              Many Thanks

              Comment

              Working...
              X