Jump to content

Aaron M

Clients
  • Posts

    102
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Aaron M reacted to Marc Stridgen in Commerce deleting members using Stripe's Apple/Google Pay   
    This is  still in a ticket awaiting developers at present
  2. Thanks
    Aaron M reacted to IPCommerceFan in Commerce > Custom Fields > Custom Input Validation?   
    I needed this to be more robust, so I started poking around and discovered I could hook into \IPS\Helpers\Form\Text --> validate() and use custom php to do any kind of validation I want on a given custom commerce field! (custom Text field anyway, I haven't explored other types)
    In case anyone is need of this and finds this thread during their search, this is where you can run custom validation:
    //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } class hook491 extends _HOOK_CLASS_ { /** * Validate * * @throws \InvalidArgumentException * @throws \DomainException * @return TRUE */ public function validate() { $dataToBeValidated = $this->value; //$this->value is anything that is entered into any field on the order form. /* * Run any if statement on your data to determine whether it should return false, some specific value, etc */ if ($dataToBeValidated > 0) { $validation == 1; } //"$this" doesn't know the id of the field, but it knows the name. Here we will evaluate the value entered for the Nexus package custom field with an ID of 5. ( nexus_packages_fields.cf_id in the database ) if ( $this->name == 'nexus_pfield_5' and $validation == 1 and !preg_match('/[A-Z0-9]+/i', $dataToBeValidated) ) //we can add any number of conditions to decide whether the field should be validated or not { throw new \InvalidArgumentException( 'form_bad_value_nexus_pfield_5' ); //added langauge bit to dev\lang.php "'form_bad_value_nexus_pfield_5' => 'Custom validation failure message'" } return parent::validate(); } } Hope this helps someone, and if there is a better way, I'm open to suggestions!
  3. Like
    Aaron M got a reaction from SeNioR- in Templates and CSS missing   
    Closing IPS notification fixed it as per 
     
     
  4. Like
    Aaron M got a reaction from OptimusBain in Coinbase Commerce Gateway - Support Topic   
    Another request 😄
    Would you be able to integrate this with MaxMind, if it's possible to do so?
  5. Like
    Aaron M reacted to Makoto in 📧 Block Disposable E-mails   
    Testing shows there are no existing compatibility issues with PHP 8.0, but there are a couple minor/non-breaking bugs that will be addressed for IPS 4.6 in the next release.
    This update has already been submitted to the marketplace, but at the moment updates are taking up to 1-3 weeks to be approved by IPS, so there may be a bit of a delay before the update is officially available.
  6. Like
    Aaron M got a reaction from Andrey777 in Commerce > Custom Fields > Custom Input Validation?   
    Highlighting this as a pressing issue for us still too. Surprised to see someone else encountering the same difficulties as we, but at least this shows there is a demand for this change.
     
  7. Like
    Aaron M reacted to OctoDev in Coinbase Commerce Gateway - Support Topic   
    Sure completely possible I'll add it in the next update 😀
    Edit: Done added to 1.0.5. This information will only show for new payments unfortunately but you can now see more information about the payment.

  8. Like
    Aaron M got a reaction from IPCommerceFan in Commerce > Custom Fields > Custom Input Validation?   
    Highlighting this as a pressing issue for us still too. Surprised to see someone else encountering the same difficulties as we, but at least this shows there is a demand for this change.
     
  9. Like
    Aaron M got a reaction from BomAle in Call to Action Popup   
    We're seeing difficulties here too; especially with images where the editor in ACP seems to input the old content back in and won't let me remove it...
  10. Like
    Aaron M got a reaction from Kevin Carwile in Group Collaboration   
    Hi there,
    Loving the application so far! We're just rolling it out publicly now but it's a very solidly built product - congratulations.
     
    I have a small suggestion, not sure if it's in the works/previously suggested though. The blocks so far are still named as "collaborations". We renamed ours to say "factions" but the Featured Collaborations block hasn't renamed.
    I'm also interested to know if it's possible to have moderators, or some exception/group that can view all the forums despite being hidden for non-members, so the groups can still be monitored without having to join each one? Apologies if I've just missed that functionality somewhere.
     
×
×
  • Create New...