Jump to content

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

Template Variables Rate Topic   - - - - -

 
  • yudazdk
  • Newbie
  • Trial users
  • Join Date: 22-Jul 19
  • 1 posts

Posted 22 July 2019 - 12:06 PM #1

placeholder="{if $auth.geolocation.geo_address}{$auth.geolocation.geo_address}{else}{__('vipshop_geolocation.address_placeholder')}{/if}"

I try to change smarty variable
in var/cache/registry/lang_cache/<file_name>

Where can I edit the varaible vipshop_geolocation.address_placeholder ?
where are those variables stored ?

Thanks

 



 
  • alaa
  • Senior Member
  • Members
  • Join Date: 18-Mar 18
  • 167 posts

Posted 22 July 2019 - 06:03 PM #2

placeholder="{if $auth.geolocation.geo_address}{$auth.geolocation.geo_address}{else}{__('vipshop_geolocation.address_placeholder')}{/if}"

I try to change smarty variable
in var/cache/registry/lang_cache/<file_name>

Where can I edit the varaible vipshop_geolocation.address_placeholder ?
where are those variables stored ?

Thanks

 

You are committing two mistakes here. 

 

First, you should not edit cache files as these files are being complied from original Smarty template files. Cache files are regulaly deleted/updated/recompiled automatically or from manually when you clear cache. Therefore, all changes should be made to Template files located in /design/themes/responsive/templates/

 

Second, what you are trying to update is a language variable which should not be chaned in code (unless you need to create custom and unique one). Language variables can be changed in the Admin Panel in Administration > Languages > Translations. Then search for the language pattern (in your case vipshop_geolocation.address_placeholder). If you found nothing, you can create a new one.