Jump to content
Latest News: (loading..)

drferrari

Members
  • Content count

    48
  • Joined

  • Last visited

4 Followers

Profile Information

  • Real Name
    drferrari
  • Gender
    Male

Recent Profile Visitors

10,106 profile views
  1. Values when product add to shopping cart

    @@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. Values when product add to shopping cart

    @@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. Values when product add to shopping cart

    :beer: for me too. echo $last_item[id]."<br>"; echo $last_item[quantity];
  4. Values when product add to shopping cart

    @@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. Values when product add to shopping cart

    @@Solomono, Can you explain me how exactly this work. thank you
  6. Values when product add to shopping cart

    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. How to get full cat path?

    this maybe help: http://forums.oscommerce.com/topic/391546-full-categories-path-in-xml-file/#entry1662445
  9. xml feed how I display full category path

    look here: http://forums.oscommerce.com/topic/391546-full-categories-path-in-xml-file/#entry1662445
  10. Square meter contrib

    I found it "YEAHHHH", wait for my square meter contrib. thanks all chat friend for advises.
  11. Square meter contrib

    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.
  12. Square meter contrib

    Thank you, chris I know your contrib, sorry but I wanna create my own. if you have any idea. in shopping_cart.php page I check tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'])); this goto aplication_top.php case 'update_product' $cart->remove($HTTP_POST_VARS['products_id'][$i]); and then this goto include/classes/shopping_cart.php function remove WHY THIS NOT WORK???
  13. Square meter contrib

    I try create my own square meter contrib, I have stuck. in products_info.php page I create <input type="text" id="widthValue" name="widthValue" value="" size="5"/> x <input type="text" id="heightValue" name="heightValue" value="" size="5"/> this value is goto my shopping cart. in shopping_cart.php page if($products[$i]['widthValue'] !== ''){ $totalSquereMeter = $products[$i]['widthValue'] * $products[$i]['heightValue']; $info_box_contents[] = array('params' => 'class="productListing-data2"', 'text' => '<br/>WIDTH:'.$products[$i]['widthValue'].' x HEIGHT:'.$products[$i]['heightValue'].' = '.$totalSquereMeter); AND THIS is if products have width and height. I don't wanna show quantity if I have add product with WIDTH and HEIGHT. if($products[$i]['widthValue'] == ''){ echo"NO width and height"; $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data2" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); }else{ echo"width and height"; $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data2" valign="top"', 'text' => $products[$i]['quantity']); } in file -> includes/aplication_top.php $cart->add_cart( $HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $HTTP_POST_VARS['widthValue'][$i], $HTTP_POST_VARS['heightValue'][$i], $attributes, false); the problem is when I add product to shopping cart with WIDTH and HEIGHT then I can't delete it. I try this 'text' => tep_draw_hidden_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); NOW I can delete all my products BUT this is WRONG if I have product A (with = 2 height =3) and product B (no width and height) AND if I change quantity of my second product this qantity value goes to my first product. any Idea for this.
  14. WinBank Piraeus Greece - Urgent

    αυτο ψάχνω και εγω μαλον το λαθος ειναι καπου εδω function before_process() { global $HTTP_POST_VARS; if ($HTTP_POST_VARS['valid']=='true') { echo "0.1---------------------------------------------------"; if ($remote_host = getenv('REMOTE_HOST')) { if ($remote_host != 'https://paycenter.piraeusbank.gr/services/tickets/issuer.asmx') { if ($remote_host != 'https://paycenter.piraeusbank.gr/services/tickets/issuer.asmx') { $remote_host = gethostbyaddr($remote_host); } if ($remote_host != 'https://paycenter.piraeusbank.gr/services/tickets/issuer.asmx') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error2=' . $this->code, 'SSL', false, false)); } } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error3=' . $this->code, 'SSL', false, false)); } } } } οποιός ξερει ας δωσει ενα χεράκι. thanks
  15. [Contribution] oscThumb

    what do you mean fan4chevy upgrade.
×