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

ZCA Bootstrap 4 Template [Support Thread]

Views: 545,493

Results 1,501 to 1,520 of 1,686
9 Jan 2025, 4:18 PM
#1501
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
414
Plugin Contributions:
0

ZCA Bootstrap 4 Template [Support Thread]

Thanks, I can confirm that the update button is now working, but the right corner in the first row seems to be missing and the headings in that row seems to have switched one place to the left.
Attachment 20856

9 Jan 2025, 4:24 PM
#1502
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

There were two sections (one for the heading and one for the content) where that PHP conditional was removed. It looks like you got only one.

9 Jan 2025, 4:51 PM
#1503
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
414
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I did delete line 73 - 75, 77 - 79 and also 118 - 120 and 122 -124. Is there more than that?

9 Jan 2025, 5:36 PM
#1504
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

DML73:

I did delete line 73 - 75, 77 - 79 and also 118 - 120 and 122 -124. Is there more than that?
Please pull the entire file from that commit:

https://github.com/lat9/ZCA-Bootstrap-Template/blob/437efa7843f361585424caef6e44f3f8816119aa/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php

I'm thinking that some modification you'd made is affecting that display.

9 Jan 2025, 7:46 PM
#1505
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
414
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Ah yes that worked, I must have missed something. Thanks a lot.

10 Jan 2025, 3:12 AM
#1506
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

PHP 8.3/ZC 2.1.0/Bootstrap 3.7.4

Is there a neat way to force the template to use the "Bootstrap Template Additional Images Carousel" for all images?

Currently if I have four images and click "Larger Image", ZC will show only the main/primary image in the popup modal but if I click "Additional Images" it shows all four. What I would like to do is instead ALWAYS use the additional images carousel instead.

10 Jan 2025, 1:22 PM
#1507
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

retched:

PHP 8.3/ZC 2.1.0/Bootstrap 3.7.4

Is there a neat way to force the template to use the "Bootstrap Template Additional Images Carousel" for all images?

Currently if I have four images and click "Larger Image", ZC will show only the main/primary image in the popup modal but if I click "Additional Images" it shows all four. What I would like to do is instead ALWAYS use the additional images carousel instead.
Not that I've seen before, but it's code ... so most anything is possible.

13 Jan 2025, 9:54 PM
#1508
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Not entirely convince it is Bootstrap template related but I am getting an odd alt title for category image.

The alt title being generated is " a generic image". Why?

I thought the category name would be applied to the category image alt title.

Example page can be seen here https://www.royal-fleur.com/valentines-day-flowers

Any suggestions?

Thank you

14 Jan 2025, 12:53 PM
#1509
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

nicksab:

Not entirely convince it is Bootstrap template related but I am getting an odd alt title for category image.

The alt title being generated is " a generic image". Why?

I thought the category name would be applied to the category image alt title.

Example page can be seen here https://www.royal-fleur.com/valentines-day-flowers

Any suggestions?

Thank you
That's standard Zen Cart handling for the main category image; no different than responsive_classic.

That saves a database query to retrieve the category's name, other than that the Bootstrap template will be updated if the base Zen Cart makes such a change.

14 Jan 2025, 4:34 PM
#1510
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,967
Plugin Contributions:
8

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

That's standard Zen Cart handling for the main category image; no different than responsive_classic.

That saves a database query to retrieve the category's name, other than that the Bootstrap template will be updated if the base Zen Cart makes such a change.

oh my....

saving a database query?

in YOUR_TEMPLATE/templates/tpl_index_categories.php

one can find the following code and make said change:

//from
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>

//to
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>

in bootstrap:

//from
    <div id="indexCategories-categoryImage" class="categoryImage">
        <?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?>
    </div>
//to
    <div id="indexCategories-categoryImage" class="categoryImage">
        <?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?>
    </div>

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

17 Jan 2025, 2:46 AM
#1511
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

carlwhat:

oh my....

saving a database query?

in YOUR_TEMPLATE/templates/tpl_index_categories.php

one can find the following code and make said change:

//from

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>

//to

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> ``` > > > in bootstrap: > > ```php //from <div id="indexCategories-categoryImage" class="categoryImage"> <?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?> </div> //to <div id="indexCategories-categoryImage" class="categoryImage"> <?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?> </div> ``` > best.

