s06e06 AND s04e10 - Product Specifications QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: s06e06 AND s04e10 - Product Specifications

Post by tessthepup »

Hi,

Has anyone changed the code to display an image instead of the text value entered in admin.

I have added a new field to the table 'tags_groups_members' called 'tagged_groups_members_image' and would like to change this line to display the image.

Code: Select all

$arr[] = '<a class="btn btn-sm btn-info mr-2" role="button" href="' . $GLOBALS['Linker']->build('tag.php', ['tag_id' => (int)$b['tags_groups_members_id']]) . '">' . $b['tags_groups_members_name'] . '</a>';
If I change (as a query test)

Code: Select all

' . $b['tags_groups_members_name'] . '
to

Code: Select all

' . $b['tags_groups_members_image'] . '
it displays the name of the image ok.

I have tried using tep_image but no matter what I change it breaks the page.

Can anyone suggest the correct way to use tep_image in this instance?

Thanks

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
tessthepup
Certified Developer
Posts: 381
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: s06e06 AND s04e10 - Product Specifications

Post by tessthepup »

tessthepup wrote: Mon Jan 31, 2022 12:52 pm Hi,

Has anyone changed the code to display an image instead of the text value entered in admin.

I have added a new field to the table 'tags_groups_members' called 'tagged_groups_members_image' and would like to change this line to display the image.

Code: Select all

$arr[] = '<a class="btn btn-sm btn-info mr-2" role="button" href="' . $GLOBALS['Linker']->build('tag.php', ['tag_id' => (int)$b['tags_groups_members_id']]) . '">' . $b['tags_groups_members_name'] . '</a>';
If I change (as a query test)

Code: Select all

' . $b['tags_groups_members_name'] . '
to

Code: Select all

' . $b['tags_groups_members_image'] . '
it displays the name of the image ok.

I have tried using tep_image but no matter what I change it breaks the page.

Can anyone suggest the correct way to use tep_image in this instance?

Thanks
I managed to solve it lol

Code: Select all

<div class="<?= $content_width ?> cm-pi-specs">
  <div class="row mx-auto">
    <div class="col-sm-12">
      <?php
      foreach ($product_specs as $k => $v) {

            $arr = [];
            foreach ($v['member'] as $a => $b) {
              $arr[] = '<a class="mr-2" href="' . $GLOBALS['Linker']->build('tag.php', ['tag_id' => (int)$b['tags_groups_members_id']]) . '">' . tep_image('images/' . $b['tags_groups_members_image'], addslashes($b['tags_groups_members_image']), '', '', '') . '</a>';
            }
            $members = implode(', ', $arr);
            echo $members;

      }
      ?>
    </div>
  </div>
</div>
Also removed the table structure in favour of <div> for next phase of converting to a PI Module
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Split results in categories S4e10

Post by radhavallabh »

Hi Dear;
@ecartz @burt
Can you please help and guide me on below.....

The extension of this module allows to display all products related to the tag we click on.

Is it possible to split the product results we get on tag.php into relevant categories they are from. So it will be easier for the customer to understand that the product is under which category...

I mean that the products displayed in tag.php from each category have a header with category name and link
Please can you guide me on how we can achieve this...

Thank you in advance;
Very Warm Regds./
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: S04e10 - Product specs

Post by radhavallabh »

Hi ;
One more issue dear;
In the top status tab of the tag.php it displays %s %s instead of the title when we click on any specification to get the results.

It displays the Title correctly in the Heading and Breadcrumb though.
Please can you help fix the issue....
Regds./
radhavallabh
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: Split results in categories S4e10

Post by Kofod95 »

radhavallabh wrote: Mon Jun 06, 2022 4:47 am Is it possible to split the product results we get on tag.php into relevant categories they are from. So it will be easier for the customer to understand that the product is under which category...
It's possible, but I think it is out of scope for the add-on as is. It would be useful in stores with a lot of products, but it is not something that will fit in all cases. Thus, I think it would be best to contact one of the certified developers, or alternatively make it on your own.
I haven't looked at it, but I think you would have to make a product_card template that includes the category. My guess, though, is that it would be better to either make the product_listing component include an alternative product_card, if on tag.php, or maybe even make a new products_listing component that alway calls the alternate product_card, and then make tag.php call that component.
This may be very wrong, but I thought I might as well give some ideas for you to pursue :)

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
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: S04e10 - Product specs

Post by Kofod95 »

radhavallabh wrote: Mon Jun 06, 2022 6:14 am In the top status tab of the tag.php it displays %s %s instead of the title when we click on any specification to get the results.

It displays the Title correctly in the Heading and Breadcrumb though.
On my 1.0.8.14 it gives nothing on the browser tab (except my-store-name). This is the same on both Chrome and Firefox. Certainly better than "%s %s", but I would expect it to show the same as in the breadcrumb?

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: S04e10 - Product specs

Post by radhavallabh »

Kofod95 wrote: Mon Jun 06, 2022 4:55 pm
radhavallabh wrote: Mon Jun 06, 2022 6:14 am In the top status tab of the tag.php it displays %s %s instead of the title when we click on any specification to get the results.

It displays the Title correctly in the Heading and Breadcrumb though.
On my 1.0.8.14 it gives nothing on the browser tab (except my-store-name). This is the same on both Chrome and Firefox. Certainly better than "%s %s", but I would expect it to show the same as in the breadcrumb?

//Daniel
I am using the Meta SEO Tag suggestion due to which it displays the %s %s in the browser tab along with the Store Name....
So awaited a solution to it;
Very Warm Regds./
radhavallabh
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: s06e06 AND s04e10 - Product Specifications

Post by LeeFoster »

I've just installed this on a 1.0.8.15 store and I'm not getting the tab on the admin/product page.

Any one else seeing this issue?
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: s06e06 AND s04e10 - Product Specifications

Post by radhavallabh »

LeeFoster wrote: Tue Jun 07, 2022 10:08 am I've just installed this on a 1.0.8.15 store and I'm not getting the tab on the admin/product page.

Any one else seeing this issue?
Working on my 1.0.8.15 version dear....
Regds./radhavallabh
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: s06e06 AND s04e10 - Product Specifications

Post by LeeFoster »

radhavallabh wrote: Tue Jun 07, 2022 10:17 am
LeeFoster wrote: Tue Jun 07, 2022 10:08 am I've just installed this on a 1.0.8.15 store and I'm not getting the tab on the admin/product page.

Any one else seeing this issue?
Working on my 1.0.8.15 version dear....
Regds./radhavallabh
Fixed it, was my fault, mixed up categories/catalog folders


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