User Tools

Site Tools


tutorials:zencartmods:pids.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:zencartmods:pids.html [2011/06/15 20:09]
daigo
tutorials:zencartmods:pids.html [2016/01/28 18:05]
Line 1: Line 1:
-Zen Cart automatically adds product numbers to each of your products. Here's some super easy ways to make those numbers more visible. 
- 
-{{:​tutorials:​zencartmods:​id.jpg|}} 
- 
- 
- 
-==== Add the product ID to the product page ==== 
- 
-Add this code to **includes/​templates/​YOUR_TEMPLATE/​templates/​tpl_product_info_display.php** wherever you like (we chose right under the title, line 62) 
-<code php> 
-  ID: <?php echo $_GET['​products_id'​];​ ?><br /> 
-</​code>​ 
- 
-==== Add the ID number to the page title ==== 
- 
-in **includes/​modules/​meta_tags.php** \\ 
-Find line 275  
-<code php> 
-define('​META_TAG_TITLE',​ str_replace('"','',​$review_on . $meta_products_name . $meta_products_price . PRIMARY_SECTION . TITLE . TAGLINE)); 
-</​code>​ 
- 
-and replace it with  
-<code php> 
-$meta_products_name .= " ID: " . $product_info_metatags->​fields['​products_id'​];​ 
-define('​META_TAG_TITLE',​ str_replace('"','',​$review_on . $meta_products_name . $meta_products_price . PRIMARY_SECTION . TITLE . TAGLINE)); 
-</​code>​ 
  
/home/ladyada/public_html/wiki/data/pages/tutorials/zencartmods/pids.html.txt · Last modified: 2016/01/28 18:05 (external edit)