Forums / Templates, Stylesheets, Page Layout / Url in product listing

Url in product listing

Locked

Views: 1,533

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 May 2006, 5:03 PM
#1
milksamsa avatar

milksamsa

New Zenner

Join Date:
Dec 2005
Posts:
33
Plugin Contributions:
0

Url in product listing

How's that I can't see the option to list also the product URL in product listing?
How can I work around this administration limitation? What should I code in product_listing.php?

Thanks in advance for your replies!

22 May 2006, 8:10 PM
#2
milksamsa avatar

milksamsa

New Zenner

Join Date:
Dec 2005
Posts:
33
Plugin Contributions:
0

Re: Url in product listing

I forgot to mention I'm still using 1.2.x version.
It would be better not to go through the overwhelming task of upgrading...
I tried once without much success due to high customization of php files in my installation.

22 May 2006, 11:56 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Url in product listing

As to upgrading, you may want to work on the upgrade in a separate folder+database so you can progressively work towards it over time, rather than have to do it all at once due to a need to protect a security problem or add some other feature dependent on the new version, etc.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 May 2006, 12:04 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Url in product listing

As to the product-listing changes, you'll need to do many things. Here's a start:

  1. in modules/product_listing.php duplicate the PRODUCT_LIST_MODEL section lines 36-40 and 100-103 for PRODUCT_LIST_URL (this will be new)
    In the second duplication, use $listing->fields['products_url'] instead of $listing->fields['products_model']

  2. do similarly in includes/modules/pages/index/main_template_vars.php lines 146-148

  3. do language file adds for TABLE_HEADING_URL (like TABLE_HEADING_MODEL)

  4. includes/index_filters/(all appropriate files)

  • duplicate the PRODUCT_LIST_MODEL sections substituting url as needed
  1. add another record to the configuration table similar to PRODUCT_LIST_MODEL but renamed to match how you've used it in the other steps above.

That should get you started

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 May 2006, 7:10 AM
#5
milksamsa avatar

milksamsa

New Zenner

Join Date:
Dec 2005
Posts:
33
Plugin Contributions:
0

Re: Url in product listing

Well... thank you so much!
I'l look into it and let you know...
I think I now understand how it work and I also guess I should upgrade and configure it properly.

Thank you.