Forums / General Questions / $products_name on tpl_product_reviews_default.php

$products_name on tpl_product_reviews_default.php

Locked

Views: 1,649

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Sep 2007, 9:28 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

$products_name on tpl_product_reviews_default.php

I've noticed that the $products_name string contains the following data (on the end) only when the current page is tpl_product_reviews_default.php.

<br /><span class=\"smallText\">[PRODUCT-MODEL-NUMBER-HERE]</span>

Is there any reason for this? I've noticed that the $title string returns the product name without the above code on the end. Would that be the correct string to use on this page?

Thanks in advance! :)

My Contributions: Zen Lightbox | Best Sellers Reloaded

19 Sep 2007, 8:04 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: $products_name on tpl_product_reviews_default.php

You can see in the header_php.php code for that page that the model number gets appended if it exists:```
if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Sep 2007, 8:50 AM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: $products_name on tpl_product_reviews_default.php

Thanks for this. It's all beginning to make sense! :)

My Contributions: Zen Lightbox | Best Sellers Reloaded