If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / CheckOut-With-Any-Account or COWAA [Support Thread]

CheckOut-With-Any-Account or COWAA [Support Thread]

Started by davewest on 22 Apr 2017, 1:20 AM · Views: 7,400

Results 1 to 20 of 31
22 Apr 2017, 1:20 AM
#1
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

CheckOut-With-Any-Account or COWAA [Support Thread]

What if customers could create there account during checkout by entering a password or not!!
What if they could register using only a first name, email address and password instead of using the create account page!!
What if anyone could checkout without logging in or having an account!

This is a hybrid of COWOA using a total of three types of user accounts!

  • STANDARD - the normal ZC account type, ether created during checkout by entering a password or anytime before if turned on.
  • REGISTER - same as the STANDARD except it was created just by entering a first name, email address and password, if turned on. Like some of the larger stores.
  • COWOA - which is just the standard checkout without account. Which really does not care any longer if you have an account or not!

Lets say any three can checkout without logging in!
Any one can check on order status without logging in!
A Registered account can finish creating their account by checking out or any time before!

The only difference between STANDARD and REGISTER is that the Registered account has to finish by entering an billing address and contact info, after which the account coverts to a STANDARD account.

This started out as an update to COWOA but it had so many changes to the core code that I decided to leave COWOA alone and do this as a separate mod. Follow the instructions and be careful how are where you use it! Miss installing, forgetting to upload an observer and you may give account access to everyone.

Created in the classic responsive template of ZC 1.5.5e and looking back it should work to ZC 1.5.5a. Tested on PHP5.6.30 and PHP7.1.1 with MySQL 5.5.5-10.1.21-MariaDB

I did this to aid in updating my site from 1.5.4 to ZC 1.5.5e. I'll end up doing the same for the other mods I use. I really have no plans going backwards with the code for older versions of ZC. I tried looking at my 1.5.4 site and recoding it, but at this time, its not worth my time.

This is a large mod. If you have a clean install of ZC 1.5.5e, it's possible to drag and drop files. The forms are responsive and are setup to stack and downsize based on screen size/viewpoint and not device type. The CSS for this is in the stylesheet_COWOA.css..

Remember, this is BETA, test, test and maybe go live.. I am still in the process of upgrading my site. I haven't tested against my PayPal sandbox yet. Well send it to the plugins in a bit.. also on my github page. This will start the support page.

https://www.zen-cart.com/downloads.php?do=file&id=2131

Dave
Always forward thinking... Lost my mind!

22 Apr 2017, 9:08 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

I'll be watching this space, great idea!

26 Apr 2017, 8:41 PM
#3
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Just noticed that I crossed some database commands of 154 to 155e which created some issues when I was testing my added password reset. The strange thing is it was working testing without any modifications... going back to my github version I can see the errors, thus the update.

Corrected both
includes/modules/YOUR_TEMPLATE/create_account.php
includes/modules/YOUR_TEMPLATE/no_account.php

uploaded to github

I'll send up a new update once this goes live here.

Dave
Always forward thinking... Lost my mind!

2 May 2017, 4:22 PM
#4
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Its live now.. spent the day uploading/converting from 154 to 155, heavy modified sheffield blue...

The mod is up in the plugin section, I sent in an update with the two files above and some house keeping changes. If you missed the two files, attaching here.

Dave
Always forward thinking... Lost my mind!

2 May 2017, 4:42 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Shouldn't this line:```
$address_id = $cowoa_account->fields['customers_id'];

be pulling 'customers_default_address_id' instead of 'customers_id'?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 May 2017, 11:16 PM
#6
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

DrByte:

Shouldn't this line:```
$address_id = $cowoa_account->fields['customers_id'];

> be pulling 'customers_default_address_id' instead of 'customers_id'?

