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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,536

Results 841 to 860 of 1,686
13 Nov 2022, 3:44 PM
#841
swguy avatar

swguy

Administrator

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

ZCA Bootstrap 4 Template [Support Thread]

The product page and shopping cart page have their own css files you can set up.

includes/templates/bootstrap/css/shopping_cart.css
includes/templates/bootstrap/css/product_info.css

13 Nov 2022, 5:12 PM
#842
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

By the way what I want to know is how to replace if ($this_is_home_page) with the name of the page example if ($this_is_product_info_page) does not work as well as ($this_is_shopping_cart_page) does not work. it's not to complicate my life but, it will allow me to do a lot of things if I know the exact name of the page to put on if ($this_is_home_page).

13 Nov 2022, 5:28 PM
#843
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

$this_is_home_page is a special case; it's not done for other pages.

If you want to check the name of the current page you can do so using the variable $current_page_base.

if ($current_page_base == 'shopping_cart') {
...
}

if ($current_page_base == 'product_info') {
...
}

but if all you're doing is adding page-specific CSS, you'd be better off doing it the way I suggested; that way you can upgrade your template at any time and not lose these customizations.

13 Nov 2022, 7:29 PM
#844
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Exact it is so as not to touch the basic model. Thank you, it worked for me html if ($current_page_base == 'product_info') { + , if now I want to put 2 or more pages for example ```html
if ($current_page_base == 'product_info PLUS another page, ') {

13 Nov 2022, 7:55 PM
#845
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

The PHP syntax for this would be

if ($current_page_base == 'product_info' || $current_page_base == 'some-other-page' ) {

13 Nov 2022, 9:01 PM
#846
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Thank you very much, it worked for me.

14 Nov 2022, 7:27 AM
#847
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

diamond1:

Hello, I am looking to put .active in red on the ezpage header bar and on the category names see photos one on a site where there is active on the categories and one without which is mine, in the login page I am successful to put the .active in yellow here is the code

.nav-tabs .nav-link.active {
color: #fcf501;
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}

> 
> but in the column of the names of the categories I run into a wall. can you help me?
> 
> Attachment 20145
> Attachment 20146
> Attachment 20147

Perhaps you have an a:active defined in one of your css files.

<https://www.geeksforgeeks.org/difference-between-normal-links-and-active-links/>

why ZCA-bs decided to go with a separate class .activelink is beyond my understanding.
14 Nov 2022, 11:17 AM
#848
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Looks like an override of

includes/languages/english/lang.order_status.php

will be needed for PHP 8.1

[13-Nov-2022 13:56:15 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_LOOKUP_INSTRUCTIONS" in /homepages/19/client/htdocs/estore/includes/templates/bootstrap/templates/tpl_order_status_default.php:177

14 Nov 2022, 1:11 PM
#849
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Looks like an override of

includes/languages/english/lang.order_status.php

will be needed for PHP 8.1

[13-Nov-2022 13:56:15 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_LOOKUP_INSTRUCTIONS" in /homepages/19/client/htdocs/estore/includes/templates/bootstrap/templates/tpl_order_status_default.php:177
Actually, that looks like a bug in the zc158 language loader. I thought (keyword) that deference should be given to a legacy-named language file, although I'm seeing now that OPC (since the order_status page was, for previous Zen Cart versions, newly added) distributes its version of /english/order_status.php in the main language directory. Sigh.

To correct, for now, simply copy /includes/languages/english/order_status.php to /includes/languages/english/bootstrap/order_status.php (replacing **bootstrap **with your template clone's name).

14 Nov 2022, 2:18 PM
#850
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

The docs don't address search order and override behavior well for the new language files; I will work on that.

15 Nov 2022, 7:12 AM
#851
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hello, No I don't have a:active in my .css files.

16 Nov 2022, 2:27 PM
#852
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
142
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Is there a way to remove the "Back to top" Button"?

I searched but did not find anything.

16 Nov 2022, 5:51 PM
#853
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Put this in your file site_specific_styles.php

#back-to-top.show {
display: none;
}

16 Nov 2022, 5:57 PM
#854
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: ZCA Bootstrap 4 Template [Support Thread]

One of the few times you will see me suggest the code versus the CSS.

Doing what you are proposing will probably break accessibility.

20 Nov 2022, 10:47 AM
#855
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hello, what would be the best way to proceed so as not to break the accessibility.
Merci

21 Nov 2022, 12:37 PM
#856
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi
Running Zencart 1.5.8 with Bootstrap
I am getting this Fatal error message any ideas anyone, Thanks..

[21-Nov-2022 09:00:03 UTC] Request URI: /shop/index.php?main_page=specials, IP address: 68.183.70.118
#1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:667]
#2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:634]
#3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:275]
#4 queryFactory->Execute() called at [/includes/classes/zca/zca_split_page_results.php:102]
#5 zca_splitPageResults->__construct() called at [/includes/modules/bootstrap/product_listing.php:37]
#6 require(/includes/modules/bootstrap/product_listing.php) called at [/includes/templates/bootstrap/templates/tpl_modules_product_listing.php:12]
#7 require(/includes/templates/bootstrap/templates/tpl_modules_product_listing.php) called at [/includes/templates/bootstrap/templates/tpl_specials_default.php:24]
#8 require(/includes/templates/bootstrap/templates/tpl_specials_default.php) called at [/includes/modules/pages/specials/main_template_vars.php:59]
#9 require(/includes/modules/pages/specials/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:202]
#10 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Fatal error: 1109:Unknown table 'p' in field list :: SELECT COUNT(p.products_id) as total ==> (as called by) /includes/classes/zca/zca_split_page_results.php on line 102 <== in /includes/classes/db/mysql/query_factory.php on line 667.

21 Nov 2022, 6:01 PM
#857
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: ZCA Bootstrap 4 Template [Support Thread]

It may be that the query in includes/modules/pages/specials/header_php_specials_zca_bootstrap.php has been altered
Lines 29-34 should look like this```
$listing_sql =
"SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_model,
p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id,
p.manufacturers_id, m.manufacturers_name
FROM (" . TABLE_PRODUCTS . " p
LEFT JOIN " . TABLE_SPECIALS . " s
ON p.products_id = s.products_id
LEFT JOIN " . TABLE_MANUFACTURERS . " m
ON m.manufacturers_id = p.manufacturers_id
LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id = pd.products_id
AND pd.language_id = :languageID
)
WHERE p.products_status = 1
AND s.status = 1
ORDER BY s.specials_date_added DESC";

note the line  ```
FROM (" . TABLE_PRODUCTS . " p
``` defines an alias for products as p
21 Nov 2022, 6:16 PM
#858
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Indeed, be sure you have the latest version of the Bootstrap template.

21 Nov 2022, 8:37 PM
#859
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

brittainmark:

It may be that the query in includes/modules/pages/specials/header_php_specials_zca_bootstrap.php has been altered
Lines 29-34 should look like this```
$listing_sql =
"SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_model,
p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id,
p.manufacturers_id, m.manufacturers_name
FROM (" . TABLE_PRODUCTS . " p
LEFT JOIN " . TABLE_SPECIALS . " s
ON p.products_id = s.products_id
LEFT JOIN " . TABLE_MANUFACTURERS . " m
ON m.manufacturers_id = p.manufacturers_id
LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id = pd.products_id
AND pd.language_id = :languageID
)
WHERE p.products_status = 1
AND s.status = 1
ORDER BY s.specials_date_added DESC";

> note the line  ```
FROM (" . TABLE_PRODUCTS . " p
``` defines an alias for products as p
Thank you for this I realised that I had missed adding the header_php_specials_zca_bootstrap.php to Pages/specials.. feel a bit stupid now.. many thanks
21 Nov 2022, 8:38 PM
#860
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Indeed, be sure you have the latest version of the Bootstrap template.
Thank you for this I realised that I had missed adding the header_php_specials_zca_bootstrap.php to Pages/specials.. feel a bit stupid now.. many thanks