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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,508

Results 541 to 560 of 1,686
20 Oct 2021, 7:25 PM
#541
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

ZCA Bootstrap 4 Template [Support Thread]

You are the best!

Thanks!

20 Oct 2021, 7:53 PM
#542
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

g2ktcf:

Any chance someone has this as a demo that I can see? The original one listed in this thread says "domain for sale" lol

Thanks for reporting; this has been fixed.

21 Oct 2021, 10:34 PM
#543
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

This issue hits the bootstrap template:
Zone restricted shipping modules won't show up in estimator unless state dropdown is used
https://github.com/zencart/zencart/issues/4476

29 Oct 2021, 10:45 PM
#544
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

How can I have two cards per row on mobile? I have tried fiddling with $grid_classes_matrix but that doesn't seem to be what's needed.

30 Oct 2021, 12:52 AM
#545
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

How can I have two cards per row on mobile? I have tried fiddling with $grid_classes_matrix but that doesn't seem to be what's needed.

With this I see two per row

'10' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'8' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'6' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
30 Oct 2021, 11:33 AM
#546
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Thanks - this gives two per row on the index listing pages (/index.php?main_page=index&cPath=2_82) but not two per row for the centerboxes on the front page, which is what I was hoping to get.

(Sorry, I realize now that my original request didn't specify this detail.)

30 Oct 2021, 11:33 AM
#547
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

keneso:

With this I see two per row

'10' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'8' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'6' => 'row-cols-2 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',

That's it!  Edits to your clone's /includes/modules/bootstrap/product_listing.php's $grid_classes_matrix array.
30 Oct 2021, 11:43 AM
#548
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Thanks - this gives two per row on the index listing pages (/index.php?main_page=index&cPath=2_82) but not two per row for the centerboxes on the front page, which is what I was hoping to get.

(Sorry, I realize now that my original request didn't specify this detail.)
The products/row on those centerboxes are controlled by the various (e.g. featured, special, new) per-row counts present in Configuration :: Product Info. For instance, the new-products/row is controlled by SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS.

30 Oct 2021, 12:17 PM
#549
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Mobile seems to be stuck at 1. Yes, desktop and tablet home page centerbox products per row can be modified (I think it's configuration > Index listing though) but mobile always seems to let a single column take 100% of the width.

This is the home page centerboxes only - other index pages seem to be controlled using the grid as noted above.

30 Oct 2021, 12:29 PM
#550
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Mobile seems to be stuck at 1. Yes, desktop and tablet home page centerbox products per row can be modified (I think it's configuration > Index listing though) but mobile always seems to let a single column take 100% of the width.

This is the home page centerboxes only - other index pages seem to be controlled using the grid as noted above.
When you say mobile, what viewport width are you referring to?

30 Oct 2021, 12:42 PM
#551
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

I am using the Chrome simulator with iPhone 6/7/8, and that is 375x667. (Right click, Inspect, select device type.). Same for other phones - Pixel 2, Nexus 4, etc.

When I go to https://vinosdefrutastropicales.com/zc157_bs4/ and do this I see 1 item per row in the new products centerbox as shown in the attached image.

30 Oct 2021, 5:26 PM
#552
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

That's going to require changes to each of the /includes/templates/bootstrap/centerboxes/tpl*.php files, changing the overall container as identified in this Bootstrap document: https://getbootstrap.com/docs/4.4/layout/grid/#row-columns

30 Oct 2021, 9:27 PM
#553
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

I thought it would be something like this - thanks these were the leads I needed. I'll let you know how it goes.

31 Oct 2021, 12:27 AM
#554
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

If anyone else is interested in this, here's my diff for includes/templates/bootstrap/centerboxes/tpl_modules_featured_products.php; other files would be analogous.

@@ -36,14 +36,14 @@ if (is_array($list_box_contents) > 0 ) {
     //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params'];
 ?>

-<div class="card-deck text-center">
+<div class="card-deck text-center row row-cols-2">
 <?php
     for($col=0, $j=sizeof($list_box_contents[$row]); $col<$j; $col++) {
       $r_params = "";
       if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params'];
      if (isset($list_box_contents[$row][$col]['text'])) {
 ?>
-    <?php echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text'] .  '</div>'; ?>
+    <?php echo '<span ' . $r_params . '>' . $list_box_contents[$row][$col]['text'] .  '</span>'; ?>
 <?php
       }
     }
3 Nov 2021, 4:59 PM
#555
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Possibly interesting to Bootstrap template users:
I find having "Sold Out" presented as a button to be confusing. Even in CSS Buttons mode, I'd rather just use the graphic image (the same way "Call for Price" does).
I put in a PR for 1.5.8 that does this but it's an easy backport. See

https://github.com/zencart/zencart/pull/4479

11 Nov 2021, 2:34 PM
#556
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

g2ktcf:

Any chance someone has this as a demo that I can see? The original one listed in this thread says "domain for sale" lol

I'm also using this template on a live store at https://www.thegluepeople.co.uk/

26 Nov 2021, 4:27 PM
#558
jimmyv avatar

jimmyv

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Fantastic template so many visitors since changing to this format and it really seems to create a nice retention and sale rate. So wanted to pass on appreciation for making my custom template completely obsolete due to your design prowess.

4 Dec 2021, 2:41 AM
#559
chrislane avatar

chrislane

New Zenner

Join Date:
Feb 2019
Posts:
18
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hello,

Not sure where to post this as I'm not sure if its a Zencart or template issue.

I recently upgraded Zencart and ZCA versions and now my larger image modal popup is blank.

<div id="productLargeImageModal" class="modal-body"></div>

I tried changing tpl_image.php to the earlier version but that didn't work.

<?php echo zen_image($products_image_large, $products_values->fields['products_name']); ?>

Doing some more digging I was able to get it partially working by adding the image dimensions. But if I change MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT to LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT it blanks again.

<?php echo zen_image($products_image_large, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT); ?>

Any suggestions on how to display the full sized image?

PHP 7.2
Zen Cart 1.5.7c
ZCA Bootstrap 3.1.5

Thanks

4 Dec 2021, 2:51 AM
#560
chrislane avatar

chrislane

New Zenner

Join Date:
Feb 2019
Posts:
18
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I should add all my images are uploaded to /images. No folders for sizes, etc. I upload a single large image for all items with no special wording for size.