Forums / General Questions / a strange problem about the hyperlink on mainpage

a strange problem about the hyperlink on mainpage

Locked

Views: 1,306

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
27 Apr 2010, 3:35 AM
#1
vonbismark avatar

vonbismark

New Zenner

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

a strange problem about the hyperlink on mainpage

This is the first time i posting here, i want to try if someone can help me solve the problem here.

the hyberlink of the featured product on main page is double repeated
e.g http://www.buyiaito.com/'http://www.buyiaito.com/index.php?main_page=product_info&cPath=22&products_id=105

see the problem on mainpage https://www.buyiaito.com

I deeply appreciate if my problem can be solved.

Best regards
Zhang

27 Apr 2010, 3:53 AM
#2
kobra avatar

kobra

Black Belt

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

Re: a strange problem about the hyperlink on mainpage

I do not see any duplicates???

Zen-Venom Get Bitten

27 Apr 2010, 4:03 AM
#3
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

the duplicates are on the product's title and product details icon.
(it is correct when click on product image).

Thank you!

27 Apr 2010, 4:11 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a strange problem about the hyperlink on mainpage

The problem is in your Featured Centerbox ... it looks like you added a button to get to the details and added it incorrectly ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 4:13 AM
#5
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

Then how to solve the duplicated link problem ?
Thank you!!!!!

27 Apr 2010, 4:14 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a strange problem about the hyperlink on mainpage

Actually it is all of your centerboxes ... if you add a product to the shopping cart then deleted it ... you can see all the centerboxes and all have this issue ...

If you switch to Classic Template does it correct the problem?

If so, this is something in your template ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 4:19 AM
#7
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

switch to Classic Template the problem disapeared!!
this is the problem in this new template...

27 Apr 2010, 4:22 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a strange problem about the hyperlink on mainpage

Something like Beyond Compare from scootersoftware.com might help you compare your template to the default files to find this ...

It could be in the:
/includes/modules/your_template_dir

/includes/templates/your_template_dir/templates

Or somewhere else ... but comparing your template files to the originals should help you find this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 4:27 AM
#9
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

Thank you!
I will try

27 Apr 2010, 3:13 PM
#10
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

I attached the featured_products.php, new_products.php, and specials_index.php under the includes/modules/template15388

http://www.buyiaito.com/php.rar

can you help me to have a check, where is the problem, it is too difficult for me to read the files.

Thank you!

27 Apr 2010, 3:48 PM
#11
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

some other files in folder includes/templates/template15388/templates/....

http://www.buyiaito.com/tpl.php.rar

Thank you!!

27 Apr 2010, 3:54 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a strange problem about the hyperlink on mainpage

You have mixed up single and double quotes ... try this instead on the featured_products.php:

	$reval  = "";
	$reval .=  "<div class=\"product_list\">";
	$reval .=  "				<div class=\"left\" style=\"width: 226px;\">";
	$reval .=  '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a>';
	$reval .=  "				</div>";
	$reval .=  "				<div class=\"right\" style=\"margin-left: -226px;\">";
	$reval .=  "					<div class=\"margin\" style=\"margin-left: 226px;\">";
	$reval .=  "						<div class=\"name\">";
	$reval .= "																					".'<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a>' ;
	$reval .=  "						</div>";
	$reval .= "																					<div class=\"text\">" .substr(strip_tags($featured_products->fields['products_description']), 0, 150) ."...</div>\n";
	$reval .=  "						<div class=\"line\"><img src=\"includes/templates/template_default/images/pixel_trans.gif\" alt=\"\" height=\"14\" width=\"1\"></div>";
	$reval .=  "						<div class=\"price\">";
	$reval .= "																					<strong>". $products_price ."</strong>";
	$reval .=  "						</div>";
	$reval .=  "						<div class=\"button\">";
	$reval .= "					        ". '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_GOTO_PROD_DETAILS, BUTTON_GOTO_PROD_DETAILS_ALT) . '</a>' ;
	$reval .=  "						<div class=\"clear\"></div>";
	$reval .=  "					</div>";
	$reval .=  "				</div>";
	$reval .=  "				<div class=\"clear\"></div>";
	$reval .=  "			</div><br>";
	$reval .= "";

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 5:07 PM
#13
vonbismark avatar

vonbismark

New Zenner

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

Re: a strange problem about the hyperlink on mainpage

Thank you VERY MUCH indeed.
I also use your modified template on featured_products2.php to revise the mistake code in new_products.php , very very thank you!

27 Apr 2010, 5:25 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a strange problem about the hyperlink on mainpage

You are most welcome ... glad that this helped you out ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!