Hide prices for users not registered in Prestashop 1.4
I found several solutions here in the forum, but for previous versions.
Can anyone help me please.
Thank you in advance
Thank you ahead of time.
I already got a shop with this feature.
Edit the file classes\FrontController.php
find
'PS_CATALOG_MODE' => (bool)Configuration::get('PS_CATALOG_MODE')replace with
//'PS_CATALOG_MODE' => (bool)Configuration::get('PS_CATALOG_MODE')find
$this->iso = $iso;
$this->setMedia();
insert next code right after
if (isset($cookie)) {
$result = Db::getInstance()->getValue('SELECT max(id_group) FROM '._DB_PREFIX_.'customer_group WHERE id_customer = '.(int)self::$cookie->id_customer);
$idgroup = $result; }
if ($idgroup > 0)
{$catalog_mode = false;}
else
{$catalog_mode = true;}
$smarty->assign(array('PS_CATALOG_MODE' => $catalog_mode));then download and instal the module customerreigtration v2.0 that works great with version 1.40- 1.4.2.5
When you pm me, i wil sent the frontcontroller.php to you.
Good luck, Kuipje
------------------------------------------------------------------------------------------------
Shops made by me:
- http://www.beebiekleding.nl
- http://www.dedeshop.nl
- http://www.Prestaworld.nl
- next
- and next
-
I will see into it, the override directory wil make upgrades in the future much easier.
Kuipje
------------------------------------------------------------------------------------------------
Shops made by me:
- http://www.beebiekleding.nl
- http://www.dedeshop.nl
- http://www.Prestaworld.nl
- next
- and next
-
Now the problem is i still see carts being created but i dont see the customer details of who created the carts, If i have made it not possible to create carts without creating a account how are these "ghost" carts still being created
Any help in this regards would be really helpful, Thanks in advance.
Because of "customerreigtration v2.0", now my whole categories is gone and not working even though I reset every thing.
I should not test this 1.4.2 module.
cth7687, on 26 August 2011 - 05:45 PM, said:
Because of "customerreigtration v2.0", now my whole categories is gone and not working even though I reset every thing.
I should not test this 1.4.2 module.
hello quys - any news about this solution ??
Thanks for the code to hide the prices from non-registered users
i tried it out on my site and it worked beautiful but when i tried to replaced back to normal with my backed up FrontController.php file i was unable to do it
Can anyone help me get my site back to normal?
Thanks Everybody
My Site Is
http://a2zmarketplac...rimmed-yarmulka
if you speak french i see this a post
http://www.prestasho...s-non-inscrits/
else donload the attachement file
it's the traduction whith google translate
for hide the price for non user you must search in product.tpl and product-list.tpl of your theme
the declaration of display price and put {if $logged} before and {/if} after
i hope that help you
hide price non inscrit-EN.txt 3.75K
82 downloads@++ Loulou66
- Editer le premier post du topic en cliquant sur le bouton"Editer",
- Cliquer sur le bouton "Utiliser l'éditeur complet",
- Ajouter la mention "[Résolu]"; au début du titre de votre topic et cliquez sur le bouton "Envoyer le message modifé"
Don't worry about your English its not bad :-)
I looked over your file already i will try to work around with it, but as of now i have to restore my website to normal in order to try this solution
i have followed the steps from the post what has bin posted on 07 June 2011 - 12:25 PM By kuipje and now there is no way how to get back my items live and i don't know how to restore my site to normal view, i'm just getting the following error
There is 1 error :
- You do not have access to this product.
who can help me?
what is youre current version of prestashop?
Did you use the customerreigtration v2.0?
have you set Force compile to yes and cache set no in the performance tab?
The code is quite simple and doesn't change the database at all.
I made the code for a back to business site bud on request of the owner it did not got further developed.
Kuipje
------------------------------------------------------------------------------------------------
Shops made by me:
- http://www.beebiekleding.nl
- http://www.dedeshop.nl
- http://www.Prestaworld.nl
- next
- and next
-
if you have changed only the files classes\FrontController.php
re-upload the original file you can find all version of Ps
here ==> http://code.google.c.../downloads/list
@++ loulou66
- Editer le premier post du topic en cliquant sur le bouton"Editer",
- Cliquer sur le bouton "Utiliser l'éditeur complet",
- Ajouter la mention "[Résolu]"; au début du titre de votre topic et cliquez sur le bouton "Envoyer le message modifé"
Thanks Kuipje for your instructions, i have changed my settings in the performance and i have reset the groups to default in the Back Office
Customers
Groups tab,
performance now everything is back to normal!
Thanks again
BTW my prestashop version is 1.4.6.2 and i have used the customerreigtration v2.0.
can i chenge my chach settings back to yes, will it make my site load faster, and what was the resin for asking me to set it to NO?
sorry for asking this questions i'm a newbie here.
Thanks Loulou for your advise i will try your solution to hide prices i hope it will work well.
Merry Christmas
Great that is works again. Reason to set it to no is experience by working with prestashop.
Be careful with custumer registration 2.0, I've read in this treat that this can cause problems.
Please set the performance tab back to the old settings:
Force compile to no and cache set yes.
Good luck with youre store.
@loulou66, tthx for you're support.
Kuipje,
------------------------------------------------------------------------------------------------
Shops made by me:
- http://www.beebiekleding.nl
- http://www.dedeshop.nl
- http://www.Prestaworld.nl
- next
- and next
-
Merry Christmas
Loulou66
- Editer le premier post du topic en cliquant sur le bouton"Editer",
- Cliquer sur le bouton "Utiliser l'éditeur complet",
- Ajouter la mention "[Résolu]"; au début du titre de votre topic et cliquez sur le bouton "Envoyer le message modifé"
Our solutions are SMALL FOOT PRINT!
Registered Clients Only (i.e. registered and logged in)
four(4) lines of code. one program patch
Authorized Client Only (i.e. approved clients who are logged in)
six(6) lines of code in two programs.
Modules built on prescribed PrestaShop best module practices.
Compatible with all 1.4 systems.



Back to top









