Jump to content

[MODULE] Hide price and add to cart for non registered users v2.0-PS 1.4/1.7


shacker
 Share

Recommended Posts

his module hide the price, cart and add to cart button if the customer is not logged.

Simply add the css classes of the price and add to cart of your template into the module.

 

No core modification needed!!!

 

Features:

  • Configure the classes of prices
  • Configure the classes of add to cart button
  • Display message for non registered users
  • Cross browser
    browsers.png
  • Multilingual
    multilingual.png
  • Multistore
    multistore.png



Link
http://catalogo-onli...dd-to-cart.html

Visit our site for latest version and more free modules
hide-price-and-add-to-cart.jpg

 

Video

https://www.youtube.com/watch?time_continue=2&v=grbnT_NaAmg

 

hidepricecart.zip V2.0

  • Like 2
  • Thanks 2

Share this post


Link to post
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 3 months later...

Hi Shacker, this have one bug, when we see the products with firefox, and we make refresh, for 1 or 2 seconds people can see the price, and then he hide it, but they will see the prices if make some refresh.. I already tested with other pc and the Firefox have this problem to, show for few seconds the prices, but i saw is not all versions of firefox, can you see if is possible this module to be imune to firefox refresh, or put another code for firefox ?

 

With the Chrome all work fine..

 

Tks..

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...

I really like this module, all seems to be working fine except that it hides my slider on the home page and not sure how i can fix this. Seems to be removing some of the div's in the slider.

Any help would be appreciated, thumbs up for a great free module.

url: http://www.beveragedistributors.com.au/

