Page 203 of 218 FirstFirst ... 103153193201202203204205213 ... LastLast
Results 2,021 to 2,030 of 2177
  1. #2021
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by linuxguy2 View Post
    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..

  2. #2022
    Join Date
    Aug 2015
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by linuxguy2 View Post
    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

  3. #2023
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by norber View Post
    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.

  4. #2024
    Join Date
    Aug 2015
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by linuxguy2 View Post
    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. #2025
    Join Date
    Aug 2015
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by norber View Post
    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.... 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.

  6. #2026
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by norber View Post
    I found checking https://www.zen-cart.com/wiki/index.... 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.
    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.

  7. #2027
    Join Date
    Aug 2015
    Posts
    12
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by norber View Post
    I found checking https://www.zen-cart.com/wiki/index.... 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):


    Code:
          case 'classInstantiate':
          $objectName = $entry['objectName'];
          $className = $entry['className'];
    and then i added this

    Code:
    //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.

  8. #2028
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by linuxguy2 View Post
    norber,
    Looks like you are learning more about ZC than you intended to.
    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 "

  9. #2029
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Fast and Easy Checkout for Zen Cart

    Quote Originally Posted by norber View Post
    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):


    Code:
          case 'classInstantiate':
          $objectName = $entry['objectName'];
          $className = $entry['className'];
    and then i added this

    Code:
    //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.

  10. #2030
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Fast and Easy Checkout for Zen Cart

    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
    Code:
    $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
    Code:
    $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

 

 

Similar Threads

  1. Replies: 4
    Last Post: 25 Jan 2012, 07:37 PM
  2. Fast and Easy Checkout - Checkout Without Account not showing
    By Lee-oh in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 Feb 2010, 05:09 PM
  3. Go To Checkout Error - with Fast and Easy Checkout installed
    By RFree190 in forum General Questions
    Replies: 3
    Last Post: 10 Mar 2009, 07:08 AM
  4. checkout page not redirect (Fast and Easy Checkout module)
    By wowemall in forum Addon Templates
    Replies: 0
    Last Post: 27 Sep 2008, 02:36 PM
  5. Fast and Easy Checkout
    By cmes in forum General Questions
    Replies: 5
    Last Post: 15 Feb 2008, 04:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR