*

Daniel PM

  • ****
  • 111 posts
User type in Zara theme
« on: February 08, 2016, 10:14:30 PM »
Hi, I just bought Zara theme from mb-themes yesterday, I'm using Poedit to translate it to spanish language, so far so good, I just have 2 questions.

1. I can't find the 'delete account' phrase in the .po file, I mean, I already translate it to spanish, saved it and replaced it in the lang files, every single word that I translated did reflect on the theme, except for this 'delete account' button.

2. I noticed that there are two types of users, personal and company users, is there a way to get rid of those divisions and just let every user be standard? Because when a user try to search for something, there are the 3 options, 'all results' 'personal' & 'company' so, let's say the user selects 'company'... ok, the results are filtered, but then, when this same user re opens the site, and search for something the 'company' tab is activated, meaning that maybe new post are on the 'personal' tab, and the user will have no idea about it.


Thanks for reading this post. Regards, Daniel.
Daniel PM

*

MB Themes

Re: User type in Zara theme
« Reply #1 on: February 09, 2016, 07:44:07 AM »
@Daniel PM
1) checked and everything looks good on theme side, string is correctly shown via translation functions:
Code: [Select]
<?php _e('delete account''zara'); ?>
Translation is in .po file as well. Make sure this button is in user profile, not in sidebar.

2) You can disable saving cookies for type of user in file:
oc-content/themes/zara/functions.php

Comment following lines (add // at start of line):
Code: [Select]
if(Params::getParam('sCompany') <> '' or Params::getParam('cookie-action') == 'done' or Params::getParam('cookie-action-side') == 'done' or isset($_GET['sCompany'])) { mb_set_cookie('zara-sCompany', Params::getParam('sCompany')); }

Params::setParam('sCompany', mb_get_cookie('zara-sCompany'));
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel PM

  • ****
  • 111 posts
Re: User type in Zara theme
« Reply #2 on: February 10, 2016, 12:20:24 AM »
Thanks frosticek for the information!, I'm almost finish with the adjustments on the website, I just want to know if there's a way (and how to do it please) to erase the 'country' selection, when I click the location button, you see, this website is for one country only, and I would like to remove that option, just leave in the location pop up box, the options state and city. I guess that it's in the index.php in a middle line somewhere, but I prefer to ask he who knows. Thanks a lot.

Daniel.
Daniel PM

*

MB Themes

Re: User type in Zara theme
« Reply #3 on: February 10, 2016, 08:11:16 AM »
@Daniel PM
In some cases, there is dropdown on region that require country select. If you will avoid country selection, listings with no country would not be shown if you would filter on country.
So may hide country selectors, but not remove it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots