Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

burt

Members
  • Posts

    17,340
  • Joined

  • Last visited

  • Days Won

    824

Posts posted by burt

  1. 2 minutes ago, raiwa said:

    array of existing UPC (gtin)'s is not retrieved if creating a new product. How should the check then work with javascript before submission?

    Or do I miss something and you suppose a query to get the list should be added at the top of file?

    $.post it to a processing script onBlur.

    Similar as this:
    http://www.clubosc.com/unique-product-models-in-oscommerce.html

     

  2. 18 hours ago, kymation said:

    The hooks were in the 2.3.5 version that I backported. I assumed that Harald put them there so I left them in. Is this going to cause problems?

    It wont hurt anything.  My eyes lit up at the prospect of another dev getting heavily into Hooks, that's all.

    I didn't even know there is a 2.3.5 !  When was that released?

  3. 3 hours ago, burt said:

    Do we think that software is being used to target (eg) the contact_us form in osc, or do we think its software?

    This should of course read;

    Do we think that software is being used to target (eg) the contact_us form in osc, or do we think its a human?

  4. 9 hours ago, Jack_mcs said:

    I haven't tested it but that looks like a good idea. But a second hook would be needed to add the code to check for emails and url's, if those options were wanted. That is more in-line with not changing the core code and is probably a better solution for the community edition. Actually, it might be a good addition to the stock shop. A generalized package that would protect any form in the shop by just calling a hook with the forms name, or something like that.

    I thought a bit more on it...I'm not sure how these spammers actually work (in osc)...

    In (eg) wordpress I know there is a whole industry that targets drive by spamming, using software. 
    Unfortunately, for a period of time over a decade ago I was a part of a similar industry :(

    In other, less popular, software (eg osc) I've always assumed that someone gets paid a dollar a
    day to sit there all day finding form and filling them out and submitting.  

    Do we think that software is being used to target (eg) the contact_us form in osc, or do we think its software?

  5. I've been thinking about this and testing some things out...

    This code worked best for my needs (which were; stop spammers, use as little code as possible)

    <input type="text" name="inputHP" pattern="[0]{0}" aria-describedby="atHP" hidden>
    <span id="atHP" hidden>This is a Test for weeding out Spammers.  You must leave this input box totally blank.</span>

    What have I missed by just using that code ?

    Note that I did hardcode it, if I was to spend time on it, it'd be a Hook most likely.

  6. 1 hour ago, MrPhil said:

    What do you mean by "mandatory"? Are earlier versions of reCAPTCHA going to become unsupported? Be aware that various "CAPTCHA" schemes, including reCAPTCHA, are no longer very useful. The spammers can easily defeat them, and cranking up the difficulty high enough to stop most bots means that almost all humans are also blocked! You also have to be careful that visually impaired/blind people aren't excluded from your store, or you could face discrimination charges for failing to make "reasonable accommodations". Unfortunately, almost any anti-bot challenge scheme easy enough for most people to pass seems to also be easy for bots to pass.

    Google are stopping their v1 implementation of recaptcha shortly. 
    That is the one with the road signs or the audio.

    The v2 implementation is still fine to use. 
    That is the one with the tickbox (which works for 90% of people and is fine for impaired).  The 10% who fail can then go on to see road signs or audio.

    There is a v3 implementation which has nothing showing at all.  
    It's a PITA. v2 is the best implementation at this point.

    4 hours ago, momoxygene18 said:

    But I can not find a recaptcha 2.0 contribution for the verson osc 2.3.4

    You did not look far.  There is at least one that is available for standard osc2.3.4, I know as I made it :laugh:

  7. 2 hours ago, raiwa said:

    Are you serious? Fill in product seo title for each product one by one instead of one code change?

    The advice to change core code is far from ideal.  Preferable advice would be;

    - make a hook
    - make a replacement module
    - etc

    I do not know if the asker has 1 product, or 100, or 1000. 
    In any case, it takes 30 seconds to perform a database hit to update seo_title to match name.

    However, this little conversation is good as I can revisit my piece of code and come up with some changes.

  8. 15 hours ago, RMD27 said:

    mcmannehan 

    he is absolutely correct about SEO URLs. i think most people find them helpful and so do search engines to some extent

    https://moz.com/learn/seo/url

    https://www.searchenginejournal.com/seo-friendly-url-structure-2/202790/

    This is Out Of Date.  Sites like these post stuff, then don't update it.

    These links were good, now not.  GOOGLE DOES NOT SHOW URLs.

    For context: 

     

×
×
  • Create New...