Page 2 of 2 First 1 2
Results 11 to 13 of 13

Thread: Publix Promise Question

  1. #11
    TRADER
    SPARKING
    specialk1st's Avatar
    Join Date
    Aug 2008
    Posts
    100
    Location
    Florida

    Thumbs Down Re: Publix Promise Question

    Quote Originally Posted by elanning View Post
    This is not very simple. At the item scan event (Publix item), you would need to validate the scanned GTIN as a numeric value and do one of the following:

    1. Loop through all known GTINs to see if the scanned Publix item is one on promotion (more work on the server) OR
    2. Have a prepopulated list of Publix items on special that is read into memory at form-load and validate the value against those pre-read GTINs (more memory usage)


    THEN you would need to loop through to look and see if one of the matching national-brand products was in the order and, if it is, deduct the value of the coupon. This is all assuming that the national brand item was scanned first. Obviously that doesn't always happen. To account for this, you must constantly be looping through the order looking for matching items or do it once at the "tender/total" event at the end of the order. Doing it at the end is better for processing/memory usage but an inconvenience for the customer because they can't see if the item's value was deducted or not.

    Obviously there are 100 ways to accomplish the same thing in programming but this is just the simplest way I could think of. You are definitely talking about a large amount of code here.
    Well you either are not an efficient programmer or you are using an archaic language, but anyway this is NOT very difficult to do.

    And once again I'll state it just was not a part of the original mock-up.

    There is no need to search against some long list and continually use up CPU time or to compare lots of numbers. Even if done in such a brute-force method, the read is text not images and therefore not time-consuming at all.

    Another flaw in your method is a read is not resulting in any penalties so there is no long wait as you seem to think.

    Anywho, I'll leave it here, but rest assured that this is not a difficult algorithm -- it's of logarithmic complexity.
    If you liked my post or I've helped, click on the white scale (left) and rep me. Thanks!
    "There is an eloquence in true enthusiasm." ~ Edgar Allan Poe

  2. #12
    Mod Of The Month Oct 2007
    Don't hate me because my stockpile is beautiful
    COUPON DATABASE EDITOR
    TRADING COACH
    TRADER
    NEWBIE MENTOR
    FORUM MODERATOR
    ENTREPRENEUR
    SUPER MODERATOR
    RED RED HOT
    nrpeace17's Avatar
    Join Date
    Jul 2006
    Posts
    8,877
    Location
    Florida

    Default Re: Publix Promise Question

    Ok, 'nuff said about the technical end. Let's get back to the topic at hand.
    Cathy
    Couponer Extraordinaire
    HCW Super Moderator
    Co-Moderator for:
    Check out the latest Hot Deals!


    WISH LIST

  3. #13
    TRADER
    SPARKING
    specialk1st's Avatar
    Join Date
    Aug 2008
    Posts
    100
    Location
    Florida

    Funstuff Re: Publix Promise Question

    Quote Originally Posted by nrpeace17 View Post
    Ok, 'nuff said about the technical end. Let's get back to the topic at hand.
    Agreed. However it's done I do "heart" Publix!

    Glad to hear that the original poster got her issue settled and thanks for the reps on the post!
    If you liked my post or I've helped, click on the white scale (left) and rep me. Thanks!
    "There is an eloquence in true enthusiasm." ~ Edgar Allan Poe

Page 2 of 2 First 1 2

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Content Relevant URLs by vBSEO 3.6.0 PL2