Prev | Current Page 275 | Next

Emilian Balanescu and Cristian Darie

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

attributes[k.index_prev].attribute_name}
{$obj->mProduct.attributes[k].attribute_name}:

{/if}
{/section}


{if $obj->mLinkToContinueShopping}
Continue Shopping
{/if}
4. Add the highlighted code to the init() method of the Product class from
presentation/product.php:
if ($this->mProduct['image_2'])
$this->mProduct['image_2'] =
Link::Build('product_images/' . $this->mProduct['image_2']);
$this->mProduct['attributes'] =
Catalog::GetProductAttributes($this->mProduct['product_id']);
$this->mLocations = Catalog::GetProductLocations($this->_mProductId);
CHAPTER 6 ?–  PRODUCT ATTRIBUTES 184
5. Add the following style to styles/tshirtshop.css:
.attributes {
clear: both;
display: block;
padding-top: 5px;
}
6. Load http://localhost/tshirtshop/, and admire your new product attributes in action. Figure 6-3
displays the product attributes in the product details page. Figure 6-1 shows product attributes in a product
listing.


Pages:
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
Kąty Rybackie noclegi kasyno Kołobrzeg plecaki projektowanie ogrodów łódź