Forums / All Other Contributions/Addons / Fast and Easy Checkout

Fast and Easy Checkout

Views: 552,350

Results 2,021 to 2,040 of 2,177
4 Aug 2015, 4:43 PM
#2021
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Fast and Easy Checkout

linuxguy2:

Maybe you already saw this but one of the core files they add to is in:
/your catalog folder/include/class/template_func.php
Around lines 45 they add: (Be sure it's in there)
global $deviceType;
if($deviceType != FULL_SITE_DISPLAY_DEVICE)
$current_template = DIR_WS_TEMPLATES.DIR_MOBILE_TEMPLATE;

Norber

I take it the previous admin has done some mods to the installation so maybe this isn't an option for you but rather than try to figure out what the previous admin did would starting over be an option?

BACKUP the current CATALOG and DATABASE and be sure to get the products images.

You have already done some of this but as a test:

1:
Do an out of the box install of ZC, FEC & zencart-mobile into a new TEST folder on the server.
If that works install any other plugins he installed and retest.
2:
In the TEST database you just created, using PHP Admin DROP all the tables.
3:
Using PHP Admin import the current production database into the TEST database.
4:
Copy all your product images to the TEST installation images folder.
4:
If that works you would have a clean slate to work from.
5:
Of course you will have to redo the logos etc..

5 Aug 2015, 12:44 AM
#2022
norber avatar

norber

New Zenner

Join Date:
Aug 2015
Posts:
12
Plugin Contributions:
0

Re: Fast and Easy Checkout

linuxguy2:

Norber

I take it the previous admin has done some mods to the installation so maybe this isn't an option for you but rather than try to figure out what the previous admin did would starting over be an option?

BACKUP the current CATALOG and DATABASE and be sure to get the products images.

You have already done some of this but as a test:

1:
Do an out of the box install of ZC, FEC & zencart-mobile into a new TEST folder on the server.
If that works install any other plugins he installed and retest.
2:
In the TEST database you just created, using PHP Admin DROP all the tables.
3:
Using PHP Admin import the current production database into the TEST database.
4:
Copy all your product images to the TEST installation images folder.
4:
If that works you would have a clean slate to work from.
5:
Of course you will have to redo the logos etc..

Thanks guys.
The problem i have is that the previous developer did a lot of changes in the theme that i think that i will do from the scratch and i dont know if the site owner has the money to pay that amount of hours.

I was thinking; if the problem is the damn redirection; it will not be easy (and dirty, i know) to look after the redirection file and put a conditional that ignores that redirection that FEC uses if the case is that the device is a mobile one?

I managed to isolate the variable that manages the user agent, a global one.
Its name is $deviceType

if i could find where the redirection takes place, i could do something like:

if ($deviceType=="phone"){
//do nothing
}else{
//do FEC redirection
}

Do you have any faintest idea where that redirection is done?
I checked every single file and i cannot find anything. I can see that the onepagecheckout is an option in the admin, but i dont know where to look for.

Thx.
Norberto

5 Aug 2015, 2:06 AM
#2023
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Fast and Easy Checkout

norber:

Thanks guys.
The problem i have is that the previous developer did a lot of changes in the theme that i think that i will do from the scratch and i dont know if the site owner has the money to pay that amount of hours.

I was thinking; if the problem is the damn redirection; it will not be easy (and dirty, i know) to look after the redirection file and put a conditional that ignores that redirection that FEC uses if the case is that the device is a mobile one?

I managed to isolate the variable that manages the user agent, a global one.
Its name is $deviceType

if i could find where the redirection takes place, i could do something like:

if ($deviceType=="phone"){
//do nothing
}else{
//do FEC redirection
}

Do you have any faintest idea where that redirection is done?
I checked every single file and i cannot find anything. I can see that the onepagecheckout is an option in the admin, but i dont know where to look for.

Thx.
Norberto

norber

I did an out of the box install of ZC, css_js_loader, FEC and zencart-mobile.
The non-mobile version works OK.

On a iPhone the free version does not allow one to add products to the shopping cart. It just sets at the product screen and prompts to get the paid version to continue.

Without access to all the files included in the paid version there's not much more I can do.

I would double check with zencartmobile to be sure it works with FEC.

As far as redirection goes if it displays the mobile version on your mobile device then it should follow the logic it installed so that leads me to believe it uses whatever check out logic is enabled. I don't think your can switch between regular ZC checkout and FEC on the fly

Please describe what screens the mobile version displays as your go through the checkout.

If I think of anything else I'll post it.

5 Aug 2015, 1:24 PM
#2024
norber avatar

norber

New Zenner

Join Date:
Aug 2015
Posts:
12
Plugin Contributions:
0

Re: Fast and Easy Checkout

linuxguy2:

norber

I did an out of the box install of ZC, css_js_loader, FEC and zencart-mobile.
The non-mobile version works OK.

On a iPhone the free version does not allow one to add products to the shopping cart. It just sets at the product screen and prompts to get the paid version to continue.

Without access to all the files included in the paid version there's not much more I can do.

I would double check with zencartmobile to be sure it works with FEC.

As far as redirection goes if it displays the mobile version on your mobile device then it should follow the logic it installed so that leads me to believe it uses whatever check out logic is enabled. I don't think your can switch between regular ZC checkout and FEC on the fly

Please describe what screens the mobile version displays as your go through the checkout.

If I think of anything else I'll post it.

Im truly amazed by your support guys. All the time you have spent installing things and trying to replicate the problem i have. Thanks.

I think that i managed to isolate the problem, but i still find some problems to implement the solution.

Heres what ive found:

HEre:
/includes/auto_loaders/config.fec.php
The config for fec is loaded. It includes the redirection thing. If i comment those lines, the mobile version works fine.

config.fec.php is loaded using /includes/autoload_func.php. In /includes/autoload_func.php theres a for each loop that checks all the files in auto_loaders folder and loads them.
autoload_func.php is loaded in application_top.php

in autoload_func.php theres another thing loaded: config.mobile.php

my idea was to load the** config.fec.php** depending if it is a mobile device or not.

The problem i have is that seems that the config.fec.php is loaded BEFORE the config.mobile.php.

I need to know if its mobile to decide if i load it or not. But since config.mobile.php since to be loaded AFTER config.fec.php, i cannot do that evaluation.

Theres some way to tell the foreach loop to load config.mobile.php before config.fec.php ?
I thought in rename config.mobile.php to _config.mobile.php but i think that i could screw the site.
Any ideas?

Best regards.
Norberto

5 Aug 2015, 2:13 PM
#2025
norber avatar

norber

New Zenner

Join Date:
Aug 2015
Posts:
12
Plugin Contributions:
0

Re: Fast and Easy Checkout

norber:

Im truly amazed by your support guys. All the time you have spent installing things and trying to replicate the problem i have. Thanks.

I think that i managed to isolate the problem, but i still find some problems to implement the solution.

Heres what ive found:

HEre:
/includes/auto_loaders/config.fec.php
The config for fec is loaded. It includes the redirection thing. If i comment those lines, the mobile version works fine.

config.fec.php is loaded using /includes/autoload_func.php. In /includes/autoload_func.php theres a for each loop that checks all the files in auto_loaders folder and loads them.
autoload_func.php is loaded in application_top.php

in autoload_func.php theres another thing loaded: config.mobile.php

my idea was to load the** config.fec.php** depending if it is a mobile device or not.

The problem i have is that seems that the config.fec.php is loaded BEFORE the config.mobile.php.

I need to know if its mobile to decide if i load it or not. But since config.mobile.php since to be loaded AFTER config.fec.php, i cannot do that evaluation.

Theres some way to tell the foreach loop to load config.mobile.php before config.fec.php ?
I thought in rename config.mobile.php to _config.mobile.php but i think that i could screw the site.
Any ideas?

Best regards.
Norberto

I found checking https://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials that the order of loading is done by the array order.

$autoLoadConfig[0][]
in this case, [0] marks the order.

I checked that order in config.mobile.php and its 0

$autoLoadConfig[0][] = array('autoType'=>'class', 'loadFile'=>'Mobile_Detect.php');

and in case of config.fec.php its pretty big (90)

$autoLoadConfig[90][] = array('autoType'=>'class', 'loadFile'=>'observers/class.fec.php');

So config.fec.php is loaded way after mobile.

The problem is when its run.

5 Aug 2015, 2:49 PM
#2026
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Fast and Easy Checkout

norber:

I found checking https://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials that the order of loading is done by the array order.

$autoLoadConfig[0][]
in this case, [0] marks the order.

I checked that order in config.mobile.php and its 0

$autoLoadConfig[0][] = array('autoType'=>'class', 'loadFile'=>'Mobile_Detect.php');

and in case of config.fec.php its pretty big (90)

$autoLoadConfig[90][] = array('autoType'=>'class', 'loadFile'=>'observers/class.fec.php');

So config.fec.php is loaded way after mobile.

The problem is when its run.

norber,
Looks like you are learning more about ZC than you intended to. :D
That always seems to be the case for me too.

Did the mobile module add a configuration entry to the admin section?
Check ALL the admin settings to see if there's some setting there that might enable loading the mobile code. Sometimes they add configuration entries to an existing section.

You may find some useful information in the Wiki under OBSERVERS.

5 Aug 2015, 2:50 PM
#2027
norber avatar

norber

New Zenner

Join Date:
Aug 2015
Posts:
12
Plugin Contributions:
0

Re: Fast and Easy Checkout

norber:

I found checking https://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials that the order of loading is done by the array order.

$autoLoadConfig[0][]
in this case, [0] marks the order.

I checked that order in config.mobile.php and its 0

$autoLoadConfig[0][] = array('autoType'=>'class', 'loadFile'=>'Mobile_Detect.php');

and in case of config.fec.php its pretty big (90)

$autoLoadConfig[90][] = array('autoType'=>'class', 'loadFile'=>'observers/class.fec.php');

So config.fec.php is loaded way after mobile.

The problem is when its run.

I think i solved it!
FEC autotype is "classInstantiate"

And now i know that config.mobile is loaded BEFORE fec config since config.mobile array order is 0 and config.fec is 90.
The problem is "when" it runs. And i found that it does that inside that foreach in autoload_func.php. That the actions to run is defined in a switch case.

So i looked for case 'classInstantiate' (around line 128):

      case 'classInstantiate':
      $objectName = $entry['objectName'];
      $className = $entry['className'];

and then i added this

//if its a phone and object name = FECObserver  and class name=FECObserver ignore it
if (($deviceType=="phone") && ($objectName=="FECObserver") && ($className=="FECObserver")) { 
$donothing="";

}else{

//rest of the original code


}// close  added if 

Now in phone versions the fec is not loaded, while in the rest (computer, tablet, etc) its ok.
Hope it will be helpful for somebody.
Thanks for all the zenners who helped me, for their time and patience.

5 Aug 2015, 3:07 PM
#2028
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Fast and Easy Checkout

linuxguy2:

norber,
Looks like you are learning more about ZC than you intended to. :D
That always seems to be the case for me too.

Did the mobile module add a configuration entry to the admin section?
Check ALL the admin settings to see if there's some setting there that might enable loading the mobile code. Sometimes they add configuration entries to an existing section.

You may find some useful information in the Wiki under OBSERVERS.

For instance in /includes/classes/observers/class.fec.php note in the description " * Observer class used to redirect to the FEC page "

5 Aug 2015, 3:38 PM
#2029
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Fast and Easy Checkout

norber:

I think i solved it!
FEC autotype is "classInstantiate"

And now i know that config.mobile is loaded BEFORE fec config since config.mobile array order is 0 and config.fec is 90.
The problem is "when" it runs. And i found that it does that inside that foreach in autoload_func.php. That the actions to run is defined in a switch case.

So i looked for case 'classInstantiate' (around line 128):

  case 'classInstantiate':
  $objectName = $entry['objectName'];
  $className = $entry['className'];
> 
> and then i added this
> 
> ```
//if its a phone and object name = FECObserver  and class name=FECObserver ignore it
if (($deviceType=="phone") && ($objectName=="FECObserver") && ($className=="FECObserver")) { 
$donothing="";

}else{

//rest of the original code


}// close  added if 

Now in phone versions the fec is not loaded, while in the rest (computer, tablet, etc) its ok.
Hope it will be helpful for somebody.
Thanks for all the zenners who helped me, for their time and patience.

norber
Thank You for sharing your solution.
That doesn't explain why it didn't work in the first place.
I'm thinking about buying this module so I'm going to find out from zenmobile if it's supposed to work with FEC.

23 Aug 2015, 4:43 PM
#2030
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

I cannot find in this post the problem I have, so if it is I am sorry.

In the file YOUR_ADMIN/orders.php you have find ```
$check_status = $db->Execute("select customers_name, customers_email_address, orders_status,
date_purchased from " . TABLE_ORDERS . "
where orders_id = '" . $_GET['oID'] . "'");

and replace with```
$check_status = $db->Execute("select customers_name, customers_email_address, orders_status,
                                      date_purchased, COWOA_order from " . TABLE_ORDERS . "
                                      where orders_id = '" . $_GET['oID'] . "'");

well I have found two lots of the 'find' code. Do I replace both?

I have had to start from scratch, so this is the first time I have been in this file.

I have added this 'FEC' many times but never spotted this one before.

Learning Fast.
Eden Craft Supplies

24 Aug 2015, 12:52 PM
#2031
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

adb34:

I cannot find in this post the problem I have, so if it is I am sorry.

In the file YOUR_ADMIN/orders.php you have find ```
$check_status = $db->Execute("select customers_name, customers_email_address, orders_status,
date_purchased from " . TABLE_ORDERS . "
where orders_id = '" . $_GET['oID'] . "'");

> and replace with```
$check_status = $db->Execute("select customers_name, customers_email_address, orders_status,
                                      date_purchased, COWOA_order from " . TABLE_ORDERS . "
                                      where orders_id = '" . $_GET['oID'] . "'");

well I have found two lots of the 'find' code. Do I replace both?

I have had to start from scratch, so this is the first time I have been in this file.

I have added this 'FEC' many times but never spotted this one before.

Why can I not read. Both parts need to be replaced, as per the instructions.

Learning Fast.
Eden Craft Supplies

18 Sep 2015, 5:19 PM
#2032
blenderite avatar

blenderite

New Zenner

Join Date:
Jul 2015
Location:
Virginia
Posts:
57
Plugin Contributions:
0

Re: Fast and Easy Checkout

I just installed FEC, and now the site hangs on the Order Confirmation page. Where should I start to troubleshoot this?

There is no order coming through on the Admin side either.

The site URL: https://www.store.whiffletreefarmva.com

21 Sep 2015, 10:11 AM
#2033
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

I have just tested the checkout on my site and I am getting can't reach this page. I am running Windows Edge as I cannot run anything else atm so I thing this means error 404.

Debug file```
[19-Sep-2015 17:23:03 Europe/London] #1 trigger_error() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:155]
#2 queryFactory->show_error() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:132]
#3 queryFactory->set_error() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php:262]
#4 queryFactory->Execute() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/functions/functions_customers.php:39]
#5 zen_address_format() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/functions/functions_customers.php:132]
#6 zen_address_label() called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/templates/tpl_checkout_stacked.php:111]
#7 include(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/templates/tpl_checkout_stacked.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/templates/tpl_checkout_default.php:38]
#8 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/templates/tpl_checkout_default.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php:214]
#9 require(/homepages/20/d503465712/htdocs/shops/ecs/includes/templates/carlisle_fresh/common/tpl_main_page.php) called at [/homepages/20/d503465712/htdocs/shops/ecs/index.php:97]

[19-Sep-2015 17:23:03 Europe/London] PHP Fatal error: 1146:Table 'db588038315.ecs_address_format' doesn't exist :: select address_format as format
from ecs_address_format
where address_format_id = '2' ==> (as called by) /homepages/20/d503465712/htdocs/shops/ecs/includes/functions/functions_customers.php on line 39 <== in /homepages/20/d503465712/htdocs/shops/ecs/includes/classes/db/mysql/query_factory.php on line 155


The address for the page is ```html
http://jmi.edencraftsupplies.co.uk/index.php?main_page=checkout_shipping

I have sorted out the db error.

Learning Fast.
Eden Craft Supplies

21 Sep 2015, 11:33 AM
#2034
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

I have done some digging and the file I am having this problem with is includes/auto_loaders/config.fec.php. I have no error logs.

Learning Fast.
Eden Craft Supplies

22 Sep 2015, 1:56 AM
#2035
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Fast and Easy Checkout

adb34:

I have done some digging and the file I am having this problem with is includes/auto_loaders/config.fec.php. I have no error logs.

Check your install do you have all the files from the includes/classes/observers ? from the module?

22 Sep 2015, 11:40 AM
#2036
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

bislewl:

Check your install do you have all the files from the includes/classes/observers ? from the module?

To make sure all files are loaded, I did it again including includes/auto_loaders/config.fec.php

If you set admin -> Fast and Easy Checkout -> General -> Fast and Easy Checkout to False, checkout works. Set to true I get 'cannot find the page'.

Learning Fast.
Eden Craft Supplies

22 Sep 2015, 11:55 AM
#2037
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

bislewl:

Check your install do you have all the files from the includes/classes/observers ? from the module?

Further to my last post I have un-installed v2.1.2 and installed v2.1.4 Still have the same problem. Just had a thought, I will check all the code that I had to add, see if I have missed something there.

Learning Fast.
Eden Craft Supplies

22 Sep 2015, 12:32 PM
#2038
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Fast and Easy Checkout

adb34:

Further to my last post I have un-installed v2.1.2 and installed v2.1.4 Still have the same problem. Just had a thought, I will check all the code that I had to add, see if I have missed something there.

Did you rename the folder from YOUR_TEMPLATE to the name of your template?

22 Sep 2015, 1:15 PM
#2039
adb34 avatar

adb34

Totally Zenned

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

Re: Fast and Easy Checkout

bislewl:

Did you rename the folder from YOUR_TEMPLATE to the name of your template?

Yes I renamed YOUR_TEMPLATE in the three locations. I have checked the coding and I had f:censored:d up. I had not done it. So I have just added/changed the code as per instructions. Still have the missing page. I have just checked on another PC it is not a cache problem on my Laptop.

Learning Fast.
Eden Craft Supplies

22 Sep 2015, 2:00 PM
#2040
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Fast and Easy Checkout

Are all the files in the includes/modules/pages/ present for the module? do you have an extra file in the includes/modules/pages/login