Prev | Current Page 366 | Next

Emilian Balanescu and Cristian Darie

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

'?cmd=_cart&business=' . PAYPAL_EMAIL .
'&item_name=' . rawurlencode($product['name']);
if (count($selected_attribute_groups) > 0)
$paypal_url .= '&on0=' . implode('/', $selected_attribute_groups) .
'&os0=' . implode('/', $selected_attribute_values);
$paypal_url .=
'&amount=' . ($product['discounted_price'] == 0 ?
$product['price'] : $product['discounted_price']) .
'¤cy_code=' . PAYPAL_CURRENCY_CODE . '&add=1' .
CHAPTER 9 ?–  RECEIVING PAYMENTS USING PAYPAL 261
'&shopping_url=' .
rawurlencode($_SESSION['paypal_continue_shopping']) .
'&return=' . rawurlencode(PAYPAL_RETURN_URL) .
'&cancel_return=' . rawurlencode(PAYPAL_CANCEL_RETURN_URL);
// Redirect to the PayPal cart page
header('HTTP/1.1 302 Found');
header('Location: ' . $paypal_url);
// Clear the output buffer and stop execution
flush();
ob_flush();
ob_end_clean();
exit();
}
// Load department details if visiting a department
if (isset ($_GET['DepartmentId']))
{
9. Open store_front.tpl from the presentation/templates folder, and add the code for View Cart
button as shown:

{include file="search_box.tpl"}
{include file="departments_list.tpl"}
{include file=$obj->mCategoriesCell}

action="{$smarty.const.PAYPAL_URL}">

value="{$smarty.


Pages:
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
www.books61.hobbitstory.com tanie noclegi międzyzdroje pokoje windsurfing Władysławowo noclegi e-lady