Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding links to product info/order page

Adding links to product info/order page

Locked

Views: 855

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 May 2010, 10:10 PM
#1
siteengineer avatar

siteengineer

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Adding links to product info/order page

Hi,

I'm new to Zen Cart.

I'm wondering if I can add an internal link to the product info/order page. This is the page that I want to add links to: index.php?main_page=product_info&cPath=2_11&products_id=1.

I've attached a file that shows where I want to add the links. I would like to add a View Breed Symbols and Common Expressions links next to the appropriate product attributes.

I know I can add an url to a product but I want to add 2 and I want them place in a specific place.

Can I edit a php and css file that controls this?

thank you

18 May 2010, 12:17 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to product info/order page

If it will be the same for all products you can add a div(s) containing your link to that tpl file in the order you want and then style/position them with css

18 May 2010, 2:01 PM
#3
siteengineer avatar

siteengineer

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: Adding links to product info/order page

Thank you. Would you be able to tell me which tpl file to add the div? This is a link to the page that I want to add the links to: http://sunup2sundown.com/index.php?main_page=product_info&cPath=2_12&products_id=10.

Also, If I can ideally, I would like to add the view breeds & common expression-pets links to only the pet memorial related products and and view H&G symbols & common expression-H&G to the home & garden related products. How could I accomplish that?

18 May 2010, 2:40 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding links to product info/order page

You would edit /includes/templates/your_template/templates/tpl_modules_attributes.php.

You can either add the links above or below the attributes loop and position them with CSS absolute positioning, or add them in the loop with a test to execute only for the correct attribute.
You can also make a test for the value of the current top category to determine which set to use.```php
if((int)$_GET['cPath'] == '2') { //use category 2 links


You might want to use the Flexible Attributes code from Free Addons as a base to work from, as that identifies individual attributes already.
18 May 2010, 3:17 PM
#5
siteengineer avatar

siteengineer

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: Adding links to product info/order page

Thank you! I will try this and let you know how I make out.

19 May 2010, 12:51 PM
#6
siteengineer avatar

siteengineer

New Zenner

Join Date:
Apr 2010
Posts:
4
Plugin Contributions:
0

Re: Adding links to product info/order page

Thank you Kobra and Glenn. This worked! Also, I've been using the forum to find other answers and you're posts are always helpful!