Page 163 of 168 FirstFirst ... 63113153161162163164165 ... LastLast
Results 1,621 to 1,630 of 1677
  1. #1621
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I got it figured out.

  2. #1622
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Ok, I want to add 2 or 3 fields for the (Materials, Product Size and Weight) how can I do that?


  3. #1623
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by wmorris View Post
    Ok, I want to add 2 or 3 fields for the (Materials, Product Size and Weight) how can I do that?

    Edit /includes/templates/YOUR_TEMPLATE/tpl_product_info_display_details.php to add those fields. Note that YOUR_TEMPLATE identifies the name of your clone of the bootstrap template.

  4. #1624
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by lat9 View Post
    Edit /includes/templates/YOUR_TEMPLATE/tpl_product_info_display_details.php to add those fields. Note that YOUR_TEMPLATE identifies the name of your clone of the bootstrap template.
    What am I looking for in this file?

  5. #1625
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by wmorris View Post
    What am I looking for in this file?
    You said you want to add fields to each product's details-list. That's the file you'll need to edit; your site-specific changes require custom-programming.

  6. #1626
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by lat9 View Post
    You said you want to add fields to each product's details-list. That's the file you'll need to edit; your site-specific changes require custom-programming.
    What lines am I looking for to add additional fields?

  7. #1627
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I have found the file. But I am having trouble adding the code in the file.

  8. #1628
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Ok, here is the tpl_product_info_display_details.php I need to help to add the dimensions and product materials.
    Code:
    <?php
    /**
     * Page Template
     *
     * BOOTSTRAP v3.7.7
     *
     * Provides the default display for a product's info-page details list.  A product-type,
     * e.g. product_music_info, can provide customized display of these details
     * by including a module named `tpl_{product_type}_display_details.php.  For
     * product_music_info, this file is named tpl_product_music_info_display_details.php.
     */
    $display_product_model = ($flag_show_product_info_model === '1' && $products_model !== '');
    $display_product_weight = ($flag_show_product_info_weight === '1' && $products_weight != 0);
    $display_product_quantity = ($flag_show_product_info_quantity === '1');
    $display_product_manufacturer = ($flag_show_product_info_manufacturer === '1' && !empty($manufacturers_name));
    
    $additional_details = [];
    $zco_notifier->notify('NOTIFY_PRODUCT_INFO_DISPLAY_DETAILS', [], $additional_details);
    
    if ($display_product_model || $display_product_weight || $display_product_quantity || $display_product_manufacturer || count($additional_details) !== 0) {
    ?>
                <ul id="<?= $html_id_prefix ?>-productDetailsList" class="productDetailsList list-group mb-3">
                    <?= (($display_product_model === true) ? '<li class="list-group-item">' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n" ?>
                    <?= (($display_product_weight === true) ? '<li class="list-group-item">' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n" ?>
                    <?= (($display_product_quantity === true) ? '<li class="list-group-item">' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n" ?>
                    <?= (($display_product_manufacturer === true) ? '<li class="list-group-item">' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n" ?>
    <?php
        foreach ($additional_details as $next_detail) {
            echo '<li class="list-group-item">' . $next_detail . '</li>' . "\n";
        }
    ?>
                </ul>
    <?php
    }

  9. #1629
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Now I don't know how. It showing product price twice in the product page and I haven't done anything.

  10. #1630
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by wmorris View Post
    Now I don't know how. It showing product price twice in the product page and I haven't done anything.
    I found what the problem was. I was using the attribute so I can use the POSM. Also, if I use POSM I don't want to display the attributes in the product info pages. How can I hide it?

 

 

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 107
    Last Post: 11 Nov 2024, 08:28 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

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