Jump to content

Bad links on my home page


stevemills

Recommended Posts

Under each image on the front page of my store, I have this link: http://prod_.html/?{VAL_PRODUCT_ID, though the images correctly link to their item pages.

I must have caused this myself with some edit attempt in the skin (6IXGreen), but had not noticed it until today. It may have happened a week or so ago when I was trying to add Google Adsense (but gave up).

Which file am I looking for to fix this?

My store is here: http://www.pencilartist.com/cubecart/index.php (artistic nudity is involved.... don't look if you are offended by this).

Link to comment
Share on other sites

Can you post the details of your global.inc.php, you can remove the user account details.

Actually, the images look fine to me.

It's not the image link, it's the textual link below each one.

I assume you mean the global.inc.php in the Includes directory?

<?php

$glob['adminFile'] = 'admin.php';

$glob['adminFolder'] = 'admin';

$glob['dbdatabase'] = '<redacted>;

$glob['dbhost'] = 'localhost';

$glob['dbpassword'] = '<redacted>';

$glob['dbprefix'] = '';

$glob['dbusername'] = '<redacted>';

$glob['encoder'] = 'ioncube';

$glob['installed'] = '1';

$glob['license_key'] = '<redacted>';

$glob['rootDir'] = '/home/<redacted>/public_html/cubecart';

$glob['rootRel'] = '/cubecart/';

$glob['storeURL'] = 'http://www.pencilartist.com/cubecart';

?>

Link to comment
Share on other sites

Hi

I think I might have found your problem, fingers crossed!

You might have a slightly different path if you are using a different skin, but your seem to be missing a } in your index.tpl found at skins/YOUR_SKIN/styleTemplates/content/index.tpl

I have highlighted in bold where I think you should check.

		<!-- BEGIN: repeat_prods -->

			<div class="latestProds">

				<a href="index.php?_a=viewProd&amp;productId=[b]{VAL_PRODUCT_ID}[/b]"><img class="latest_img"src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" title="{VAL_PRODUCT_NAME}" ></a>

				<br />

				<a href="index.php?_a=viewProd&amp;productId=[b]{VAL_PRODUCT_ID}[/b]" class="txtDefault">{VAL_PRODUCT_NAME}</a>

				<br /> 

				<span class="txtPrice">{TXT_PRICE}</span> <span class="txtSale">{TXT_SALE_PRICE}</span>

			</div>

		<!-- END: repeat_prods -->

Hope that sorts it ;)

ps. Sorry the bold highlighting hasnt shown in the code, it is between the tags around {VAL_PRODUCT_ID}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...