Jump to content

Currency in Catalog mode?


emilg_fsdg
 Share

Recommended Posts

Hey Guys, 

 

sorry if this is already covered elsewhere in the forums. 

 

I run 1.6x Prestashop in catalog mode. I have already managed to show the prices on catalog mode. But, I would also like to keep the currency block visible. Currently, even if the currency block is active and hooked to the top nav menu, it remains invisible.  

 

Anyone knows where I can 'tweak' the code to make the currency block visible in catalog mode ?

Share this post


Link to post
Share on other sites

module/blockcurrency

 

find code like this and add // to stop check of catalog mode, note there maybe more than one check.

	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;
	}

Share this post


Link to post
Share on other sites

 

module/blockcurrency

 

find code like this and add // to stop check of catalog mode, note there maybe more than one check.

	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;
	}

 

Awesome, worked like charm. Many thanks ;)

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More