Announcement

Collapse
No announcement yet.

Help with a modification please.

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

    Help with a modification please.

    I have added a class to all the buttons in the cart and checkout. The only two that are proving tricky are the EDIT and REMOVE buttons when you View the Cart. I can only find the script for these in the file ShoppingCart.pl and as I am unfamiliar with Perl I wondered if anyone could show me how make the modification class="submit" here?

    Thanks
    Mark

    #2
    Could you post the snippets of code that you've located please.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I'm pretty certain that this is it, though it may not be complete or may be referenced elsewhere in the file. You will probably know better than me.

      ...
      # PRESNET
      #
      # initialize some Presnet hashes (must come after prompt file)
      #
      if(!defined $::g_InputHash{"ACTION"})
      {
      if(defined $::g_InputHash{"ACTION_CONFIRM.x"})
      {
      $::g_InputHash{"ACTION"} = $::g_sConfirmButtonLabel;
      }
      elsif(defined $::g_InputHash{"ACTION_CANCEL.x"})
      {
      $::g_InputHash{"ACTION"} = $::g_sCancelButtonLabel;
      }
      elsif(defined $::g_InputHash{"ACTION_BUYNOW.x"})
      {
      $::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 184);
      }
      elsif (defined $$::g_pSetupBlob{'EDIT_IMG'} && $$::g_pSetupBlob{'EDIT_IMG'} ne '')
      {
      my $sKey;
      foreach $sKey (keys(%::g_InputHash))
      {
      if ($sKey =~ /^ACTION_EDIT(\d+)\.x/)
      {
      $::g_InputHash{$1} = $::g_sEditButtonLabel;
      }
      elsif ($sKey =~ /^ACTION_REMOVE(\d+)\.x/)
      {
      $::g_InputHash{$1} = $::g_sRemoveButtonLabel;
      }
      }
      }
      }
      # PRESNET
      }
      ...

      Thanks

      Comment


        #4
        That looks like some old code that's was used a few years ago for a single Actinic partner (PRESNET). I don't think that's it.

        Perhaps someone who uses V4 will know.

        Norman
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X