Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    red flag val_function shipping module cost showing weird code in zen_configuration database

    I'm running zen cart 1.5.7c, responsive classic on php 7.3.
    I have duplicated the FLAT shipping module and named it EXPRESS (flat.php and express.php).
    I was looking in database and noticed this code on the both modules under shipping cost in the val_function.

    {"error":"TEXT_POSITIVE_FLOAT","id":"FILTER_VALIDATE_FLOAT","options":{"options" :{"min_range":0}}}

    Any idea why this is showing in BOTH shipping modules?

    It could be a normal operation text, not sure but just wanted to confirm.

    Thanking you in advance.
    *Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: val_function shipping module cost showing weird code in zen_configuration databas

    What about it seems unusual or concerning? The information is associated with installation/operation of each module and is provided to offer a level of data sanitization when entering information for that field. Specifically it expects basically a non-zero numeric value where if the value is less than zero or fails a filter_var operation using FILTER_VALIDATE_FLOAT then the error message to the admin would be whatever is set to the constant: TEXT_POSITIVE_FLOAT.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: val_function shipping module cost showing weird code in zen_configuration databas

    Thanks for that mc, I just thought no other config seemed to have that, they all showed NULL, and I had an issue with the amount of characters I could add in the shipping method name, so I thought maybe I did something wrong to cause that error.
    But glad to know it's part of the normal operation :)

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: val_function shipping module cost showing weird code in zen_configuration databas

    Quote Originally Posted by rlexyd View Post
    Thanks for that mc, I just thought no other config seemed to have that, they all showed NULL, and I had an issue with the amount of characters I could add in the shipping method name, so I thought maybe I did something wrong to cause that error.
    But glad to know it's part of the normal operation :)
    Wait, you're running ZC 1.5.7 and only these two records in the configuration table have something assigned to val_function?

    Sounds like the proper method to install and/or upgrade the store has not been (successfully?) performed. There are multiple configuration key values that should have a val_function assigned to them.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: val_function shipping module cost showing weird code in zen_configuration databas

    Quote Originally Posted by mc12345678 View Post
    Wait, you're running ZC 1.5.7 and only these two records in the configuration table have something assigned to val_function?

    Sounds like the proper method to install and/or upgrade the store has not been (successfully?) performed. There are multiple configuration key values that should have a val_function assigned to them.
    Sorry, you are right!
    I was only looking on the second page of the zen_configuration when I set it to display by 500 rows and the ones I say where on the 2nd page, now that I go back to 1st page, I can see several of these val_function in there on other things!

 

 

Similar Threads

  1. Replies: 23
    Last Post: 8 May 2013, 12:02 AM
  2. Shipping cost not showing in shopping cart
    By Elly in forum Basic Configuration
    Replies: 1
    Last Post: 26 May 2011, 06:18 PM
  3. Shipping cost based on distance from ZIP code?
    By Deno in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 13 Mar 2011, 05:53 AM
  4. Shipping not showing cost
    By boy1da in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Oct 2010, 11:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR