Announcement

Collapse
No announcement yet.

Help Please! Search Script Perl for Value=0

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

    Help Please! Search Script Perl for Value=0

    I've been trying to crack this problem for ages now but i cant manage to do it.

    When my search results are shown i have some products with zero value.
    Currently where the price would appear is as blank space but i want this to display some text ('call now for pricing').
    After playing around i think i found the code which needs to be edited but i cant seem to make it work.
    i think it involves making the script use
    Code:
    $Product{PRICE} == 0
    as well as the current string but i'm not too sure.

    In the SearchScript.pl file is the code:

    Code:
    if ($$::g_pSearchSetup{SEARCH_SHOW_PRICE} &&
    $$::g_pSetupBlob{PRICES_DISPLAYED} &&
    $Product{PRICE} != 0)
    {
    ($status, $sError, $sTemp) = 
    ActinicOrder::FormatPrice($Product{PRICE}, $::TRUE, $::g_pCatalogBlob); if 
    ($status != $::SUCCESS) {
    ACTINIC::CleanupIndex($rFile);
    return($status, $sError);
    }
    }
    $ACTINIC::B2B->SetXML('S_PRICE', $sTemp);

    Please help
    Thanks
    Cheap Printers

    Printer Toner
    Printer Ink
    Ink Cartridges

    #2
    try putting, just above $ACTINIC::B2B->SetXML('S_PRICE', $sTemp);

    Code:
    if ($$::g_pSearchSetup{SEARCH_SHOW_PRICE} &&
    $$::g_pSetupBlob{PRICES_DISPLAYED} &&
    $Product{PRICE} == 0)
      {
      $sTemp = 'Call now for pricing';
      }
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thats great,
      just tried it and all seems to be working well

      thanks alot for your help.
      Cheap Printers

      Printer Toner
      Printer Ink
      Ink Cartridges

      Comment

      Working...
      X