Jump to content
thirty bees forum

SLiCK_303

Members
  • Posts

    1,231
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by SLiCK_303

  1. I don't know how many ways I can say this. Copy /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl. you need to copy that file into the same path, but in your theme. So, if you are using the default theme, there should be a /themes/Transformer/modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl file
  2. not /modules/gmgetfreeshipping...just that one file
  3. no there is already a /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl. you need to copy that file into the same path, but in your theme. So, if you are using the default theme, there should be a /themes/community-theme-default/modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl file
  4. Are you using my getfreeshipping port, or the authors original, gmgetfreeshipping? Nevermind, I can tell by the logo you are using the original. :) You need to copy the /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl, to the same path but in you modules folder. Then open gmgetfreeshipping.tpl, and add a after the last .
  5. you da man, that worked, thank you! Here's my override, view.tpl file if anyone cares.... 01510153050686view.tpl
  6. I figured it out. I had to edit a core file.. /themes/default/template/controllers/customers/helpers/view/view.tpl. Is there a way to make this an override, instead of editing a core file?
  7. Now, if I could only figure out how to do the same at the bottom of the customers view. At the bottom of viewing a customer is a frame with all their addresses, I wanna find out how to add it there as well. Any ideas?
  8. I'm not a coder, so I don't know if the way I did it was the correct way, but sure.... Copy the file, /controllers/admin/AdminAddressesController.php, to /override/controllers/admin/ How edit that file, replace lines 75-98 with the following code.. ``` $countries = Country::getCountries($this->context->language->id); foreach ($countries as $country) { $this->countriesarray[$country['idcountry']] = $country['name']; } $states = State::getStates($this->context->language->id); foreach ($states as $state) { $this->states_array[$state['id_state']] = $state['name']; } $this->fields_list = [ 'id_address' => ['title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'], 'firstname' => ['title' => $this->l('First Name'), 'filter_key' => 'a!firstname'], 'lastname' => ['title' => $this->l('Last Name'), 'filter_key' => 'a!lastname'], 'address1' => ['title' => $this->l('Address')], 'city' => ['title' => $this->l('City')], 'state' => ['title' => $this->l('State'), 'filter_key' => 'st!name'], 'postcode' => ['title' => $this->l('Zip/Postal Code'), 'align' => 'right'], 'country' => ['title' => $this->l('Country'), 'type' => 'select', 'list' => $this->countries_array, 'filter_key' => 'cl!id_country'], ]; parent::__construct(); $this->_select = 'cl.`name` as country, st.`name` as state'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int) $this->context->language->id.') LEFT JOIN `'._DB_PREFIX_.'state` st ON (st.`id_state` = a.`id_state`) LEFT JOIN `'._DB_PREFIX_.'customer` c ON a.id_customer = c.id_customer '; $this->_where = 'AND a.id_customer != 0 '.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER, 'c'); $this->_use_found_rows = false; ``` Here is my override file in it's entirety... 01510089968403AdminAddressesController.php The way it is, I could setup the state as a dropdown list like country is, but I like it better typing something in.
  9. I got the override working....... Thanx for the module tho! You da man
  10. Thanx for that, it works like a champ! :thumbsup: I would rather do it with an override however, that way I can change the order of things as well...
  11. I tried this, and it didnt work, it broke the country... ``` $this->select = 'cl.name as country'; $this->join = ' LEFT JOIN '._DB_PREFIX_.'country_lang cl ON (cl.id_country = a.id_country AND cl.id_lang = '.(int) $this->context->language->id.') LEFT JOIN '._DB_PREFIX_.'customer c ON a.idcustomer = c.idcustomer '; $this->where = 'AND a.idcustomer != 0 '.Shop::addSqlRestriction(Shop::SHARECUSTOMER, 'c'); $this->usefoundrows = false; $this->_select = 'st.`name` as state'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'state` st ON (st.`id_state` = a.`id_state`) LEFT JOIN `'._DB_PREFIX_.'customer` c ON a.id_customer = c.id_customer '; $this->_where = 'AND a.id_customer != 0 '.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER, 'c'); $this->_use_found_rows = false; ```
  12. I think I need to do something like this, like they did for the country, except for a state, to pullout the states name via it's id... $this->_select = 'cl.`name` as country'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int) $this->context->language->id.') LEFT JOIN `'._DB_PREFIX_.'customer` c ON a.id_customer = c.id_customer '; $this->_where = 'AND a.id_customer != 0 '.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER, 'c'); $this->_use_found_rows = false; any thoughts?
  13. I see that's the only file I need to modify, however I need to change the states id into it's name...... Any thoughts on how I do that?
  14. yeah, I figured that one, thank you, is there anyplace else I need to edit?
  15. Hi all, I would like to know how I can have the state (Florida, California, etc.) of the customers addresses show in the customers->addresses overview page, so I can filter on state. Anyone have an idea?
  16. I'm outta ideas if you have sweden as 18, and it's listed everywhere else in Localization. Next.....
  17. just upload the core mails folder. not any theme mails...
  18. Goto thritybees/thirtybees, then there is an option on the right top to d/l
  19. I don't know the 'right' way of doing it, i just downloaded the whole TB project, then uploaded the mails to my server.
  20. When you look at the different options in back-office>Localization, do you see Sweden listed, and if so what ID are they? Like in Localization>Countries, do you see Sweden as 18?
  21. The core emails they fixed already, you can get them from github, the module ones....well....I did them myself manually.
  22. Solved by theme update.
×
×
  • Create New...