Need "Add to cart" or "Login to check price" when "Show price when logged in" is set to "yes"

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeNeed "Add to cart" or "Login to check price" when "Show price when logged in" is set to "yes"

This topic has been marked as resolved.

I need to show a button saying “Add to cart” or “Login to check price” on product image in place of the price-button when option “Show price when logged in” is set to “yes”.

Currently it hides the price button and call-to-action button too! This confuses the visitors and will hit conversion-rate.

May 22, 2013 at 6:17 am #23439
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
May 23, 2013 at 3:52 pm #23510

Hi,

Thanks a lot for the tip.

I used everywhere


<?php if ($product['price']): ?>
PRICE BLOCK

<?php else: ?>      
<?php if (!$this->customer->isLogged()): ?>
<a style="color:red;" href="index.php?route=account/login">Login for price</a>
<?php endif; ?>    

<?php endif; ?>

Works like a charm. It’s compatible with option in System >> Settings >> Store >> Option >> Account >> Login Display Prices

Cheers

May 23, 2013 at 5:56 pm #23531

Glad we’ve helped, mate :)

Best,
ThemeBurn team

May 27, 2013 at 2:34 pm #23656
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.