Zen Cart Logo
Forums / All Other Contributions/Addons / My Checkout Without Account Mod

My Checkout Without Account Mod

Locked

Views: 323,004

Results 601 to 620 of 1,220
This thread is locked. New replies are disabled.
31 Jul 2008, 21:49
#601
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

My Checkout Without Account Mod

Hedera,

Here is the code, copied and pasted from my tpl_header file:

<table border="0" align="center" cellpadding="0" cellspacing="0" width="770" id="menlink">
	<tr><td><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></td>
	<td align="right" width="75%">
	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>Home</a> | 
	<?php if (!$_SESSION['customer_id']) { ?>
	<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>">Login</a><?php } ?>
	<?php if (!$_SESSION['customer_id']) { ?> | <a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>">Register</a>	<?php } ?>
	<?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?>
 	<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">My Account</a> | <?php } ?><?php } ?>
	<?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?>
	<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>">Logout</a></li><?php } ?><?php } ?>
	<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
	| <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">View Cart</a>
	| <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>">Checkout</a>
	<?php }?>
	<br><br>
	<?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
	</tr>
</table>

Take a look at it and see if any of it helps you. With this code, my site does the following:

When a customer comes to my site, the header only displays "Home", "Login", and "Register".

When they create an account or are logged in, "Login" and "Register" get replaced with "Logout" and "My Account".

When they are COWOA, "Login", "Logout", and "My Account" disappear.

31 Jul 2008, 22:20
#602
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Thank you VERY much, I'll study that carefully, since I'd like it to do exactly that.

31 Jul 2008, 23:26
#603
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Craftzombie, my ignorance is showing again. In several places in your code, you use a function I can't find defined anywhere: you separate two statements with a single | (pipe) character. Can you briefly explain that? Is it some kind of logical operator??

I hate to put something up if I don't understand what it does, and the only thing I'm sure of is that the single | is not a PHP operator...

31 Jul 2008, 23:59
#604
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

hedera:

Craftzombie, my ignorance is showing again. In several places in your code, you use a function I can't find defined anywhere: you separate two statements with a single | (pipe) character. Can you briefly explain that? Is it some kind of logical operator??

I hate to put something up if I don't understand what it does, and the only thing I'm sure of is that the single | is not a PHP operator...

That is just what I use to separate the links, since I am not using <li> with bullets or anything like that. Looks like this:

Its not necessary. It just prefer is over using dashes. :smile:

01 Aug 2008, 00:06
#605
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Re: My Checkout Without Account Mod

D'oh! Thank you again...

01 Aug 2008, 00:13
#606
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

hedera:

D'oh! Thank you again...

No problem! In the past, when I wasn't so busy, I used to get into peoples sites (with their permission of course) and fix COWOA for them. But I barely have time to pee anymore! :wacko: Otherwise, I would try to fix it for you. Not that I am an expert. Really, I just figure things out by f$%#ing them up and learning from my mistakes. And thank god for these boards.

01 Aug 2008, 04:38
#607
hedera avatar

hedera

Zen Follower

Join Date:
Nov 2007
Posts:
128
Plugin Contributions:
0

Re: My Checkout Without Account Mod

What really drove me nutz about the | character is: I use them that way myself, on my personal web site which I haven't had time to play with for months because I've been working on ZenCart! You can see them in the header navbar at https://www.karenivy.net! And I missed the identical use in your code... gah.

05 Aug 2008, 20:39
#608
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi,
I just installed COWOA for v1.3.8 (downloaded from http://www.zen-cart.com/wiki/index.p...ithout_Account).

After sucessfully updating files and running the sql patch, I went ahead and test it. When I checkout I get the 3 options, register new account, login, or checkout without account. When I click on checkout without account, it gives me a page not found error.

Upon looking at url it goes to index.php?main_page=FILENAME_NO_NAME its seems its trying to find that file but can't.

Does anyone know how to fix this problem? Or give me some tips? Thanks.

05 Aug 2008, 21:03
#609
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi CraftZombie,
When I looked at your test website http://craftzombie.com/cowoa137/index.php?main_page=login for cowoa, I noticed that the url is
"index.php?main_page=no_account" when you put the cursor over the button to checkout without an account. For some reason my url is "index.php?main_page=FILENAME_NO_ACCOUNT". I don't know if this is because of the difference between v1.3.7 and v1.3.8.
Any idea what is going wrong here?

05 Aug 2008, 22:37
#610
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

ebaobao:

Hi CraftZombie,
When I looked at your test website http://craftzombie.com/cowoa137/index.php?main_page=login for cowoa, I noticed that the url is
"index.php?main_page=no_account" when you put the cursor over the button to checkout without an account. For some reason my url is "index.php?main_page=FILENAME_NO_ACCOUNT". I don't know if this is because of the difference between v1.3.7 and v1.3.8.
Any idea what is going wrong here?

It means that all of your files did not transfer properly. Zen is looking for a file that currently does not exist in your file structure. You need to reinstall includes\templates\YOUR_TEMPLATE\templates\tpl_modules_no_account.php and includes\templates\YOUR_TEMPLATE\templates\tpl_no_account_default.php, but I would also try reinstalling everything else because there could be others that also did not transfer properly.

05 Aug 2008, 23:30
#611
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Thanks CraftZombie!
Somebody needs to update the installation instructions because it did not include instructions to upload those 2 files. I uploaded according to the instructions and it didn't mention those files, but thanks anyways. I'm going to try it out now! Thanks.

05 Aug 2008, 23:49
#612
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

OK it was my bad. Step 2 said to upload the includes directory. Everything seems to be working now. I'm going to continue to test. Thanks for the help!

05 Aug 2008, 23:51
#613
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

ebaobao:

OK it was my bad. Step 2 said to upload the includes directory. Everything seems to be working now. I'm going to continue to test. Thanks for the help!

No problem! Its a ton of reading and work to get Zen the way you want it, but once you do, its the best. :smile:

08 Aug 2008, 18:45
#614
hnguyen1981 avatar

hnguyen1981

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hello,

Hi, I've installed this mod with the Tableless Order Steps option, but the bar display has a problem. I have 'TEXT_ORDER_STEPS_BILLING' as the first step instead of 'Billing'

Any fix for this?

08 Aug 2008, 20:58
#615
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

hi craftzombie,
i was going back to the installation instructions to make sure i'm doing things correctly. My questions is on step 3. What is the difference when you say the files are OVER-RIDDEN as compared to OVER-WRITTEN? For that step I just replaced all the files that were listed. Did I do something wrong?
Thanks.

08 Aug 2008, 23:39
#616
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi craftzombie,
in step 3 it says that "five stock files are over-written" is it possible that instead of replacing these files, I go ahead and over-ride them instead? I'm thinking its not possible since I think it says that a classic folder has to be in the same directory in order to create a custom folder. Is this correct?

09 Aug 2008, 22:02
#617
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

ebaobao:

Hi craftzombie,
in step 3 it says that "five stock files are over-written" is it possible that instead of replacing these files, I go ahead and over-ride them instead? I'm thinking its not possible since I think it says that a classic folder has to be in the same directory in order to create a custom folder. Is this correct?

You cannot override core files. That is why backing up your files comes in handy. You need to install those files exactly how the mod suggests, otherwise it won't work.

ebaobao:

What is the difference when you say the files are OVER-RIDDEN as compared to OVER-WRITTEN?

no difference, just depends on what my fingers feel like typing that day.

09 Aug 2008, 22:08
#618
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: My Checkout Without Account Mod

hnguyen1981:

Hello,

Hi, I've installed this mod with the Tableless Order Steps option, but the bar display has a problem. I have 'TEXT_ORDER_STEPS_BILLING' as the first step instead of 'Billing'

Any fix for this?

Did includes/languages/english/extra_definitions/order_steps_defines.php install correctly? If you open up that file and look at it, you can see that the definition for TEXT_ORDER_STEPS_BILLING should be "Billing". Could be that your FTP didn't transfer? Are the other order steps showing correctly?

09 Aug 2008, 23:37
#619
hnguyen1981 avatar

hnguyen1981

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: My Checkout Without Account Mod

craftzombie:

Did includes/languages/english/extra_definitions/order_steps_defines.php install correctly? If you open up that file and look at it, you can see that the definition for TEXT_ORDER_STEPS_BILLING should be "Billing". Could be that your FTP didn't transfer? Are the other order steps showing correctly?

No, the order_steps_defines.php did install correctly. The other order steps are showing correctly. Even if I try to change any of the other defines like TEXT_ORDER_STEPS_1 or TEXT_ORDER_STEPS_2 and upload it to my ftp, it doesn't change the text in the bar.

So, I don't think this is what defines it. Would it be anywhere else?

09 Aug 2008, 23:45
#620
hnguyen1981 avatar

hnguyen1981

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: My Checkout Without Account Mod

I was able to fix it myself. The definition is located under \includes\languages\english\extra_definitions\apple_zen\order_steps_defines.php. I had to add define('TEXT_ORDER_STEPS_BILLING', 'Billing'); to the file because it was missing.

Thanks for your help craftzombie. You pointed me in the right direction.