deejay-luke Posted February 23, 2004 Report Share Posted February 23, 2004 Ich habe in der product_listing.php und products_new.php folgenden code gew?chselt 'action=buy_now&BUYproducts_id=' aber es funtz immernicht. woran kann das liegen? MfG Lukasz Link to comment Share on other sites More sharing options...
mzanier Posted February 23, 2004 Report Share Posted February 23, 2004 wenn der code richtig eingebaut wurde dann funktioniert es. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 23, 2004 Author Report Share Posted February 23, 2004 <td align="right" valign="middle" class="main"><a href="<?php echo xtc_href_link(FILENAME_PRODUCTS_NEW, xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $products_new_array[$i]['id']) . '">' . xtc_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></a></td> Link to comment Share on other sites More sharing options...
mzanier Posted February 23, 2004 Report Share Posted February 23, 2004 du bist auch in der falschen datei. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 23, 2004 Author Report Share Posted February 23, 2004 wie heisst denn die richtige datei bei mir ist sie so: includes/module/product_listing.php aber in der 33 zeile Link to comment Share on other sites More sharing options...
mzanier Posted February 23, 2004 Report Share Posted February 23, 2004 jo, aber die products_new im root. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 23, 2004 Author Report Share Posted February 23, 2004 ok danke funtz jetzt. hast du meine pn bekommen? Link to comment Share on other sites More sharing options...
mzanier Posted February 23, 2004 Report Share Posted February 23, 2004 jo Link to comment Share on other sites More sharing options...
deejay-luke Posted February 24, 2004 Author Report Share Posted February 24, 2004 Ich weiss nicht warum aber jetzt funtz die "jetzt kaufen" function nicht mehr und ich habe nichts ge?ndert http://www.leparfume.de/index.php Link to comment Share on other sites More sharing options...
mzanier Posted February 24, 2004 Report Share Posted February 24, 2004 jo, weil du nun wieder das BUYproducts_id nichtmehr drinnen hast. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 24, 2004 Author Report Share Posted February 24, 2004 '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 More sharing options...
mzanier Posted February 24, 2004 Report Share Posted February 24, 2004 au mann.... hab ich doch oben geschrieben das das die falsche datei ist!! new_products im root, und products_listing. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 24, 2004 Author Report Share Posted February 24, 2004 der codeauschnitt ist aus der root! das andere ist ok Link to comment Share on other sites More sharing options...
deejay-luke Posted February 24, 2004 Author Report Share Posted February 24, 2004 also ich habe die products_new.php im hauptverzeichniss ge?ndert und die product_listing.php im includes/modules/ aucg ge?ndert und es geht nichts :grml: Link to comment Share on other sites More sharing options...
mzanier Posted February 24, 2004 Report Share Posted February 24, 2004 hoffungloser fall. wenn da steht man soll BUYproducts_id schreiben, dann ist schonmal logisch das buyproducts_id mal nicht klappen kann. mehr poste ich dazu nimma. Link to comment Share on other sites More sharing options...
deejay-luke Posted February 24, 2004 Author Report Share Posted February 24, 2004 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 More sharing options...
mzanier Posted February 24, 2004 Report Share Posted February 24, 2004 sorry, aber :wall: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.