Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

No Price Shown until logged-in - and show [login now]

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-19-2006, 03:29 PM
  ryno's Avatar 
ryno ryno is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Tempe, Az
Posts: 30
 

Default 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...
__________________
gold v4.0.18 -> live
...working on another soon
Reply With Quote
  #2  
Old 02-19-2006, 10:19 PM
  ryno's Avatar 
ryno ryno is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Tempe, Az
Posts: 30
 

Default

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...
__________________
gold v4.0.18 -> live
...working on another soon
Reply With Quote
  #3  
Old 02-20-2006, 03:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 02-20-2006, 07:50 AM
  ryno's Avatar 
ryno ryno is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Tempe, Az
Posts: 30
 

Default

whoa pimp!


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

/error_message.php?login_incorrect
__________________
gold v4.0.18 -> live
...working on another soon
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:15 PM.

   

 
X-Cart forums © 2001-2020