[Zen Cart] Missing my next/prev buttons?
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
[Zen Cart] Missing my next/prev buttons?
I dont want a customer following an SEO url and then not able to browse thru the store when they get there.
Thanks
Re: [Zen Cart] Missing my next/prev buttons?
We don’t think it is anything related to MSU since no content or HTML source code is changed besides href parameter inside A tag.
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
Re: [Zen Cart] Missing my next/prev buttons?
This category has 3 items, currently my includes/application_top.php looks like this:
Code: Select all
#include(DIR_WS_INCLUDES . 'magic_seo_url.php');
You can see when you browse the items I have Prev/Next buttons.
If I uncomment the magic_seo_url.php these buttons disappear.
(Let me know when you've taken a look and I can uncomment.
Thanks
Re: [Zen Cart] Missing my next/prev buttons?
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
Re: [Zen Cart] Missing my next/prev buttons?
Code: Select all
include(DIR_WS_INCLUDES . 'magic_seo_url.php');
Re: [Zen Cart] Missing my next/prev buttons?
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
Re: [Zen Cart] Missing my next/prev buttons?
Code: Select all
xxxxxxxx/includes/templates/template22254/templates> ls
tpl_advanced_search_result_default.php tpl_modules_advanced_search_categories.php tpl_modules_main_product_image.php
tpl_ezpages_bar_header.php tpl_modules_advanced_search_ezpages.php tpl_product_info_display.php
Re: [Zen Cart] Missing my next/prev buttons?
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
Re: [Zen Cart] Missing my next/prev buttons?
-
- Posts: 20
- Joined: Sun Jun 13, 2010 7:38 am
Re: [Zen Cart] Missing my next/prev buttons?
Code: Select all
<?php
// only display when more than 1
if ($products_found_count > 1) {
It's not getting thru that 'if' statement...I searched Dev Tools for "$products_found_count" and it's pulled from a sql query in /includes/modules/product_prev_next.php:
Code: Select all
$sql = "select p.products_id, p.products_model, p.products_price_sorter, pd.products_name, p.products_sort_order
from " . TABLE_PRODUCTS . " p, "
. TABLE_PRODUCTS_DESCRIPTION . " pd, "
. TABLE_PRODUCTS_TO_CATEGORIES . " ptc
where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id= '" . (int)$_SESSION['languages_id'] . "' and p.products_id = ptc.products_id and ptc.categories_id = '" . (int)$current_category_id . "'" .
$prev_next_order;
$products_ids = $db->Execute($sql);
$products_found_count = $products_ids->RecordCount();
I'm just still confused how it works w/ the magic_seo_url.php commented out. Does the sql query build from the url? Are there any working examples that I can look at?
ZenCart Version 1.3.9d