X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   No Price Shown until logged-in - and show [login now] (https://forum.x-cart.com/showthread.php?t=20020)

ryno 02-19-2006 03:29 PM

No Price Shown until logged-in - and show [login now]
 
I'm having a store where client will issue user accounts/logins to company employees. The whole cart and all products can be viewed by all guests, but...

1. I need to HIDE the product PRICE until a user is logged in.
I saw this on the boards:
Code:

{if $login ne ""} display this {/if}
Could this work around the price display in the template? If not - what can I do to accomplish this?

2. I will also need to get rid of "registration.php" and all references to it.
EDIT: I found "skin1/auth.tpl" was the place to remove the registration link...

Thanks for your help...

ryno 02-19-2006 10:19 PM

upon diving into the code... I've found this file

skin1/customer/main/product.tpl

I've added that {if login ne ""} around the price and added it to the show add to cart button statement.
So I've got those hidden for non-logged in users.

now... 1a. I'm wondering if I should hide product options as well? Personal pref there I guess.

and 1b. Where is the category tpl for getting the price in there, and possibly the featured products if we have those on some front page somewhere.

... still searching...

balinor 02-20-2006 03:31 AM

Ryno,

If you open your site in Webmaster Mode (check the manual for instructions) you will be able to see exactly which template is which :)

ryno 02-20-2006 07:50 AM

whoa pimp! :roll:


is there a better place to link them to login than:

/error_message.php?login_incorrect


All times are GMT -8. The time now is 03:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.