Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Alter Link In Vendor Confirmation Email Rate Topic   - - - - -

 
  • pepo1
  • Advanced Member
  • Members
  • Join Date: 23-Jun 17
  • 85 posts

Posted 07 November 2017 - 05:50 AM #1

The language variable "text_company_status_new_to_active_administrator_created" has the following text:

 

"...You can now access the administrator area: <a href="[link]">[link_text]</a> by using the following credentials:..."

 

I want to change the link by adding a url variable to it. Where can I find where this link is generated?

 

Thanks!



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3366 posts

Posted 07 November 2017 - 06:34 AM #2

The language variable "text_company_status_new_to_active_administrator_created" has the following text:

 

"...You can now access the administrator area: <a href="[link]">[link_text]</a> by using the following credentials:..."

 

I want to change the link by adding a url variable to it. Where can I find where this link is generated?

 

Thanks!

 

Hello!

 

Please find vendor_url variable in this code in fn.companies.php file:

$mailer->send(array(
    'to' => $company_data['email'],
    'from' => 'default_company_support_department',
    'data' => array(
        'company' => $company_info,
        'user_data' => $user_data,
        'reason' => $reason,
        'status' => __($status_to == 'A' ? 'active' : 'disabled'),
        'status_from' => $status_from,
        'status_to' => $status_to,
        'e_username' => $e_username,
        'e_account' => $e_account,
        'e_password' => $e_password,
        'vendor_url' => fn_url('', 'V'),
        'company_data' =>  Registry::get('settings.Appearance.email_templates') !== 'new'
            ? $company_info
            : null, // backward compatibility for file templates
    ),
    'template_code' => 'company_status_notification',
    'tpl' => 'companies/status_notification.tpl', // this parameter is obsolete and is used for back compatibility
), 'A');

You can also change the url in "Company status change" e-mail template in the admin panel if you use new e-mail template editor.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics


 
  • pepo1
  • Advanced Member
  • Members
  • Join Date: 23-Jun 17
  • 85 posts

Posted 07 November 2017 - 07:10 AM #3

Hello!

 

Please find vendor_url variable in this code in fn.companies.php file:

$mailer->send(array(
    'to' => $company_data['email'],
    'from' => 'default_company_support_department',
    'data' => array(
        'company' => $company_info,
        'user_data' => $user_data,
        'reason' => $reason,
        'status' => __($status_to == 'A' ? 'active' : 'disabled'),
        'status_from' => $status_from,
        'status_to' => $status_to,
        'e_username' => $e_username,
        'e_account' => $e_account,
        'e_password' => $e_password,
        'vendor_url' => fn_url('', 'V'),
        'company_data' =>  Registry::get('settings.Appearance.email_templates') !== 'new'
            ? $company_info
            : null, // backward compatibility for file templates
    ),
    'template_code' => 'company_status_notification',
    'tpl' => 'companies/status_notification.tpl', // this parameter is obsolete and is used for back compatibility
), 'A');

You can also change the url in "Company status change" e-mail template in the admin panel if you use new e-mail template editor.

 

Thanks! Where is the fn.companies.php file?



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3366 posts

Posted 07 November 2017 - 07:10 AM #4

Thanks! Where is the fn.companies.php file?

 

It is in the app/functions folder.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics