Zen Cart Logo
Forums / General Questions / Include any information in product listing page

Include any information in product listing page

Views: 1,076

Results 1 to 10 of 10
26 Nov 2013, 9:59 AM
#1
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Include any information in product listing page

Hi,

How can I add any Information in product listing page. Such as I want to include images and 1-2 line of text and link them to my blog. The images and text will change as new blog is added. Please help!!

Thanks!

26 Nov 2013, 10:03 AM
#2
cvhainb avatar

cvhainb

Zen Follower

Join Date:
Sep 2008
Posts:
212
Plugin Contributions:
19

Re: Include any information in product listing page

Find CKEditor in zen cart plugins and install it on your site.

26 Nov 2013, 1:11 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Include any information in product listing page

snk060:

Hi,

How can I add any Information in product listing page. Such as I want to include images and 1-2 line of text and link them to my blog. The images and text will change as new blog is added. Please help!!

Thanks!

cvhainb:

Find CKEditor in zen cart plugins and install it on your site.

As cvhainb suggests a text editor that will generate the necessary html coding will help. (Ckeditor is one of those.)

To add text (or html) to a product would need to access the admin panel, catalog menu option, then products/categories. From there to select the product to contain the information you want to include. Typically the information would be contained in the description.

Now the question is how do you plan on retrieving the information to display? ZC doesn't allow php code in the description (or at least it doesn't do anything if it is there). If you need php to retrieve the information to be displayed, you will more than likely need to modify the template to display/retrieve the information desired. On the pagges that will have retrieved information and not cause an error on pages that will not have data to retrieve.

26 Nov 2013, 1:19 PM
#4
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: Include any information in product listing page

Hey thanks cvhainb and mc12345678 for your response!!!

I am sending you link in your pm. Please check the bottom portion of the page. I achive that by hard coding in tpl_index_product_list.php but I want that to come from admin panel. Such that If any update in bold can be added through admin panel by inserting image, text and link dynamically.

Thanks!!

26 Nov 2013, 1:26 PM
#5
kitten091182 avatar

kitten091182

Zen Follower

Join Date:
May 2007
Posts:
110
Plugin Contributions:
0

Re: Include any information in product listing page

Hi, I think what I did with my site is the same thing you want to do, the only difference is I have the code in a sidebox not the actual main body of the page: http://www.drgreens.co.uk/Environment/Carbon-Filters have a look at the advice centre sidebox on the right. The link to the "Odour Control" page changes depending on what page category is open. If you browse on other categories you will see what I mean. To achieve this, I downloaded "Short Description for categories" and "Product Extra Fields" plugins. By having a look at how both these modules work, you will be able to take bits of the code from them and customize it to do what you want. Let me know if you need any help

26 Nov 2013, 1:44 PM
#6
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: Include any information in product listing page

Hi Kitten091182,

I have sent you my website link in pm. Can you please check that and advice.

Thanks!!

26 Nov 2013, 2:04 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Include any information in product listing page

snk060:

Hey thanks cvhainb and mc12345678 for your response!!!

I am sending you link in your pm. Please check the bottom portion of the page. I achive that by hard coding in tpl_index_product_list.php but I want that to come from admin panel. Such that If any update in bold can be added through admin panel by inserting image, text and link dynamically.

Thanks!!

kitten091182:

Hi, I think what I did with my site is the same thing you want to do, the only difference is I have the code in a sidebox not the actual main body of the page: http://www.drgreens.co.uk/Environment/Carbon-Filters have a look at the advice centre sidebox on the right. The link to the "Odour Control" page changes depending on what page category is open. If you browse on other categories you will see what I mean. To achieve this, I downloaded "Short Description for categories" and "Product Extra Fields" plugins. By having a look at how both these modules work, you will be able to take bits of the code from them and customize it to do what you want. Let me know if you need any help

While kitten did do something similar, that implementation was with a sidebox. Having received the link from snk060 and taken a look, the desire is to have information presented at the bottom of the screen above the footer area (although it could probably be implemented in the footer as well). I would suggest taking a look at the following plugin (Editable Home Page Centerboxes): http://www.zen-cart.com/downloads.php?do=file&id=1069

This option is suggested because it provides define pages that can be modified in the admin panel vice any type of hard coding that is currently being done. (Yes OP has been hard-coding information into tpl_index_product_list.php). Hard coding should be avoided in all cases. Beauty of ZC is that it can be moved to different locations, copied for others to use, etc... Hardcoding, not only locks the user of the software into the results, but also makes customization difficult because the change(s) are not likely to be found where they are expected by the standard process.

Also in summary and in review of the website, the desire is to have customized information associated with the category, not necessarily the product. (This is based on the current presentation of the implemented code.) This may also be accomplished through the use of category information particularly if using an editor such as ckeditor. You can formulate html presentation that would include a picture with a clickable link/words and it can be presented in a table... etc... You may have to position the associated information elsewhere; however, also looking at the current implementation, it appears this is already being used to display information at the top of the category/sub-category window, so somewhat a no go there unless an additional field were added and the template updated to reflect.

That help?

26 Nov 2013, 2:09 PM
#8
cvhainb avatar

cvhainb

Zen Follower

Join Date:
Sep 2008
Posts:
212
Plugin Contributions:
19

Re: Include any information in product listing page

http://www.zen-cart.com/downloads.php?do=file&id=815

Customize this module and you will have what you want.

snk060:

Hey thanks cvhainb and mc12345678 for your response!!!

I am sending you link in your pm. Please check the bottom portion of the page. I achive that by hard coding in tpl_index_product_list.php but I want that to come from admin panel. Such that If any update in bold can be added through admin panel by inserting image, text and link dynamically.

Thanks!!

26 Nov 2013, 2:13 PM
#9
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: Include any information in product listing page

Hey Cvhainb and mc12345678!! It was great help! Thankyou so much!!

26 Nov 2013, 2:40 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Include any information in product listing page

snk060:

Hey Cvhainb and mc12345678!! It was great help! Thankyou so much!!

Once you have identified the path/options chosen, please update this thread for those that might read in the future.