Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2021
    Location
    Utah
    Posts
    10
    Plugin Contributions
    0

    Default v151 Open skips login page, v157 dosent

    On my operational v151 opening goes directly to home:: Software and has the following URL
    .../index.php?main_page=product_info&cPath=2&products_id=1
    On my under development v157 opening goes to home with url
    .../index.php?main.page = index

    How do i set v157 to open as does v151?
    I have searched and cannot seem to find the solution.

    Thanks in Advance

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: v151 Open skips login page, v157 dosent

    Check the value of Admin > Configuration > Layout Settings > Main Page - Opens with Category
    (compare your 151 store to your 157 store)
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jul 2021
    Location
    Utah
    Posts
    10
    Plugin Contributions
    0

    Default Re: v151 Open skips login page, v157 dosent

    In V151 Admin > Configuration > Layout Settings > Main Page - Opens with Category is set at 0 as is V157.
    in V151 there may be "java scripts enhancements" that the late developer made, though.

    Question: In V157 If I setup the one category and one product correctly, and enter 2_1 in "opens with", that should take me to the category page and achieve my goal?
    Thanks

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: v151 Open skips login page, v157 dosent

    I tried this and it doesn't seem to work the way I thought it did. Not sure.
    If you think this behavior was accomplished through javascript, then just pull the relevant script into your 1.5.7 instance. Check the folders includes/modules/pages/index and includes/templates/YOUR_TEMPLATE/jscript.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: v151 Open skips login page, v157 dosent

    misread the post

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: v151 Open skips login page, v157 dosent

    Neither CatID_SubCatID (The example in the setting) nor CatID_PriductID will give you an opening page other than main_page=index.

  7. #7
    Join Date
    Jul 2021
    Location
    Utah
    Posts
    10
    Plugin Contributions
    0

    Default Re: v151 Open skips login page, v157 dosent

    Is there a documented way to have ZC open to the products page? I cannot find anything. Sure will appreciate a pointer in the right direction.

    Thanks

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: v151 Open skips login page, v157 dosent

    @melvinstanley, which sub-version of zc157 are you running? The issue you identified in your original post was corrected in zc157c (https://github.com/zencart/zencart/c...d185756fe99be6).

  9. #9
    Join Date
    Jul 2021
    Location
    Utah
    Posts
    10
    Plugin Contributions
    0

    Default Re: v151 Open skips login page, v157 dosent

    Do I simply cut and paste the old code with the new code:

    I have zen-cart-v1.5.7c-03052021 and the index.php in question has the old code:
    @copyright Copyright 2003-2021 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: DrByte 2020 Dec 24 Modified in v1.5.7c $
    Line 25 on:
    if (isset($cPath) && zen_not_null($cPath)) {
    if ($cPath > 0) {
    $category_status_query =
    "SELECT categories_status
    FROM " . TABLE_CATEGORIES . "
    WHERE categories_id = :currentCategoryId
    LIMIT 1";
    $category_status_query = $db->bindVars($category_status_query, ':currentCategoryId', $current_category_id, 'integer');
    $category_status = $db->Execute($category_status_query);
    if ($category_status->EOF) {
    $current_category_not_found = true;
    } elseif ($category_status->fields['categories_status'] == '0') {
    $current_category_is_disabled = true;
    }
    }

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: v151 Open skips login page, v157 dosent

    You're easiest approach would be to grab the full file contents (https://raw.githubusercontent.com/ze...header_php.php) for the zc157c /includes/modules/pages/index/header_php.php and replace that file's contents on your site.

    Be sure to make a backup of the original first!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 v151 Admin orders page breaking when customer has used paypal
    By nigelt74 in forum General Questions
    Replies: 14
    Last Post: 11 Apr 2015, 09:38 AM
  2. v151 V151 Admin login works but takes me to a blank page HELP
    By ckfs1 in forum General Questions
    Replies: 2
    Last Post: 16 Nov 2014, 12:42 PM
  3. v151 PayPal Express Checkout sometimes skips Payment page (but coupons active)
    By tpeck in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 24 Jan 2014, 11:34 AM
  4. v151 Admin login loop after enabling SSL - v151
    By michaeltw in forum General Questions
    Replies: 10
    Last Post: 19 Dec 2013, 12:44 AM
  5. Help review & tell a friend dosent work!!!
    By hcd888 in forum General Questions
    Replies: 2
    Last Post: 26 Oct 2008, 10:01 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