Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    3
    Plugin Contributions
    0

    Default [Done 1.4.0] typo "determin" (1.3.8a)

    HI all,

    I'm setting up for the first time, so I may not know all the terminology yet, but

    In admin, under Shipping Modules -> Per Unit, the descriptive text says, in part, "The shipping cost will be used to determin shipping charges"

    As far as I know, "determin" should be "determine"

    Thanks!
    - Rob

  2. #2
    Join Date
    Oct 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: typo "determin" (1.3.8a)

    I thought the fix would be an easy template change, but I was wrong.

    The file to be fixed is ./includes/modules/shipping/perweightunit.php

    Just search for "determin" and add an e. It's in the middle of SQL commands to populate the table, so just this code fix will not fix it in people's installations. Fixing the entry in the DB tables is beyond the scope of this bug report. ;-)

    For the record, there are some occurrences of "determin" in comments in other files. For those files, here is the result of my grep (including line numbers for your spell-correction pleasure):

    ./includes/functions/functions_prices.php:803:// this gets the discount amount this does not determin when to apply the discount
    ./includes/functions/functions_prices.php:895:// this gets the discount amount this does not determin when to apply the discount
    ./includes/functions/functions_lookups.php:233: // don't include READONLY attributes to determin if attributes must be selected to add to cart
    ./admin/includes/functions/general.php:1832: // don't include READONLY attributes to determin if attributes must be selected to add to cart
    ./admin/includes/functions/functions_prices.php:783:// this gets the discount amount this does not determin when to apply the discount
    ./admin/includes/functions/functions_prices.php:875:// this gets the discount amount this does not determin when to apply the discount

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: typo "determin" (1.3.8a)

    The minor typo in the 'comments' you quoted is essentially trivial.
    Fixing the one in the shipping module requires editing the file, then uninstallling and reinstalling the module. You might want to write down all your settings for that module before removing and re-installing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Oct 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: [Done 1.4.0] typo "determin" (1.3.8a)

    Thanks for fixing it in 1.4.0! I just corrected the code and then edited the DB record with PHPmySQL.

    Thanks
    - Rob!

    --
    Now how do we close this ticket??
    [ BOOM!!! ]
    Nope, that's not it!
    Last edited by thunderrabbit; 12 Oct 2008 at 02:09 PM. Reason: shortened and sweetened

 

 

Similar Threads

  1. v152 [Done v1.6.0] admin->index.php typo class="rigth"
    By torvista in forum Bug Reports
    Replies: 1
    Last Post: 12 Dec 2013, 08:54 PM
  2. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  3. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  4. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM

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