Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

To many products for 1 manufactuer possible? Mystery...


panthercoug

Recommended Posts

I have this little chunk of code at the bottom on my product_info.php page.

 

<?php if ($product_info['manufacturers_name']) { echo '<span itemprop="brand">' . stripslashes($product_info['manufacturers_name']) . '</span><br>';
}
?>

 

The itemprop= part designates the brand name in structured data and if I have 1,999 products with the same manufactuer I can use google snippet test tool and it shows up just fine. But the second I and more than 2000 products with the same manufactuer their tool errors on the product_info page. Yet if I view the source code of the page it shows the same either way

<span itemprop="brand">Brand Name</span>

 

Any Suggestions lol? Ionly have about 15 manufactuers so it not a big list. And its only looking at 1 product at a times. I am baffled lol.

Link to comment
Share on other sites

I wouldn't let deficiencies in someone elses code dictate site contents, even if the code comes from the all powerful g00gle.

 

If their tool throws errors they need to fix it.

 

Surely there is a way to make them aware of the problem?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...