Latest News: (loading..)

drferrari

Members
  • Content count

    48
  • Joined

  • Last visited

4 Followers

About drferrari

Profile Information

  • Real Name
    drferrari
  • Gender
    Male

Recent Profile Visitors

9,895 profile views
  1. @@burt the problem is every time I goto shopping_cart.php page I see the last product. @[member=kymation] $cart_products = $cart->get_products( true ); $last_item = end( $cart_products ); I wanna see it only when I add one product to cart.
  2. @@burt Can you give me some example. and is possible show last products ONLY when I click on add to cart button, is right to pass some value to tep_redirect(tep_href_link($goto 'value=showlastproducts', tep_get_all_get_params($parameters)));
  3. :beer: for me too. echo $last_item[id]."<br>"; echo $last_item[quantity];
  4. @@Solomono and @@kymation for both :beers: and thank you. with this code echo $withComma = implode(",", $last_item); I get everything separated with comma. Now I try get only e.g. name echo $products_array['name'] or quantity $products_array['quantity'], any idea.
  5. @@Solomono, Can you explain me how exactly this work. thank you
  6. in application_top.php (case 'add_product') I insert values to redirect url tep_redirect(tep_href_link($goto, 'prid='.$_POST['products_id'] . '&quantity=' . $_POST['cart_quantity'])); and then in shopping_cart.php page I get this values. IS POSIBLE on some way hide this values and then get it in shopping_cart.php page.
  7. Hello, In product_info.php page ONLY when I click on ad to cart button I wanna see in shopping_cart.php page, and ONLY THE LAST product id product name, product quantity, price, product category. I thinking something in application_top.php in case 'add_product' : when redirect apply: tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); any idea how can this work...
  8. @@auzStar, thank you, this was looking: echo tep_draw_hidden_field('cPath', $cPath); I change the query and put (if else): if (isset($HTTP_GET_VARS['manufacturers_categories_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_categories_id'])) { $products_query = tep_db_query("Select.... and change this (manufacturers_categories_id): echo 'Manufacturer: ' . tep_draw_pull_down_menu('manufacturers_categories_id', $manufacturers_array, $pInfo->manufacturers_id, 'onChange="this.form.submit();"'); thank you again and I learned something new
  9. @@auzStar thank you but this not working @@frankl <?php echo tep_draw_form('manufacturerSelect', FILENAME_CATEGORIES . tep_get_all_get_params($parameters), '', 'get'); $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); } echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id, 'onChange="this.form.submit();"'); echo tep_hide_session_id() . '</form>'; ?>
  10. @@bruyndoncx, thank you but no this not help. I need form action with all parameters echo tep_draw_form('manufacturerSelect', FILENAME_CATEGORIES . tep_get_all_get_params($parameters), '', 'get'); LOOK HERE: the problem is with FORM ACTION: FILENAME_CATEGORIES . tep_get_all_get_params($parameters). I get this: categories.phpcPath=2822?manufacturers_id=18 I need this: categories.php?cPath=2822&manufacturers_id=18
  11. in some of my category e.g. categories.php?cPath=2822 I have 100 products from 3 manufacturers (apple, sony, philips). I create form to show me only product from e.g. apple when is selected. echo tep_draw_form('manufacturerSelect', FILENAME_CATEGORIES . tep_get_all_get_params($parameters), '', 'get'); $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); } echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id, 'onChange="this.form.submit();"'); echo tep_hide_session_id() . '</form>'; the problem is here with Action: FILENAME_CATEGORIES . tep_get_all_get_params($parameters). I get this: categories.phpcPath=2822?manufacturers_id=18 I need this: categories.php?cPath=2822&manufacturers_id=18 I put all this above: echo tep_draw_form('search', FILENAME_CATEGORIES, '', 'get'); and create: $manufacturers_id = tep_db_prepare_input($HTTP_GET_VARS['manufacturers_id']); if (isset($HTTP_GET_VARS['manufacturerSelect'])) { $products_query = tep_db_query("select .... where ... p.manufacturers_id = '" . $manufacturers_id . "' }else if (isset($HTTP_GET_VARS['search'])) {... Can somebody help me.
  12. this maybe help: http://forums.oscommerce.com/topic/391546-full-categories-path-in-xml-file/#entry1662445
  13. look here: http://forums.oscommerce.com/topic/391546-full-categories-path-in-xml-file/#entry1662445
  14. I found it "YEAHHHH", wait for my square meter contrib. thanks all chat friend for advises.
  15. forgot the above posts, it is Lenght * width = square metere value Look at my my attach files. (and make it work on your oscommerce) 1) product_info-1.php page (FOR ADD FIRST PRODUCTS WITH LENGHT AND WIDTH)-> rename to product_info.php for your first add to cart 2) product_info-2.php page (FOR ADD SECOND PRODUCTS NO LENGHT AND WIDTH only quantity e.g. 10)-> rename to product_info.php for your second add to cart 3) shopping_cart.php 4) includes/application_top.php 5) square-meter5.txt rename to -> square-meter5.js 6) includes/classes/shopping_cart.php look at : function update_quantity($products_id, $lenghtValue, $widthValue, $quantity = '', $attributes = '') { if you have product A with LENGHT AND WIDTH and product B with NO LENGHT AND WIDTH in your shopping cart and try change quantity of the product B you can't, if you change the function to: function update_quantity($products_id, $quantity = '', $lenghtValue, $widthValue, $attributes = '') { you can change the quantity BUT you loose LENGHT and WIDTH of your product A ANY IDEA HOW CAN I FIT IT.