chanond Posted February 12, 2014 Share Posted February 12, 2014 Hi, I purchased new Theme and after installed currency block is disappeared. So we try to reinstall it on new Prestashop (ver. 1.5.6.1), but still same problem exist. Any help please? new tested URL : http://appalivesocial.com/shop/index.php Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 Go to modules, look for currency block in the list and hit the reset button Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Thx Nemo1, but already try many time and nothing show up. Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 Try modules,positions and transplant it to the top of pages hook Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Already hook "This module has already been transplanted to this hook" Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 Okay, was there any 'blockcurrency' folder in your theme's zip file? Maybe the original one has been changed Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Yup, it does. But when I view-source, I can't find any thing about currencies at all. Here is currencies in template <!-- Block currencies module --> <div id="currencies_block_top"> <form id="setCurrency" action="{$request_uri}" method="post"> <p class="inner-carrencies"> <input type="hidden" name="id_currency" id="id_currency" value=""/> <input type="hidden" name="SubmitCurrency" value="" /> {$blockcurrencies_sign} </p> <ul id="first-currencies" class="currencies_ul"> {foreach from=$currencies key=k item=f_currency} <li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}> <a href="javascript:setCurrency({$f_currency.id_currency});" title="{$f_currency.name}"><span>{$f_currency.sign}</span>{$f_currency.name}</a> </li> {/foreach} </ul> </form> </div> <!-- /Block currencies module --> Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 In which folder? the modules/ main folder, or themes/THEMENAME/modules? If the first, it might be overwriting the main one with new hooks Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 it's in themes/THEMENAME/modules? Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 It's not been changed then..Weird, can you see if the original one still has 'hookDisplayTop' or 'hookTop' as method? Also, if you didn't do it already, try enabling error reporting as suggested in my signature Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Yup public function install() { return parent::install() && $this->registerHook('top') && $this->registerHook('header'); } private function _prepareHook($params) { if (Configuration::get('PS_CATALOG_MODE')) return false; if (!Currency::isMultiCurrencyActivated()) return false; $this->smarty->assign('blockcurrencies_sign', $this->context->currency->sign); return true; } /** * Returns module content for header * * @param array $params Parameters * @return string Content */ public function hookTop($params) { if ($this->_prepareHook($params)) return $this->display(__FILE__, 'blockcurrencies.tpl'); } public function hookHeader($params) { if (Configuration::get('PS_CATALOG_MODE')) return; $this->context->controller->addCSS(($this->_path).'blockcurrencies.css', 'all'); } Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 K, let me try turn error on first, thx Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 And I guess you are not in catalog mode, and you have multiple currencies, right? Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Already turn on Error. And, yup not in catalog mode, but have only 1 currency. Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 Then it's normal, it won't display with a single currency Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 lol, then that's weird for another site : http://vifmoda.com : similar set up except PS version is different Hmm, so high probability due to currency block is different? or module in theme is different at some point Anyway, thx Link to comment Share on other sites More sharing options...
NemoPS Posted February 12, 2014 Share Posted February 12, 2014 As you can see from this if (!Currency::isMultiCurrencyActivated()) return false; It returns if there is only 1 currency Link to comment Share on other sites More sharing options...
chanond Posted February 12, 2014 Author Share Posted February 12, 2014 Aye, thx miss that part Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now