s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
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

Post by artfulweb »

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

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
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

Post by ecartz »

artfulweb wrote: Thu Jun 09, 2022 9:18 am Warning: Undefined array key "members" in /xx/xx/xx/xx/includes/hooks/admin/catalog/groups.php on line 40
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'];
to

Code: Select all

      $group_master_array[$group_name['tags_groups_id']] = [
        'group' => $group_name['tags_groups_name'],
        'members' => [],
      ];
It should work. Or just make sure that all your groups have 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

Post by lecarlb »

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.
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

Post by ecartz »

lecarlb wrote: Tue Sep 27, 2022 9:19 am Is the issue in the hook file?
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

Post by lecarlb »

ecartz wrote: Tue Sep 27, 2022 9:30 am
lecarlb wrote: Tue Sep 27, 2022 9:19 am Is the issue in the hook file?
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).
Thanks. I found the 1.0.8.5 version you put here in the forums and installed it. It seems to be working. :D
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

Post by lecarlb »

Hello,

Is it possible to make the tags searchable? Or would it be the same as searching the description?

Thanks.
User avatar
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

Post by Kofod95 »

lecarlb wrote: Mon Oct 17, 2022 2:50 am Is it possible to make the tags searchable?
Yes, maybe some help to find here:
viewtopic.php?f=28&t=1507&p=10585&hilit=Search#p10585

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
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

Post by heatherbell »

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.

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;
    }
  }
?>
User avatar
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

Post by Cary »

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

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
version: Phoenix 1.0.9.1
- Cary
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT

Post by burt »

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).
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply