Jump to content

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

Add Some Text To Vendor Shipping Page Rate Topic   - - - - -

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

Posted 08 November 2017 - 06:57 PM #1

I want to add some text to the vendor's shipping methods admin page to tell the vendor that they cannot edit setting on the "General" tab (see attachment).

Where is the template where I can do this?

Thanks!

Attached Thumbnails

  • shio.png


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21793 posts

Posted 09 November 2017 - 06:49 AM #2

design/backend/templates/views/shippings/update.tpl

 

Add

{if $runtime.company_id}
    {__('shipping_methods_notice')}
{/if}

before

{include file="common/subheader.tpl" title=__("information") target="#acc_information"}

Then go to Administration -> Languages -> Translations and create the shipping_methods_notice language variable with the required text

 

Clear cache and check the result


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

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

Posted 09 November 2017 - 07:47 PM #3

design/backend/templates/views/shippings/update.tpl

 

Add

{if $runtime.company_id}
    {__('shipping_methods_notice')}
{/if}

before

{include file="common/subheader.tpl" title=__("information") target="#acc_information"}

Then go to Administration -> Languages -> Translations and create the shipping_methods_notice language variable with the required text

 

Clear cache and check the result

 

That worked great and now I can do it for other admin pages. Thank you so much!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21793 posts

Posted 10 November 2017 - 07:19 AM #4

That worked great and now I can do it for other admin pages. Thank you so much!

 

You need to check dispatch parameter in the URL and find corresponding template in the admin skin.

 

E.g. 

admin.php?dispatch=products.manage

refers to 

 

design/backend/templates/views/products/manage.tpl

 

Note: some files can be located in addons directory or can be overrided by addons


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)