Jump to content
xt:Commerce Community Forum

Jetzt Kaufen Funtz Nicht


Recommended Posts

'BUTTON_BUY_NOW'=>'<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $products_new['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $products_new['products_name'] . TEXT_NOW));

Zeile 77 in der root products_new.php

ist eigentlich drin

Link to comment
Share on other sites

ich habe die nur testweise kleingeschrieben und gerade ge?ndert aber nicht passiert

$module_content='';

 if ($products_new_split->number_of_rows > 0) {

  $products_new_query = xtc_db_query($products_new_split->sql_query);

  while ($products_new = xtc_db_fetch_array($products_new_query)) {

   if (xtc_not_null($products_new['specials_new_products_price'])) {

    $products_price = xtc_get_products_price($products_new['products_id'], $price_special=1, $quantity=1);

   } else {

    $products_price = xtc_get_products_price($products_new['products_id'], $price_special=1, $quantity=1);

   }


  $products_new['products_name'] = xtc_get_products_name($products_new['products_id']);

  $products_new['products_short_description'] = xtc_get_short_description($products_new['products_id']);

  $module_content[]=array(

              'PRODUCTS_NAME' => $products_new['products_name'],

              'PRODUCTS_DESCRIPTION' => $products_new['products_short_description'],

              'PRODUCTS_PRICE' => xtc_get_products_price($products_new['products_id'],$price_special=1,$quantity=1),

              'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']),

              'PRODUCTS_IMAGE' => DIR_WS_IMAGES . $products_new['products_image'],

              'BUTTON_BUY_NOW'=>'<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $products_new['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $products_new['products_name'] . TEXT_NOW));




  }

 } else {


$smarty->assign('ERROR',TEXT_NO_NEW_PRODUCTS);


 }


  $smarty->assign('language', $_SESSION['language']);

 $smarty->caching = 0;

 $smarty->assign('module_content',$module_content);

 $main_content=$smarty->fetch(CURRENT_TEMPLATE . '/module/new_products_overview.html');

 $smarty->assign('main_content',$main_content);


 $smarty->assign('language', $_SESSION['language']);

 $smarty->caching = 0;

 $smarty->display(CURRENT_TEMPLATE . '/index.html');

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...