Prev | Current Page 364 | Next

Emilian Balanescu and Cristian Darie

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

discounted_price != 0}
{$obj->mProduct.price}
{$obj->mProduct.discounted_price}
{else}
{$obj->mProduct.price}
{/if}


{* The Add to Cart form *}
action="{$obj->mProduct.link_to_add_product}">
{* Generate the list of attribute values *}


{* Parse the list of attributes and attribute values *}
{section name=k loop=$obj->mProduct.attributes}
{* Generate a new select tag? *}
{if $smarty.section.k.first ||
$obj->mProduct.attributes[k].attribute_name !==
$obj->mProduct.attributes[k.index_prev].attribute_name}
{$obj->mProduct.attributes[k].attribute_name}:

{/if}
{/section}


{* Add the submit button and close the form *}





{if $obj->mLinkToContinueShopping}
Continue Shopping
{/if}
8.


Pages:
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376