Zen Cart Logo
Forums / Addon Templates / ZCA Bootstrap 4 Template [Support Thread]

ZCA Bootstrap 4 Template [Support Thread]

Views: 545,469

Results 1,621 to 1,640 of 1,686
13 Feb 2026, 2:29 AM
#1622
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

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?

13 Feb 2026, 2:08 PM
#1623
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

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.

13 Feb 2026, 10:14 PM
#1624
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

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?

14 Feb 2026, 12:27 AM
#1625
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

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.

14 Feb 2026, 12:29 AM
#1626
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

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?

14 Feb 2026, 2:56 AM
#1627
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

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

14 Feb 2026, 10:02 PM
#1628
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

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.

<?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
}
16 Feb 2026, 2:41 AM
#1629
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

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.

16 Feb 2026, 3:46 AM
#1630
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

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?

16 Feb 2026, 12:27 PM
#1631
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

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

wmorris:

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?
Right, there is a configuration setting (Product Info Pricing Location) that identifies where the product pricing is displayed if the product has attributes; its value defaults to "Both".

Why would you want to define product attributes and then not display them?

16 Feb 2026, 12:44 PM
#1632
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Right, there is a configuration setting (Product Info Pricing Location) that identifies where the product pricing is displayed if the product has attributes; its value defaults to "Both".

Why would you want to define product attributes and then not display them?

Then How can keep it from showing twice?

16 Feb 2026, 12:48 PM
#1633
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Right, there is a configuration setting (Product Info Pricing Location) that identifies where the product pricing is displayed if the product has attributes; its value defaults to "Both".

Why would you want to define product attributes and then not display them?

I got it.

16 Feb 2026, 12:50 PM
#1634
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I still need help with the other area where I mentioned about the product dimensions and Product material(s). How can I display to where the model and weight is on the product info page?

16 Feb 2026, 1:20 PM
#1635
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

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

I still need help with this area.

16 Feb 2026, 5:13 PM
#1636
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

Then How can keep it from showing twice?
By choosing "Above Only" or "Below Only" as the setting.

16 Feb 2026, 5:16 PM
#1637
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

wmorris:

Ok, here is the tpl_product_info_display_details.php I need to help to add the dimensions and product materials.

<?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 } ``` > **wmorris:** > > I still need help with this area. > **lat9:** > > By choosing "Above Only" or "Below Only" as the setting. You'll need to add the additional items to the $additional_details array, based on the product's information. If you don't know how, you'll need to hire someone to do that for you.
16 Feb 2026, 10:28 PM
#1638
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

How do you get the add to cart "button" and the quantity box to be same size which really is just the quantity box being controlled is fine various attempts didn't work but seems like it "should" be simple and probably is. TYIA

16 Feb 2026, 11:32 PM
#1639
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

So I wrote a reply so if this is dup what can u do.

Answer was I changed the class in modules bootstrap product fields then add some css in stylesheet and done.

This became an issue as I had changed the field to a number field since they are buying stuff and number field v default text brings up number keyboard automatically in mobile had changed number field years ago but yesterday changed the product lists from default large format to very thin product listings so I can list 100+ in small space and people can order a few dozen skus easy on a phone blah blah.

Worth making the change in general just to have the number keyboard launch instantly on your website IMO v a text keyboard

17 Feb 2026, 3:12 AM
#1640
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Can someone tell me how to hide the attributes box in the product info page? I am using POSM and when I setup on the Attributes it shows whats in stock in the attributes and I don't want that to be shown.