Good catch, should be```
 $address_id = $cowoa_account->fields['customers_default_address_id'];

line 441 of includes/modules/YOUR_TEMPLATE/create_account.php

Dave
Always forward thinking... Lost my mind!

23 May 2017, 4:11 PM
#7
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

I am a little confused. \includes\languages\english\YOUR_TEMPLATE\ checkout_payment.php Line 12 - Does this mean that if I am using 'one page checkout' lines 15-23 are not required?

Learning Fast.
Eden Craft Supplies

23 May 2017, 5:00 PM
#8
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

adb34:

I am a little confused. \includes\languages\english\YOUR_TEMPLATE\ checkout_payment.php Line 12 - Does this mean that if I am using 'one page checkout' lines 15-23 are not required?

Basically, the old style checkout process which was the billing, sipping, payment, and confirmation pages.. Currently, the sipping and payment is combined into one page.. The one page mod which isn't included, has more support and tested with more payment/shipping systems than the version I have created. My plan is to someday combined all into one page...

If you turn one page and one page mod off then the old style single pages should still work which is why the language files are there.

Dave
Always forward thinking... Lost my mind!

23 May 2017, 7:22 PM
#9
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

davewest:

Basically, the old style checkout process which was the billing, sipping, payment, and confirmation pages.. Currently, the sipping and payment is combined into one page.. The one page mod which isn't included, has more support and tested with more payment/shipping systems than the version I have created. My plan is to someday combined all into one page...

If you turn one page and one page mod off then the old style single pages should still work which is why the language files are there.

So basically, if I am using one page checkout the lines 15-23 are not required

Learning Fast.
Eden Craft Supplies

25 May 2017, 8:46 PM
#10
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Dave, thanks so much for sharing this! I am excited to try this on my new site rebuild. Before I start wading into all of the (very many!!) edits, I wanted to clarify what you mean in the docs about the checkout page. I do not plan on using the single page checkout module since it seems to have a lot of limitations and apparently isn't one page with credit cards, I have always used fast and easy checkout coupled with COWOA. Can I just use your default checkout if I only use the built-in Paypal Express Checkout, Paypal Payment Pro (for credit card processing) and check/money order? Or will I need to install FEC?

Thanks again!


Zen Cart and it's community are the best!!

26 May 2017, 12:49 AM
#11
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

lankeeyankee:

Dave, thanks so much for sharing this! I am excited to try this on my new site rebuild. Before I start wading into all of the (very many!!) edits, I wanted to clarify what you mean in the docs about the checkout page. I do not plan on using the single page checkout module since it seems to have a lot of limitations and apparently isn't one page with credit cards, I have always used fast and easy checkout coupled with COWOA. Can I just use your default checkout if I only use the built-in Paypal Express Checkout, Paypal Payment Pro (for credit card processing) and check/money order? Or will I need to install FEC?

Thanks again!

It would not work with FEC at all... I've used a one page for shipping and payment for some time, the one page mod works the same way. The built in is a one page which I've used with Paypal express, checks and COD. I've not tried it with any of the payment gateways.

It stands alone with the standard ZC sipping and payment pages, or my one page shipping/payment, or you can install the one page mod...

Dave
Always forward thinking... Lost my mind!

28 May 2017, 5:13 PM
#12
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Just downloaded this and found the links in the read-1html file don't work.
Can't install without instructions.;)

28 May 2017, 5:34 PM
#13
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Disregard, I figured it out.

28 May 2017, 5:52 PM
#14
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Is there a demo site where I can see what the checkout page should look like?

29 May 2017, 2:42 AM
#15
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Serious:

Just downloaded this and found the links in the read-1html file don't work.
Can't install without instructions.;)
OK... no read-1 file..

Serious:

Is there a demo site where I can see what the checkout page should look like?
No DEMO site... images in the cowoa-readme.html, _docs folder.

Dave
Always forward thinking... Lost my mind!

28 Jan 2018, 7:53 PM
#16
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

Any issues applying this to a plain-Jane 1.5.5f site?
Thank you.

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

28 Jan 2018, 9:16 PM
#17
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

No but 1.6 will include this that's why I didn't update.

What you can do is change it like 1.6 has it.

Basically instead of COWOA it's is_guest_order etc I can tell you if you like or wait till 1.6

28 Jan 2018, 10:51 PM
#18
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

VDecalS:

Any issues applying this to a plain-Jane 1.5.5f site?
Thank you.

Works fine in 155f.. My live site is 155f but I just redesigned the login/register concept to behave like the many big box stores. Slowly working back through the other pages to match..

As for 160, have not had time to dig into it yet to see how far along it is.

Dave
Always forward thinking... Lost my mind!

5 Mar 2018, 2:12 AM
#19
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

ohohohoho,i get this error(1.5.5f in godaddy):
( ! ) Fatal error: 1054:Unknown column 'p.products_model_spoon' in 'field list' :: select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_model_spoon, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id, p.products_quantity_order_min, p.products_quantity_order_units, p.products_quantity_order_max, p.product_is_free, p.products_priced_by_attribute, p.products_discount_type, p.products_discount_type_from, p.products_virtual, p.product_is_always_free_shipping from products p, products_description pd where p.products_id = '72' and pd.products_id = p.products_id and pd.language_id = '1' ==> (as called by) /home/getappreal/public_html/shop/includes/classes/shopping_cart.php on line 1213 <== in /home/getappreal/public_html/shop/includes/classes/db/mysql/query_factory.php on line 171
Call Stack

Time Memory Function Location

1 0.0001 368544 {main}( ) .../index.php:0
2 0.0385 1548800 require( '/home/getappreal/public_html/shop/includes/modules/pages/shopping_cart/header_php.php' ) .../index.php:36
3 0.0398 1560456 shoppingCart->get_products( ) .../header_php.php:42
4 0.0398 1561400 queryFactory->Execute( ) .../shopping_cart.php:1213
5 0.0400 1562872 queryFactory->set_error( ) .../query_factory.php:270
6 0.0400 1562872 queryFactory->show_error( ) .../query_factory.php:143
7 0.0401 1569392 trigger_error ( ) .../query_factory.php:171

( ! ) Fatal error: 1054:Unknown column 'p.products_model_spoon' in 'field list' :: select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_model_spoon, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id, p.products_quantity_order_min, p.products_quantity_order_units, p.products_quantity_order_max, p.product_is_free, p.products_priced_by_attribute, p.products_discount_type, p.products_discount_type_from, p.products_virtual, p.product_is_always_free_shipping from products p, products_description pd where p.products_id = '72' and pd.products_id = p.products_id and pd.language_id = '1' ==> (as called by) /home/getappreal/public_html/shop/includes/classes/shopping_cart.php on line 1213 <== in /home/getappreal/public_html/shop/includes/classes/db/mysql/query_factory.php on line 171
Call Stack

Time Memory Function Location

1 0.0936 370496 {main}( ) .../index.php:0
2 17.8609 2491304 require( '/home/getappreal/public_html/shop/includes/templates/responsive_classic/common/tpl_main_page.php' ) .../index.php:97
3 23.3135 5252144 require( '/home/getappreal/public_html/shop/includes/modules/column_right.php' ) .../tpl_main_page.php:205
4 23.4885 5439112 require( '/home/getappreal/public_html/shop/includes/modules/sideboxes/shopping_cart.php' ) .../column_right.php:32
5 23.4960 5439976 require( '/home/getappreal/public_html/shop/includes/templates/template_default/sideboxes/tpl_shopping_cart.php' ) .../shopping_cart.php:34
6 23.4962 5439720 shoppingCart->get_products( ) .../tpl_shopping_cart.php:16
7 23.4962 5440640 queryFactory->Execute( ) .../shopping_cart.php:1213
8 23.4967 5441792 queryFactory->set_error( ) .../query_factory.php:270
9 23.4967 5441792 queryFactory->show_error( ) .../query_factory.php:143
10 23.4967 5450712 trigger_error ( ) .../query_factory.php:171

site: http://shop.targetmarts.com/

5 Mar 2018, 5:51 AM
#20
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: CheckOut-With-Any-Account or COWAA [Support Thread]

targetmarts:

ohohohoho,i get this error(1.5.5f in godaddy):
( ! ) Fatal error: 1054:Unknown column 'p.products_model_spoon' in 'field list' :: select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_model_spoon, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id, p.products_quantity_order_min, p.products_quantity_order_units, p.products_quantity_order_max, p.product_is_free, p.products_priced_by_attribute, p.products_discount_type, p.products_discount_type_from, p.products_virtual, p.product_is_always_free_shipping from products p, products_description pd where p.products_id = '72' and pd.products_id = p.products_id and pd.language_id = '1' ==> (as called by) /home/getappreal/public_html/shop/includes/classes/shopping_cart.php on line 1213 <== in /home/getappreal/public_html/shop/includes/classes/db/mysql/query_factory.php on line 171

It seems that in your shopping_cart class theres a sql statement looking for a column *products_model_spoon *which does not exist in your current database table for products. You need to remove that one statement or figure out why or how it got there to correct that issue. This class was not modified by COWAA! 'products_model_spoon' does not exist in COWAA or a standard install of ZC!

The rest of the error log looks to be something with your server or some other issue not COWAA related.. Without more information, I can not recreate the error..

Dave
Always forward thinking... Lost my mind!