Hi,
Ez-pages are not rendered in dropdown menu (below discount coupons). See pic
clicking on the empty fields is working though.
template: Apple Zen
Mod: Multilanguage Ez-pages
version: Zen-Cart 1.3.7
Any idea?
grmx
Hi,
Ez-pages are not rendered in dropdown menu (below discount coupons). See pic
clicking on the empty fields is working though.
template: Apple Zen
Mod: Multilanguage Ez-pages
version: Zen-Cart 1.3.7
Any idea?
grmx
This is likely self evident to most but in case not...
If you do not have the "Discount Coupon" Order Totals mod installed/enabled then you will want to disable the display of "Discount Coupons" item on the Information dropdown menu.
Do this by adding an if conditional, similar as is done for the GV_FAQ and UNSUBSCRIBE links.
Edit tpl_drop_menu.php
Above the link line, before <li>, add:
<?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') ( ?>
Then below the link line, after </li>, add:
<?php ) ?>
(If this was discussed in this thread previously I could not locate such reference.)
Woody
Woody, thanks for the hint!
I've completely replaced line 23 in includes/modules/sideboxes/YOUR-TEMPLATE/ezpages_drop_menu.php with the following code:
$my_query = "select n.*, ml.* FROM " . TABLE_EZPAGES . " n, " . TABLE_EZPAGES_TEXT . " ml
where n.status_header = 1
AND '" . $_SESSION['languages_id'] . "' = ml.languages_id
order by n.sidebox_sort_order, n.pages_title";
$page_query = $db->Execute($my_query);
It's now working with the Multilanguage Ezpages-mod except the ezpages-titles are shown too as list in the header (below logo).
I think this is another issue?
grmx
Thanks for reporting back. Hope your solution will help others.
Do you not want to apply the header sort order in the menu bar (in case you want to also show Ez-Pages in a normal sidebox with a different sort)?
I don't know if it is the same with the multilanguage EZ-Pages module but can you disable display of the EZ-Pages header in ZC Admin > Config > EZ-Pages Settings > EZ-Pages Display Status - HeaderBar > set to 0.
Woody
Solved, there was a little piece of testing-code left.
BTW a little tweaking in the mysql-code:
$my_query = "select n.*, ml.* FROM " . TABLE_EZPAGES . " n, " . TABLE_EZPAGES_TEXT . " ml
where n.status_header = 1
AND '" . int()$_SESSION['languages_id'] . "' = ml.languages_id
order by n.sidebox_sort_order, n.pages_title";
$page_query = $db->Execute($my_query);