Jump to content

Incog

Members
  • Posts

    22
  • Joined

  • Last visited

Incog's Achievements

  1. Anyone? Both the HTML and Text templates are configured in the package management page. But the customer doesn't receive these details, they just receive the text before the package.email_html hook in the mail template
  2. More details: My email template for the "Service creation notice, sent when a service has been created." is as follows: Hello, Your service has now been approved and activated. Please keep this email for your records as it contains information on how to login or use your new service. {package.email_html} You'll see that it calls package email. Each package has a welcome email, but the client never receives it. They only receive the above portion of the email. ("Your service has now been approved and activated. Please keep this email for your records as it contains information on how to login or use your new service.")
  3. Nothing on our end has seemingly changed. I've noticed that new service welcome emails are no longer being dispatched, causing us to have to do this manually which is a big pain. No welcome email is shown in the client mail log even though 'send welcome email' is selected, and each product/package has a welcome email configured for it's use. Where to begin diagnosing this? Other emails from the system work fine.
  4. I've added some packages for a product, however there doesn't seem to be a way to change the order in which they appear on the order form. The package with the largest ID# is shown last, whereas the package with the lowest ID# would be shown first. I'd like to alter the value of that number manually so I can have the packages appear in the order that I want on the order form. What is the best way to do this? I guess this should be considered a feature request, too. Would be a handy feature.
  5. The error is back after changing SMTP settings to reflect a new email address and mail server for delivery. The details are correct. I can send/receive just fine from it, but in regards to using it with Blesta, nothing. I'm back to the, "There are one or more cron tasks that have been executing for more than 60 minutes." error with emails being the culprit when checking the automation settings. Is there a sane way to resolve this? I can't seem to find anything that actually works and having to respond to email queiries via email when it's not piping into the desk where one can quickly review account details is a lot of work.
  6. Ah, hadn't really considered that. For quick reference, it seems that removing the: Phone and the Country fields breaks the order process. I tested with CAPTCHA on, and if you fail the captcha, you get the normal message/warning. If you complete it properly the page just reloads and the "Create Account" button becomes non-clickable.
  7. Okay, I got it stripped down finally to only requesting: First / Last name and email address. Those three fields are hard-coded as default required fields. For some reason you can't remove the Country or Phone fields without it breaking the registration process, though I'm not certain why.
  8. Upon further review, it appears that removing the Phone Number field causes the registration process to break... Even if the phone number is NOT a required option. <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_phone', true), 'phone'); $this->Form->fieldHidden('numbers[type][0]', 'phone'); $this->Form->fieldHidden('numbers[location][0]', 'work'); $this->Form->fieldText('numbers[number][0]', $this->Html->ifSet($vars->numbers['number'][0]), ['id' => 'phone', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_phone', true)]); ?> </div> I'm still going through and removing things form by form until I can figure out the minimum amount required to get the page to still function properly.... Though I'd prefer that the ones that aren't required not be visible. I'm not planning on calling my customers to tell them happy birthday or mailing them Christmas cards. =]
  9. I want to say the issue was the upload directory was owned by a different user, but I'm not entirely certain. I don't recall modifying the cronjob or it's settings, but it's possible I have. Sorry, I should have noted it here! The other, unrelated issue with email piping fixed itself after this issue was fixed. Still no php email piping, but IMAP works so I'll mark that as "good enough".
  10. I have modified signup.pdt ( /plugins/order/views/templates/wizard ) to display as below. I have removed the un-needed fields from view as they're not needed for our business. The trouble I am having is that removing fields, even those that are NOT "required" results in the inability to proceed with the registration process. The page simply does not progress to the next step, and I can not determine why, as I do not believe any relevant code has been snipped. I only want to display the absolute minimum amount of forms required to process an order. I have CHANGED this ORIGINAL section: <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_contact');?></h4> </div> <div class="col-md-6"> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_firstname', true), 'first_name'); $this->Form->fieldText('first_name', $this->Html->ifSet($vars->first_name), ['id' => 'first_name', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_firstname', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_lastname', true), 'last_name'); $this->Form->fieldText('last_name', $this->Html->ifSet($vars->last_name), ['id' => 'last_name', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_lastname', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_company', true), 'company'); $this->Form->fieldText('company', $this->Html->ifSet($vars->company), ['id' => 'company', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_company', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_title', true), 'title'); $this->Form->fieldText('title', $this->Html->ifSet($vars->title), ['id' => 'title', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_title', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_address1', true), 'address1'); $this->Form->fieldText('address1', $this->Html->ifSet($vars->address1), ['id' => 'address1', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_address1', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_address2', true), 'address2'); $this->Form->fieldText('address2', $this->Html->ifSet($vars->address2), ['id' => 'address2', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_address2', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_city', true), 'city'); $this->Form->fieldText('city', $this->Html->ifSet($vars->city), ['id' => 'city', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_city', true)]); ?> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_country', true), 'country'); $this->Form->fieldSelect('country', $this->Html->ifSet($countries), $this->Html->ifSet($vars->country), ['id' => 'country', 'class' => 'form-control']); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_state', true), 'state'); $this->Form->fieldSelect('state', $this->Html->ifSet($states), $this->Html->ifSet($vars->state), ['id' => 'state', 'class' => 'form-control']); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_zip', true), 'zip'); $this->Form->fieldText('zip', $this->Html->ifSet($vars->zip), ['id' => 'zip', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_zip', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_phone', true), 'phone'); $this->Form->fieldHidden('numbers[type][0]', 'phone'); $this->Form->fieldHidden('numbers[location][0]', 'work'); $this->Form->fieldText('numbers[number][0]', $this->Html->ifSet($vars->numbers['number'][0]), ['id' => 'phone', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_phone', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_fax', true), 'fax'); $this->Form->fieldHidden('numbers[type][1]', 'fax'); $this->Form->fieldHidden('numbers[location][1]', 'work'); $this->Form->fieldText('numbers[number][1]', $this->Html->ifSet($vars->numbers['number'][1]), ['id' => 'fax', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_fax', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_email', true), 'email'); $this->Form->fieldText('email', $this->Html->ifSet($vars->email), ['id' => 'email', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_email', true)]); ?> </div> </div> <?php if ($this->Html->ifSet($show_client_tax_id)) { ?> <hr> <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_billing');?></h4> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_taxid', true), 'tax_id'); $this->Form->fieldText('tax_id', $this->Html->ifSet($vars->tax_id), ['id' => 'tax_id', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_taxid', true)]); ?> </div> </div> <?php } if ($this->Html->ifSet($custom_fields) && !empty($custom_fields)) { ?> <hr> <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_settings');?></h4> <?php // Display custom client fields foreach ($custom_fields as $field) { ?> <div class="form-group"> <?php // Set a unique field ID $field_id = $this->Html->ifSet($custom_field_prefix) . $this->Html->ifSet($field->id); // Show each custom field $disabled = ($this->Html->ifSet($field->read_only) == '1' ? ['disabled' => 'disabled'] : []); switch($field->type) { case 'text': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldText($field_id, $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'select': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldSelect($field_id, $this->Html->ifSet($field->values, []), $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'textarea': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldTextarea($field_id, $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'checkbox': ?> <div class="checkbox"> <label> <?php $this->Form->fieldCheckbox($field_id, $this->Html->ifSet($field->values), $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id], $disabled));?> <?php $this->Html->_($field->real_name);?> </label> </div> <?php break; } ?> </div> <?php } ?> </div> <?php } ?> <hr> <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_authentication');?></h4> <?php if ($this->Html->ifSet($force_email_usernames, 'false') == 'true') { $this->Form->fieldHidden('username_type', 'email'); $this->Form->fieldHidden('username', ''); ?> <div class="alert alert-info"> <p><?php $this->_('Signup.!notice.force_email_usernames');?></p> </div> <?php } else { ?> <div class="radio"> <label> <?php $this->Form->fieldRadio('username_type', 'email', ($this->Html->ifSet($vars->username_type, 'email') == 'email'), ['id'=>'username_type_email']); $this->_('Signup.index.field_username_type_email'); ?> </label> </div> <div class="radio"> <label> <?php $this->Form->fieldRadio('username_type', 'username', ($this->Html->ifSet($vars->username_type) == 'username'), ['id'=>'username_type_username']); $this->_('Signup.index.field_username_type_username'); ?> </label> </div> <div class="form-group username"> <?php $this->Form->label($this->_('Signup.index.field_username', true), 'signup_username'); $this->Form->fieldText('username', $this->Html->ifSet($vars->username), ['id'=>'signup_username', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_username', true)]); ?> </div> <?php } ?> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_newpassword', true), 'new_password'); $this->Form->fieldPassword('new_password', ['id'=>'new_password', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_newpassword', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_confirmpassword', true), 'confirm_password'); $this->Form->fieldPassword('confirm_password', ['id'=>'confirm_password', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_confirmpassword', true)]); ?> </div> <?php if ($this->Html->ifSet($show_receive_email_marketing) == 'true') { ?> <div class="form-group well"> <?php $this->Form->fieldCheckbox('receive_email_marketing', 'true', $this->Html->ifSet($vars->receive_email_marketing, 'false') == 'true', ['id' => 'receive_email_marketing']); ?> <?php $this->Form->label($this->_('Signup.index.field_receive_email_marketing', true), 'receive_email_marketing', ['class' => 'inline']);?> </div> <?php } ?> </div> The above is the ORIGINAL code, below is the modified code: <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_contact');?></h4> </div> <div class="col-md-6"> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_firstname', true), 'first_name'); $this->Form->fieldText('first_name', $this->Html->ifSet($vars->first_name), ['id' => 'first_name', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_firstname', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_lastname', true), 'last_name'); $this->Form->fieldText('last_name', $this->Html->ifSet($vars->last_name), ['id' => 'last_name', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_lastname', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_email', true), 'email'); $this->Form->fieldText('email', $this->Html->ifSet($vars->email), ['id' => 'email', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_email', true)]); ?> </div> </div> <div class="col-md-6"> <strong>NOTICE!</strong><br /> <ul> <li>If paying with <i>crypto</i>, you may choose an alias with no ID verification.<br />( <a href="https://incog.host/tworandomwords" target="_blank">Here is our random two-word generator</a> )</li> <li>If paying with PayPal or Credit Card we will need to verify your identify before setting up your account. This protects us from fraudulent orders. We will not store your personal identifying information about you (First/Last name, location information, etc) after verification.</li> </ul> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_country', true), 'country'); $this->Form->fieldSelect('country', $this->Html->ifSet($countries), $this->Html->ifSet($vars->country), ['id' => 'country', 'class' => 'form-control']); ?> <ul> <li>We are an American based company and must request your country of origin as we are forbidden from providing services to residents of: <i>Iran, Lebanon, Syria, Cuba, North Korea, Libya, Sudan, and Somalia.</i></li> </ul> </div> </div> <?php if ($this->Html->ifSet($custom_fields) && !empty($custom_fields)) { ?> <hr> <div class="col-md-12"> <h4><?php $this->_('Signup.index.heading_settings');?></h4> <?php // Display custom client fields foreach ($custom_fields as $field) { ?> <div class="form-group"> <?php // Set a unique field ID $field_id = $this->Html->ifSet($custom_field_prefix) . $this->Html->ifSet($field->id); // Show each custom field $disabled = ($this->Html->ifSet($field->read_only) == '1' ? ['disabled' => 'disabled'] : []); switch($field->type) { case 'text': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldText($field_id, $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'select': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldSelect($field_id, $this->Html->ifSet($field->values, []), $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'textarea': $this->Form->label($this->Html->ifSet($field->real_name), $field_id); $this->Form->fieldTextarea($field_id, $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id, 'class' => 'form-control'], $disabled)); break; case 'checkbox': ?> <div class="checkbox"> <label> <?php $this->Form->fieldCheckbox($field_id, $this->Html->ifSet($field->values), $this->Html->ifSet($vars->{$field_id}, $this->Html->ifSet($field->default)), array_merge(['id'=>$field_id], $disabled));?> <?php $this->Html->_($field->real_name);?> </label> </div> <?php break; } ?> </div> <?php } ?> </div> <?php } ?> <hr> <div class="col-md-6"> <h4><?php $this->_('Signup.index.heading_authentication');?></h4> <?php if ($this->Html->ifSet($force_email_usernames, 'false') == 'true') { $this->Form->fieldHidden('username_type', 'email'); $this->Form->fieldHidden('username', ''); ?> <div class="alert alert-info"> <p><?php $this->_('Signup.!notice.force_email_usernames');?></p> </div> <?php } else { ?> <div class="radio"> <label> <?php $this->Form->fieldRadio('username_type', 'email', ($this->Html->ifSet($vars->username_type, 'email') == 'email'), ['id'=>'username_type_email']); $this->_('Signup.index.field_username_type_email'); ?> </label> </div> <div class="radio"> <label> <?php $this->Form->fieldRadio('username_type', 'username', ($this->Html->ifSet($vars->username_type) == 'username'), ['id'=>'username_type_username']); $this->_('Signup.index.field_username_type_username'); ?> </label> </div> <div class="form-group username"> <?php $this->Form->label($this->_('Signup.index.field_username', true), 'signup_username'); $this->Form->fieldText('username', $this->Html->ifSet($vars->username), ['id'=>'signup_username', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_username', true)]); ?> </div> <?php } ?> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_newpassword', true), 'new_password'); $this->Form->fieldPassword('new_password', ['id'=>'new_password', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_newpassword', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_confirmpassword', true), 'confirm_password'); $this->Form->fieldPassword('confirm_password', ['id'=>'confirm_password', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_confirmpassword', true)]); ?> </div> <?php if ($this->Html->ifSet($show_receive_email_marketing) == 'true') { ?> </div> <div class="col-md-12"> <div class="form-group well"> <?php $this->Form->fieldCheckbox('receive_email_marketing', 'true', $this->Html->ifSet($vars->receive_email_marketing, 'false') == 'true', ['id' => 'receive_email_marketing']); ?> <?php $this->Form->label($this->_('Signup.index.field_receive_email_marketing', true), 'receive_email_marketing', ['class' => 'inline']);?> </div> <?php } ?> </div> Is there any particular forms that have to be displayed in order for the information in the others to get processed? For example, if I wanted to remove the company, title, and address 1 and address 2 forms I'd snip this, but doing so means that clicking "Create Account" does nothing but verify the CAPTCHA (if incorrect, you get warning. If correct, the page reloads and the button to "Create Account" is no longer clickable. <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_company', true), 'company'); $this->Form->fieldText('company', $this->Html->ifSet($vars->company), ['id' => 'company', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_company', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_title', true), 'title'); $this->Form->fieldText('title', $this->Html->ifSet($vars->title), ['id' => 'title', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_title', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_address1', true), 'address1'); $this->Form->fieldText('address1', $this->Html->ifSet($vars->address1), ['id' => 'address1', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_address1', true)]); ?> </div> <div class="form-group"> <?php $this->Form->label($this->_('Signup.index.field_address2', true), 'address2'); $this->Form->fieldText('address2', $this->Html->ifSet($vars->address2), ['id' => 'address2', 'class' => 'form-control', 'placeholder' => $this->_('Signup.index.field_address2', true)]); ?> </div> I know this may beyond the traditional support given here but I don't want to display registration fields that I don't need. First, Last, and Email are the only hard-coded required fields and those forms have not changed.
  11. I seem to have fixed it, which coincidentally fixed a completely unrelated error:
  12. I'm attempting to update the invoice format ( {month}{day}{year}{num} ), including the numeral start value and increment. But I am unable to save the changes due to the error shown in the title of this post. Nothing specific comes to mind, as I've been getting Blesta setup and attempting to get it ready to go in a live environment for about a week now. No other changes/adjustments have produced this error. Any ideas? For the record, the uploads folder exists, and is writeable by Blesta.
  13. In an frustrating effort to get emails to pipe into the helpdesk properly, I have had to settle for IMAP piping which appears to be the only thing that I can get working. After spending hours reading documentation and attempting to get php piping to work, it's a no-go. Issue is now, the automated task for downloading tickets will run once and this message appears. Took me too long to realize why emails were received once, and only once. Instead of fussing with MySQL tables to release the cron lock manually, I just decided to go to bed and let the lock release itself after 6 hours. Today, I re-enabe the IMAP import of emails to the helpdesk, it runs once, and this message is back. What is the most reliable way to get this to work? The email importation route "works" (once). PHP piping doesn't work out of the box nor after a lot of time spent trying to get it to work, but I guess I'll work on that again. Does the email piping rely on a cron job to detect new emails? If so, then I'm sure I'll encounter the same error as with the IMAP method (work once, cron lock, manually remove or wait 6 hours... In short: Helpdesk email handling only appears to work using IMAP/SSL, but it will only work ONCE and then the error seen in the title will be displayed on the admin index. (Even though it hasn't even been 60 minutes since the cron ran the one time to handle emails). EDIT: v 4.12.3
  14. Incog

    (Disregard, fixed)

    (Disregard, I fixed it. Can't seem to delete this, so I'll just edit it instead.)
×
×
  • Create New...