New Zenner
- Join Date:
- May 2014
- Location:
- Oregon
- Posts:
- 2
- Plugin Contributions:
- 0
Products_URL display on search engine results page
I can see on the product_listing.php effects the layout on the search engine results page.
The website I'm working on is a directory not actually selling products.
All 'product'' results actually go to an external url, which is entered as the products URL in admin.
This is the code I have working successfully for the product listings page:
$lc_text = '<h3 class="itemTitle"><a href="http://'. $listing->fields['products_url'] . '" target="_blank">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(/zen_clean_html/(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br />' . '<a href="http://'. $listing->fields['products_url'] . '" target="_blank"">' . $listing->fields['products_url'] . '</a></div><br />';
However in the search results page the products_url link only comes back as a forward slash. So if you click on the title it goes to http:///
Then it does not show the extra line of code I have added to display the products_url at the bottom of the description.
See images below.
vs.
Does anybody have any idea how to get the search results page to recognize the products_URL ?
Thanks!