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

Remove membership option?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-12-2004, 01:23 PM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default

Quote:
Fatal error: Smarty: [in customer/main/register.tpl line 1]: syntax error: unidentified token 'ц┼' (Smarty_Compiler.class.php, line 1236) in /www/hosts/com/s/smartcover/www.smartcover.com/docs/Smarty-2.5.0/Smarty_Compiler.class.php on line 1832

Any guess? I'd love to make use of that paypal address
__________________
version 4.0.18 (+ several cool mods)
Reply With Quote
  #12  
Old 03-12-2004, 05:30 PM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default SUCCESS!!!

Ok, it's probably not the BEST solution. But it works...

1) Admin -> general settings -> moderated membership signup (uncheck this).

2) In skin1 > customer > main > register.tpl leave all the code in place, but comment out the input fields. For example...
Code:
<input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}">
would become
The text ("username" for example) can be deleted or commented out. In some spots you can comment out the whole row, but be careful*

* I kept backing up the file after each step, and press refresh to view the change, so I could easily restore if I commented out too much

3) You will have to do this process twice in the register.tpl file since there are two sets of username/password combinations. One is for the initial register page, and the other is section is for the page you see when you update the info. Make sure to comment out the fields in both sections of register.tpl.

4) That got rid of everything except the heading and horizontal line. I can't remember what file those were in (anonymous_checkout.tpl I think). Anyway, that part was very easy to find & delete.

I tested the process and everything appears to be working splendidly. I do agree with Boomer though that taking the username/password option off is a dumb idea generally (this client insisted though so ::poof:: it's gone now).

Thanks again for your help Boomer
(I happily made a small donation since you got me started).

:Stacey
__________________
version 4.0.18 (+ several cool mods)
Reply With Quote
  #13  
Old 03-14-2004, 01:18 PM
 
symphony symphony is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 82
 

Default Enable Anonymous Checkout

Hello,

I am trying to set my store to allow anonymous checkout. I am fairly new to x-cart so excuse me if this is very basic but can't figure out yet!!

In my general settings, "disable anonymous checkout" is unchecked but still here is the problem:

When a customer decides to add a product to cart, it shows the error_registration page saying "Registration is required" which drives me crazy for 2 reasons:

1/ I have other licenses of x-cart which are set up the same way in "General settings" and customers can add to cart no problem without getting "Registration is required". They simply get the choice to create a username/password when checking out but not obligated.

2/ I loose a lot of customers because they feel like they are forced to create an account if they want to order something.

Maybe I am looking in the wrong place in x-cart. If so, any help would be greatly appreciated.

Thank you.
__________________
Version 4.0.17
Reply With Quote
  #14  
Old 03-27-2004, 05:47 PM
 
idesign123 idesign123 is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 58
 

Default

I'm not sure this answers your post symphony, but it's needed info (an addendum to my previous post).

- To take off the username/password fields from register.tpl you can comment out the unwanted fields (as described in my post above).

- This works great with most orders, but it created a bug where a visitor can get "trapped" if they try to modify their profile (the cart tells them there is an error and they can't proceed). The error happens because the cart is looking for their username/password (and those have been commented out).

A fix that worked for me was to open register.php and change the line...
Code:
$fillerror = (empty($uname) || !empty($error) || empty($passwd1) || empty($passwd2) || ($passwd1 != $passwd2) || empty($firstname) || empty($lastname) || empty($b_address) || empty($b_city) || (!empty($states) && empty($b_state)) || empty($b_country) || empty($b_zipcode) || empty($phone) || empty($email));

to

Code:
$fillerror = (empty($uname) || !empty($error) || empty($firstname) || empty($lastname) || empty($b_address) || empty($b_city) || (!empty($states) && empty($b_state)) || empty($b_country) || empty($b_zipcode) || empty($phone) || empty($email));

SUMMARY:

1) Taking the username/password off the register page is usually a dumb idea (meditate on this before deciding to remove it).

2) If you have a client (like mine) that insists on having it removed, you can do it by commenting out the unwanted fields (see my post above).

3) This solves the problem, but creates a bug in the "modify profile" page. That bug can be fixed by changing the include/register.php file as indicated above.

4) Save a copy of the old include/register.php and register.tpl in case you need to someday add back the username/password option.

This is working for me now (no username/password during checkout & no bugs). Hope that helps someone!
__________________
version 4.0.18 (+ several cool mods)
Reply With Quote
  #15  
Old 02-17-2005, 07:47 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

Can anyone tell me how I would do this in 4.0.10?

PLEASE!

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #16  
Old 02-17-2005, 07:50 AM
 
balinor balinor is offline
 

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

Default

In General Setings, check the box that says "Moderated sign-up for membership"
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #17  
Old 02-17-2005, 08:09 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

Thanks, but I want to get rid of the username/password info from the checkout screen. I only want to allow anonymous checkout at this point and would just like to comment out the appropriate lines for now as I might want to use it later.

Can you advise what I would comment out in order to not allow registration at this point?

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:03 AM.

   

 
X-Cart forums © 2001-2020