Page 32 of 126 FirstFirst ... 2230313233344282 ... LastLast
Results 311 to 320 of 1251
  1. #311
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    Still working on nav menu drop-down menus and sub-menus. I've got them the way I want on large screens but not when the nav menu collapses for small devices. The nav bar containing the "hamburger" icon extends the full width of the screen which is fine. But the drop-down menus and sub-menus also extend across the screen instead of the width required for the contents. I've tried many schemes but I haven't hit on the right html or css to get what I want. The drop-down menus and sub-menus open down as expected.

    How can I keep drop-down menus and sub-menus from extending across the entire screen when the nav menu is collapsed?

  2. #312
    Join Date
    Jan 2021
    Location
    Jamestown, CA, USA
    Posts
    2
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    I am an old hand at building websites and know my way around pretty well when it comes to php, and MySQL but am completely a novice when it comes to Zen Cart. I am using the bootstrap theme which I love so far, thank you.

    I added an "about us" define page and I think I am missing a small detail and I just don't know what yet because of my unfamiliarity with Zen Cart (but I am learning fast). The About Us page appears in the information sidebox at desktop width, but in the responsive bit when we get to the "Hamburger Menu" it does not show up at all.

    Interesting enough when I look at the site map the About Us page is there but outside of the page hierarchy somehow. You can see it here (unless I find the solution before i get help https://shop.jedipath.academy/index...._page=site_map I figure this is a clue as to what I did wrong or what is missing but my search terms is not turning up anything as to what to modify to get it in the correct place.

    Thank you in advance for any help that is forthcoming.

  3. #313
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: ZCA Bootstrap Template

    I discovered an issue with 3.0.0 installed on 1.5.7b. If the shipping estimator is configured to display a button that opens the popup, the dropdowns incorrectly display the last states after the country is changed. I found that the template in includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php was missing the onchange.
    I changed line 59 from
    PHP Code:
    <?php echo zen_get_country_list('zone_country_id'$selected_country'id="country"'); ?>
    To
    PHP Code:
    <?php echo zen_get_country_list('zone_country_id'$selected_country'id="country" onchange="update_zone(this.form);"'); ?>
    This fixes the issue

  4. #314
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by badarac View Post
    I discovered an issue with 3.0.0 installed on 1.5.7b. If the shipping estimator is configured to display a button that opens the popup, the dropdowns incorrectly display the last states after the country is changed. I found that the template in includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php was missing the onchange.
    I changed line 59 from
    PHP Code:
    <?php echo zen_get_country_list('zone_country_id'$selected_country'id="country"'); ?>
    To
    PHP Code:
    <?php echo zen_get_country_list('zone_country_id'$selected_country'id="country" onchange="update_zone(this.form);"'); ?>
    This fixes the issue
    Thanks for the report. The Bootstrap template has been updated to remove those onchange elements, deferring to its jQuery handling. It sounds like that processing needs to be extended to the popup_shipping_estimator page, too.

  5. #315
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by Saundan View Post
    I added an "about us" define page and I think I am missing a small detail and I just don't know what yet because of my unfamiliarity with Zen Cart (but I am learning fast). The About Us page appears in the information sidebox at desktop width, but in the responsive bit when we get to the "Hamburger Menu" it does not show up at all.
    You'll have to add it into /includes/templates/bootstrap/common/tpl_offcanvas_menu.php
    .

    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.

  6. #316
    Join Date
    Jan 2021
    Location
    Jamestown, CA, USA
    Posts
    2
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by DrByte View Post
    You'll have to add it into /includes/templates/bootstrap/common/tpl_offcanvas_menu.php
    That was the part that was missing. Thank you so very much. I am grateful. I apologize if the question was off topic for the theme. The learning curve on this is steep I only started looking at Zen Cart on Sunday. I got it in the drop down hamburger menu now but it still off to the side on the sitemap. But I will take it.
    Last edited by Saundan; 23 Jan 2021 at 05:48 AM.

  7. #317
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by lat9 View Post
    Thanks for the report. The Bootstrap template has been updated to remove those onchange elements, deferring to its jQuery handling. It sounds like that processing needs to be extended to the popup_shipping_estimator page, too.
    FWIW, I've chosen to replace that popup display with a Bootstrap modal. See this (https://github.com/lat9/ZCA-Bootstra...late/issues/42) GitHub issue for additional information. That update will be included in the forthcoming Bootstrap v3.1.0.

  8. #318
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: ZCA Bootstrap Template

    If someone is interested I removed the table display from cart, and changed it to divs, following is the code.

    Removed from:
    <div class="table-responsive">
    thru
    </form>

    PHP Code:
    <?php
      
    foreach ($productArray as $product) {
    ?>
    <div class="row fz-product-in-cart">
        <div class="col-12 col-md-6">
            <div class="row">
                <div class="col-12">
    <?php echo TABLE_HEADING_PRODUCTS?><br><br>
                <a href="<?php echo $product['linkProductsName']; ?>"><?php echo $product['productsImage']; ?><?php echo $product['productsName'] . '' $product['flagStockCheck'] . ''?></a>
                <br class="clearBoth" />
        <?php
        
    echo $product['attributeHiddenField'];
        if (isset(
    $product['attributes']) && is_array($product['attributes'])) {
        echo 
    '<div class="productsCell-attributes">';
        echo 
    '<ul>';
        foreach (
    $product['attributes'] as $option => $value) {
        
    ?>
        <li>
            <?php
            
    echo $value['products_options_name'] . TEXT_OPTION_DIVIDER nl2br($value['products_options_values_name']);
            
    ?>
        </li>
        <?php
            
    }
          echo 
    '</ul>';
          echo 
    '</div>';
          }
        
    ?>
                </div>
            </div>
        </div>
        <div class="col-12 col-md-6">
            <div class="row fz-detail-separator">
                <div class="col-4">
                <?php echo TABLE_HEADING_QUANTITY?>
                </div>
                <div class="col-6">
                <?php
                
    if ($product['flagShowFixedQuantity']) {
                echo 
    $product['showFixedQuantityAmount'] . '' $product['flagStockCheck'] . '' $product['showMinUnits'];
                } else {
                echo 
    $product['quantityField'] . '' $product['flagStockCheck'] . '' $product['showMinUnits'];
                }
                
    ?>
                </div>
                <div class="col-2">
                <?php
                  
    if ($product['buttonUpdate'] == '') {
                    echo 
    '' ;
                  } else {
                    echo 
    $product['buttonUpdate'];
                  }
                
    ?>
                </div>
            </div>
            <div class="row">
            <div class="col-12">
                <div class="row fz-detail-separator">
                <div class="col-6">
                    <?php echo TABLE_HEADING_PRICE?>/unit
                </div>
                <div class="col-6 text-right">
                    <?php echo $product['productsPriceEach']; ?>
                </div>
                </div>
                <div class="row fz-detail-separator">
                <div class="col-6">
                    <?php echo TABLE_HEADING_TOTAL?>/item
                </div>
                <div class="col-6 text-right">
                    <?php echo $product['productsPrice']; ?>
                </div>
                </div>
                <div class="row fz-detail-separator">
                <div class="col-12">
                <?php
                  
    if ($product['buttonDelete']) {
                
    ?>
                    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'action=remove_product&product_id=' $product['id']); ?>" class="btn"><i class="fas fa-trash-alt"></i></a>
                <?php
                
    }
                
    ?>
                </div>
                <div class="col-12">
                <?php
                  
                  
    if ($product['checkBoxDelete'] ) {
                    echo 
    zen_draw_checkbox_field('cart_delete[]'$product['id'], false'aria-label="' ARIA_DELETE_ITEM_FROM_CART '"');
                  }
                
    ?>
                </div>
                </div>
            </div>
            </div>
        </div>
    </div>
    <?php
      
    // end foreach ($productArray as $product)
    ?>
    <div class="row fz-cart-total">
        <div class="col-12 col-md-6">
            <div class="row">
                <div class="col-12 fz-update-button">
                <?php
                
    // show update cart button
                  
    if (SHOW_SHOPPING_CART_UPDATE == or SHOW_SHOPPING_CART_UPDATE == 3) {
                
    ?>
                <button type="submit" class="btn"><i class="fas fa-sync-alt"></i></button>
                <?php
                  
    } else { // don't show update button below cart
                
    ?>
                <?php
                  
    // show update button
                
    ?>
                </div>
            </div>
        </div>
        <div class="col-12 col-md-6">
            <div class="row fz-cart-total-price">
                <div class="col-6">
                <?php echo SUB_TITLE_SUB_TOTAL?>
                </div>
                <div class="col-6 text-right">
                <?php echo $cartShowTotal?>
                </div>
            </div>
        </div>
    </div>

    <!--bof shopping cart buttons-->
        <div class="row">
            <div class="col-12 col-sm-6 order-sm-2 fz-checkout-button">
                <?php echo '<a href="' zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' zen_image_button(BUTTON_IMAGE_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a>'?>
            </div>
            <div class="col-12 col-sm-6">
                <?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPINGBUTTON_CONTINUE_SHOPPING_ALT) . '</a>'?>
            </div>
        </div><!-- .row .fz-cart-row-wrap -->
    <!--eof shopping cart buttons-->
    </form>
    The css

    Code:
    .fz-product-in-cart {border: 1px solid #099f36; margin: 0.9rem auto;}
    .fz-cart-total {border: 1px solid #099f36; margin: 0.9rem auto; background-color: rgba(144, 243, 135, 0.45);}
    .fz-detail-separator {border-bottom: 1px solid #099f36; margin: 0 -0.19rem; padding: 0.9rem 0.27rem;}
    .fz-detail-separator:last-child {border: none;}
    .fz-update-button {padding: 0.63rem;}
    .fz-cart-total-price{margin: 0 -0.19rem; padding: 0.9rem 0.27rem;}
    .row.fz-shipping-method {margin: 0;}
    Last edited by keneso; 24 Jan 2021 at 02:36 AM.

  9. #319
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap Template

    I'm using ZCA Bootstrap 3.0.0 template with ZC 157b. On some screen widths , the "add to cart" quantity box on the product listing page goes partially off screen making it difficult or impossible to change the quantity from 0 to say 1. I have turned all sideboxes off. Any ideas on correcting this?
    TIA,
    Dave
    zc157b php 7.3.21

  10. #320
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: ZCA Bootstrap Template

    Quote Originally Posted by Dave224 View Post
    I'm using ZCA Bootstrap 3.0.0 template with ZC 157b. On some screen widths , the "add to cart" quantity box on the product listing page goes partially off screen making it difficult or impossible to change the quantity from 0 to say 1. I have turned all sideboxes off. Any ideas on correcting this?
    TIA,
    Dave
    zc157b php 7.3.21
    Dave, I'm not seeing that behavior on a 'stock' installation like the demo (https://vinosdefrutastropicales.com/zc157_bs4). Perhaps if you'd be more specific with the screen widths, additional help could be provided.

 

 
Page 32 of 126 FirstFirst ... 2230313233344282 ... LastLast

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 94
    Last Post: 16 Mar 2024, 04:13 PM
  2. v150 aBagon Template Support Thread
    By VJef in forum Addon Templates
    Replies: 54
    Last Post: 5 Sep 2020, 08:44 PM
  3. v155 ZCA Bootstrap Template 1.0 (BETA)
    By rbarbour in forum Addon Templates
    Replies: 74
    Last Post: 25 Apr 2018, 07:05 PM
  4. TB Sempre Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 48
    Last Post: 19 Mar 2015, 06:33 PM
  5. Wallet Template - Support Thread
    By zami in forum Addon Templates
    Replies: 45
    Last Post: 25 Mar 2010, 10:15 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