Thanks Carl. It worked perfectly. In my particular case, I made the changes in YOUR_TEMPLATE/templates/tpl_index_product_list.php.

18 Jan 2025, 2:19 AM
#1512
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

In Zen Cart 1.5.8a with Bootstrap 3.7.0 I have a floating "Add to cart"-button. The product listing scrolls under the button.
Float the Add Selected to Cart button in the Bootstrap settings is set to "Always".
Display Product Add to Cart Button is set to 1, Display Multiple Products Qty Box Status and Set Button Location is set to 3. Both settings are in Product Listing.

With Zen Cart 2.1.0 and Bootstrap 3.7.4 I can not replicate this floating button. There is only a link "Add to cart" which does not even look like a button.

How can I set the floating button behaviour?

18 Jan 2025, 1:22 PM
#1513
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

In Zen Cart 1.5.8a with Bootstrap 3.7.0 I have a floating "Add to cart"-button. The product listing scrolls under the button.
Float the Add Selected to Cart button in the Bootstrap settings is set to "Always".
Display Product Add to Cart Button is set to 1, Display Multiple Products Qty Box Status and Set Button Location is set to 3. Both settings are in Product Listing.

With Zen Cart 2.1.0 and Bootstrap 3.7.4 I can not replicate this floating button. There is only a link "Add to cart" which does not even look like a button.

How can I set the floating button behaviour?
You've got all the 'right' settings. A link (sent via PM if you don't want it publicly displayed) would help see what's going on.

19 Jan 2025, 2:59 AM
#1514
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

You've got all the 'right' settings. A link (sent via PM if you don't want it publicly displayed) would help see what's going on.
I found the reason. When I changed the language to English to make a screenshot for you (I only got this Zen Cart running locally), it worked correctly. When I shortened the Japanese text, it was OK. The original Japanese text was too long.
I changed function zen_image_submit in includes/functions/html_output.php line 304
from

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)

to

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && mb_strlen($alt)<30)

Now it works.

19 Jan 2025, 1:42 PM
#1515
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

I found the reason. When I changed the language to English to make a screenshot for you (I only got this Zen Cart running locally), it worked correctly. When I shortened the Japanese text, it was OK. The original Japanese text was too long.
I changed function zen_image_submit in includes/functions/html_output.php line 304
from

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)

> to
> ```php
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && mb_strlen($alt)<30)

Now it works.
Was the Japanese text different in the zc210 install than in the zc158a one? That function hasn't changed in many, many years.

19 Jan 2025, 11:52 PM
#1516
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Was the Japanese text different in the zc210 install than in the zc158a one? That function hasn't changed in many, many years.
Yes, my text was.

21 Jan 2025, 2:51 PM
#1517
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

v3.7.5 of the template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191

This release contains corrections for these GitHub issues:

#463: Correct comments in products-all/new page headers.
#459: Indicate to zc210's Layout Boxes Controller that the template doesn't support mobile sideboxes.
#454: Correct 3-page checkout country-selection is reset on form errors.
#462: Correct PHP Deprecation in tpl_columnar_display_carousel.php.
#466: Correct shopping-cart update "not working" on specific configuration.

30 Jan 2025, 11:56 AM
#1518
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,296
Plugin Contributions:
39

Re: ZCA Bootstrap 4 Template [Support Thread]

Zen 2.1.0 PHP 8.3
Bootstrap 3.7.4
No other mods

The search header is on & displaying in the header correctly, but also in the right column.

~Melanie

PRO-Webs, Inc. since 2003 https://pro-webs.net/

30 Jan 2025, 12:58 PM
#1519
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

mprough:

Zen 2.1.0 PHP 8.3
Bootstrap 3.7.4
No other mods

The search header is on & displaying in the header correctly, but also in the right column.

~Melanie
Do you also have the search sidebox enabled in the right column?

30 Jan 2025, 1:21 PM
#1520
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,296
Plugin Contributions:
39

Re: ZCA Bootstrap 4 Template [Support Thread]

No It's not

PRO-Webs, Inc. since 2003 https://pro-webs.net/