s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT
-
artfulweb
- Contributor
- Posts: 184
- Joined: Thu Oct 29, 2020 12:34 pm
- Phoenix Version: v1.1.0.6
- Has thanked: 29 times
- Been thanked: 14 times
Re: s06e06 AND s04e10 - Product Specifications
Hi, on Phoenix 1.0.8.15 I am getting this warning:
Warning: Undefined array key "members" in /xx/xx/xx/xx/includes/hooks/admin/catalog/groups.php on line 40
Warning: Undefined array key "members" in /xx/xx/xx/xx/includes/hooks/admin/catalog/groups.php on line 40
Tags:
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: s06e06 AND s04e10 - Product Specifications
This is the message that you'd get if you had a tag group with no members. If you change line 27 from
Code: Select all
$group_master_array[$group_name['tags_groups_id']]['group'] = $group_name['tags_groups_name'];Code: Select all
$group_master_array[$group_name['tags_groups_id']] = [
'group' => $group_name['tags_groups_name'],
'members' => [],
];-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: s06e06 AND s04e10 - Product Specifications
On version 1.0.8.16, the "Specifications" tab doesn't appear when editing a product in admin.
Is the issue in the hook file?
I'm waiting for the server to produce another error log file to look for a specific error.
Is the issue in the hook file?
I'm waiting for the server to produce another error log file to look for a specific error.
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: s06e06 AND s04e10 - Product Specifications
The 1.0.8.5 version should still work in 1.0.8.16 and later. So the first thing to check is that you are using that version rather than the older 1.0.8.0 version of S04e10 (the Specification tab is from the original add-on, not this one).
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: s06e06 AND s04e10 - Product Specifications
Thanks. I found the 1.0.8.5 version you put here in the forums and installed it. It seems to be working.
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: s06e06 AND s04e10 - Product Specifications
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: s06e06 AND s04e10 - Product Specifications
Wanted to show the Tags, as a clickable badge, on Product Cards so with s06e06 and s04e10 both installed and configured on a recent version (>v.1.0.8.6?), override the products_card component.
Added the following code where the Tags are to be shown, between Line 6 and Line 8 might be a good place and all good
Just posting in case it's useful to others.
Added the following code where the Tags are to be shown, between Line 6 and Line 8 might be a good place and all good
Just posting in case it's useful to others.
Code: Select all
<?php
$product_specs = groups::_build_product_tags((int)$product->get('id'));
if (count($product_specs) > 0) {
foreach ($product_specs as $k => $v) {
$arr = [];
foreach ($v['member'] as $a => $b) {
$arr[] = '<a class="badge badge-primary mr-2 mb-2" href="' . $GLOBALS['Linker']->build('tag.php', ['tag_id' => (int)$b['tags_groups_members_id']]) . '">' . $b['tags_groups_members_name'] . '</a>';
}
$members = implode('', $arr);
echo $members;
}
}
?>- Cary
- Member
- Posts: 34
- Joined: Fri Mar 12, 2021 9:36 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 3 times
- Been thanked: 3 times
Re: s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT
Anyone else seeing this error or did I do something?
I searched the forums and then google for the error which provided the error on the Phoenix Cart Pro Demo site.
https://phoenixcart.org/PROdemo/tag.php ... 2d&view=20
version: Phoenix 1.0.9.1
I searched the forums and then google for the error which provided the error on the Phoenix Cart Pro Demo site.
https://phoenixcart.org/PROdemo/tag.php ... 2d&view=20
Code: Select all
PHP Fatal error: Uncaught mysqli_sql_exception: Unknown column 'base_price' in 'order clause' in /home/XXXXXXX/public_html/includes/system/versioned/1.0.8.1/database_core.php:67
Stack trace:
#0 /home/XXXXXXX/public_html/includes/system/versioned/1.0.8.1/database_core.php(67): mysqli->query('SELECT p.*, pd....', 0)
#1 /home/XXXXXXX/public_html/templates/override/includes/components/product_listing.php(60): database_core->query('SELECT p.*, pd....')
#2 /home/XXXXXXX/public_html/includes/system/segments/sortable_product_listing.php(14): include('/home/phoenixsc...')
#3 /home/XXXXXXX/public_html/templates/default/includes/pages/tag.php(21): require('/home/phoenixsc...')
#4 /home/XXXXXXX/public_html/tag.php(48): require('/home/phoenixsc...')
#5 {main}
thrown in /home/XXXXXXX/public_html/includes/system/versioned/1.0.8.1/database_core.php on line 67- Cary
- burt
- Core Team
- Posts: 4550
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT
In tag.php try adding this:
IF(s.status, s.specials_new_products_price, p.products_price) AS base_price,
AFTER
IF(s.status, s.specials_new_products_price, p.products_price) AS final_price,
That might fix it. Or it might lead to other problem(s).
IF(s.status, s.specials_new_products_price, p.products_price) AS base_price,
AFTER
IF(s.status, s.specials_new_products_price, p.products_price) AS final_price,
That might fix it. Or it might lead to other problem(s).
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.