Edited by mircom (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 2 months later...
  • 3 weeks later...
  • 3 weeks later...

Tried with version 1.5.4 of Prestashop using multistore and it doesn't work.

No prices show even when logged in. Shifts the logo down hiding part of the horizontal menu.

I uninstalled it and cannot get the prices back.

Tried to put a comment on the website but doesn't allow me, keeps asking to sign in even after siging in.

Share this post


Link to post
Share on other sites

Tried with version 1.5.4 of Prestashop using multistore and it doesn't work.

No prices show even when logged in. Shifts the logo down hiding part of the horizontal menu.

I uninstalled it and cannot get the prices back.

Tried to put a comment on the website but doesn't allow me, keeps asking to sign in even after siging in.

the module hide the prices and buttons vis CSS, so if you disable it, is imposible that the site dont show again. seems a cache problem

hi

 

how can I insert the word with links Login or Register to see prices in space where there was the prices in product page and product list

 

you cant wit hthe module. you have a popup message when enables the module 

Share this post


Link to post
Share on other sites

you cant wit hthe module. you have a popup message when enables the module 

I solved this thanks.

but I found a problem with the module, that when I press "Enter", it add the product in the cart. How can I turn it off

Share this post


Link to post
Share on other sites

  • 3 weeks later...
  • 5 weeks later...

Just to say $cookie->isLogged() is depreciated in hidepricecart-footer.tpl and hidepricecart-header.tpl.

Looks like it has to be replaced by $this->context->customer->isLogged() in an object context or Context::getContext()->customer->isLogged()

 

So Context::getContext()->customer->isLogged() in this module.

 

Edit : You also need to add #add_to_cart id to the Add to cart class buton list. That's the default cart icon.

Edited by sbenitez (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...

Just to say $cookie->isLogged() is depreciated in hidepricecart-footer.tpl and hidepricecart-header.tpl.

Looks like it has to be replaced by $this->context->customer->isLogged() in an object context or Context::getContext()->customer->isLogged()

 

So Context::getContext()->customer->isLogged() in this module.

 

Edit : You also need to add #add_to_cart id to the Add to cart class buton list. That's the default cart icon.

thanks, i updated mine and it works

Edited by zeki893 (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...

Hi everyone! I am new in all this, but I found a problem with this modul. When I click Add to cart button, I am able to see prices in shoping cart.

I havent use previous versions of PrestaShop with this module, so maybe it is problem only with 1.6

 

Hope dont mind text in serbian on pic

 

http://postimg.org/image/7envdfnpf/

 

Any solution?

Edited by thechoperpilot (see edit history)

Share this post


Link to post
Share on other sites

  • 2 weeks later...

so maybe it is problem only with 1.6

 

 

Don't think so. I'm using 1.6.0.9 and it works (almost) just fine. I'm using the default 1.6.0.9 theme ('default-bootstrap' that is).

 

Only saving the configuration gives the following error message (I think it does not affect the working of this module):

 

Notice op lijn 77 in bestand /var/www/vhosts/e-campus.nu/httpdocs/modules/hidepricecart/hidepricecart.php

[8] Undefined variable: nbr

Edited by WalTig (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...

you need to download the latest verision from our site


Just to say $cookie->isLogged() is depreciated in hidepricecart-footer.tpl and hidepricecart-header.tpl.

Looks like it has to be replaced by $this->context->customer->isLogged() in an object context or Context::getContext()->customer->isLogged()

 

So Context::getContext()->customer->isLogged() in this module.

 

Edit : You also need to add #add_to_cart id to the Add to cart class buton list. That's the default cart icon.

this error is in the old versions, you need to download from our site

  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Sir I installed this addon. Realy very thankx to you for this most impotent sharing..... and great this thing that this is free. i realy appreciate you.

 

Sir i want to know 1 question. I wan to block cart option when i click on any product then showing option add to cart. price also hide. but cart option showing. check screen short.

 

j17ek4.jpg

Share this post


Link to post
Share on other sites

iu need to add the class of these button.

please check the class or tell me your site url to add to the hide module

Yes sir i read it frist. and i m trying more and more but cant understand.

 

http://www.truewisdomclothing.com

 

This is my website. Plz find me class. and if u tell me that where u find and how to find class then i will very thank full to you

Share this post


Link to post
Share on other sites

add this code into the cart buttons

 

.buttons_bottom_block

 

and this code into the prices

 

.product-block .content_price

Sir Extreamly thankx. I add this class on cart buttons and price and 1 problem fix. Realy very thankx. Now 1 class is missing.

 

when i click on any product then in right side cart option displyed. check this link.

 

http://itjahan.com/index.php?id_product=2&controller=product&id_lang=1

http://itjahan.com/index.php?id_product=10&controller=product&id_lang=1

http://itjahan.com/index.php?id_product=11&controller=product&id_lang=1

 

and more link. When open every product then showing right side Plz check

Edited by dilshah (see edit history)

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Sorry I forgot the quote to the still waiting post.

 

That's what I wondered too as it's sounds like it is and this could easily be achieved by checking if not logged in alert a link to login.

if (!$logged_in)

Alert_or_popup with link or loginform

 

This is what it seems like they are wanting.. Hope it helps

Share this post


Link to post
Share on other sites

Sorry I forgot the quote to the still waiting post.

 

That's what I wondered too as it's sounds like it is and this could easily be achieved by checking if not logged in alert a link to login.

if (!$logged_in)

Alert_or_popup with link or loginform

 

This is what it seems like they are wanting.. Hope it helps

The module includes a popup with a warning to register to see the prices

Share this post


Link to post
Share on other sites

Hola shacker,

I have a problem with this great module:

I had it installed on 1.5.4 (with a third party theme) and I wanted to update PS to 1.6.09.

Before the update I uninstalled the module but the "add to cart" buttons dissapeared on all products. The prices were visible.

I updated to 1.6.09 and also changed the theme to a third party theme.

I still cannot see the "add to cart" button anymore. The prices are visible though.

The "add to cart button" appears only if I am logged in.

Can you please help me find the "add to cart" buttons?

Gracias.

Share this post


Link to post
Share on other sites

Hola shacker,

I have a problem with this great module:

I had it installed on 1.5.4 (with a third party theme) and I wanted to update PS to 1.6.09.

Before the update I uninstalled the module but the "add to cart" buttons dissapeared on all products. The prices were visible.

I updated to 1.6.09 and also changed the theme to a third party theme.

I still cannot see the "add to cart" button anymore. The prices are visible though.

The "add to cart button" appears only if I am logged in.

Can you please help me find the "add to cart" buttons?

Gracias.

Hi. The module dont change any file, so uninstalling must work. maybe you have another module . send me your bo access in PM to check it

Share this post


Link to post
Share on other sites

Hi. The module dont change any file, so uninstalling must work. maybe you have another module . send me your bo access in PM to check it

Thanks for replying so promptly.

The shop is on localhost now...

Can you please give me some idea on what should be checked, in order to find the problem?

I cannot understand why the "add to cart" button is visible only when I am logged in, even though the module is uninstalled?

Thank you.

Share this post


Link to post
Share on other sites

Sir i want to add login page link in popup messege

edit the hidepricecart-header.tpl, and you find this:

 

        $.jGrowl('{ldelim}l s='Please register or login to see the prices' mod='hidepricecart'{rdelim}', {ldelim} life: 6500 {rdelim});
 
 
you can add here your code like
 
        $.jGrowl('{ldelim}l s='Please register or <a href="yoururl">login</a> to see the prices' mod='hidepricecart'{rdelim}', {ldelim} life: 6500 {rdelim});
 

Thanks for replying so promptly.

The shop is on localhost now...

Can you please give me some idea on what should be checked, in order to find the problem?

I cannot understand why the "add to cart" button is visible only when I am logged in, even though the module is uninstalled?

Thank you.

check if you dont have another addon, install hideprice cart, and uninstall (remember to clear cache)

Share this post


Link to post
Share on other sites

  • 6 months later...

I'm running the latest version of you plugin with prestashop 1.6.0.14 and default theme.

 

The module works fine when I'm not logged in.

 

But if I log in and visit product page i get logged out automatically?

Share this post


Link to post
Share on other sites

  • 2 weeks later...

thats strange. you have a prevoous version installed?

 

Hi,

 

It was not your module that was the issue, i think it was some kind of friendly url problem that forced user to be logged out.

Share this post


Link to post
Share on other sites

  • 3 months later...

Hi Shacker, i format my computer and install clean windows 7, and i saw one problem in this module, if i open windows explorer and i enter in my website, i can see the prices, and the module is on, maybe this module have some bug, can you check that ?

 

Tks..

Share this post


Link to post
Share on other sites