Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
mprough
Zen Cart 2.0.1
PHP 8.3.14
Bootstrap 3.7.2-beta5
No other plugins
The listingDisplayOrderSorter with recommended, product name etc is only configurable via a file edit? Just making sure, I found no admin side config for it.
~Melanie
While that sorter has no control of its own, it's only displayed if one (or both) of Product Listing / Display Category Manufacturer Filter (PRODUCT_LIST_FILTER) or Product Listing / Include Product Listing Alpha Sorter Dropdown (PRODUCT_LIST_ALPHA_SORTER) are enabled.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
While that sorter has no control of its own, it's only displayed if one (or both) of Product Listing / Display Category Manufacturer Filter (PRODUCT_LIST_FILTER) or Product Listing / Include Product Listing Alpha Sorter Dropdown (PRODUCT_LIST_ALPHA_SORTER) are enabled.
Disabling Product Listing / Display Category Manufacturer Filter (PRODUCT_LIST_FILTER) made it go away ONLY on product listing
Product Listing / Include Product Listing Alpha Sorter Dropdown (PRODUCT_LIST_ALPHA_SORTER) is also already disabled
But the sorter still displays on products_new, featured_products & products_all but NOT on specials.... weird.
So instead I disabled the price options in the product listing in tpl_modules_listing_display_order.php by commenting them out. However, the (products_new, featured_products & products_all) sorters still displaying have the price options included.... where is it coming from?
In fact I fully deleted the contents of includes/templates/bootstrap/templates/tpl_modules_listing_display_order.php and still on (products_new, featured_products & products_all) the sorter shows.
~Melanie
Re: ZCA Bootstrap 4 Template [Support Thread]
If you temporarily change the site's template to responsive_classic, does the same behavior occur?
Re: ZCA Bootstrap 4 Template [Support Thread]
Re: ZCA Bootstrap 4 Template [Support Thread]
I modified the zcabootstrapobserver.php to turn the Sold Out button into a link to the product info page. The code I have below seems to work fine on the product listing pages, but I get the following log error when on the search results page (even though the link itself still works):
Code:
--> PHP Warning: Undefined array key "cPath" in /includes/classes/observers/ZcaBootstrapObserver.php on line 316.
Here is what I have in the observer file:
Code:
} else {
$sold_out_button_class = 'button_sold_out_sm';
$sold_out_button_name = BUTTON_SOLD_OUT_SMALL_ALT;
$sold_out_button_link = zen_href_link(zen_get_info_page($p1['products_id']), 'cPath=' . $_GET['cPath'] . '&products_id=' . $p1['products_id'], 'SSL');
}
$p2 = zca_button_link($sold_out_button_link, $sold_out_button_name, 'button_sold_out');
break;
I'm sure I've just done something wrong, but can someone help me so that the link works on any page where the Sold Out button might show?
Re: ZCA Bootstrap 4 Template [Support Thread]
you can try something like:
PHP Code:
//from
$sold_out_button_link = zen_href_link(zen_get_info_page($p1['products_id']), 'cPath=' . $_GET['cPath'] . '&products_id=' . $p1['products_id'], 'SSL');
//to
$sold_out_button_link = zen_href_link(zen_get_info_page($p1['products_id']), (isset($_GET['cPath']) ? 'cPath=' . $_GET['cPath'] : '') . '&products_id=' . $p1['products_id'], 'SSL');
best.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
If you temporarily change the site's template to responsive_classic, does the same behavior occur?
It's live. I was able to remove the options for $$, but not the dropdown.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
carlwhat
you can try something like:
PHP Code:
//from
$sold_out_button_link = zen_href_link(zen_get_info_page($p1['products_id']), 'cPath=' . $_GET['cPath'] . '&products_id=' . $p1['products_id'], 'SSL');
//to
$sold_out_button_link = zen_href_link(zen_get_info_page($p1['products_id']), (isset($_GET['cPath']) ? 'cPath=' . $_GET['cPath'] : '') . '&products_id=' . $p1['products_id'], 'SSL');
best.
Thank you @carlwhat!
Re: ZCA Bootstrap 4 Template [Support Thread]
Is it possible to enable a navigation header-bar? Or is such a plugin available?
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
DML73
Is it possible to enable a navigation header-bar? Or is such a plugin available?
Like a 'mega-menu'? I've done that for other sites, but don't have the code as a plugin.