Prev | Current Page 433 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

display}
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 331







Image name: {$obj->mProduct.image}



{if $obj->mProduct.image}


border="0" alt="{$obj->mProduct.name} image" />


{/if}


Image 2 name: {$obj->mProduct.image_2}



{if $obj->mProduct.image_2}


border="0" alt="{$obj->mProduct.name} image 2" />


{/if}


Thumbnail name: {$obj->mProduct.thumbnail}



{if $obj->mProduct.thumbnail}


border="0" alt="{$obj->mProduct.name} thumbnail" />


{/if}

3. Open business/catalog.php to add the $mProductDisplayOptions member to the Catalog class
needed for admin_products as highlighted:
// Business tier class for reading product catalog information
class Catalog
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 332
{
// Defines product display options
public static $mProductDisplayOptions = array ('Default', // 0
'On Catalog', // 1
'On Department', // 2
'On Both'); // 3
// Retrieves all departments
public static function GetDepartments()
{
4.


Pages:
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
tanie materace rzecz żyjemy tak podsłuchy recenzje gier