Jump to content

ariogenki

Members
  • Content count

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Frank Cefalu
  1. ariogenki

    Problems Please Help... Amanda maybe?

    Fixed it With The following The Array contains who is getting the gift. So I count it jsut to get the amount/quantity for the cart. The gift registry is like a wish list, except its made to send the product to multiple ppl with gift messages, seperate delivery dates etc. case 'add_product_registry' : $v = calval(); if (isset($HTTP_GET_VARS['products_id'])) { // if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { // tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); // } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+$v); // } } echo add_to_shipping_list(); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break;
  2. >_< Okay. Three days of no avail I have finally concluded I need help. I am building a gift registry. Anyways.... here is the code that adds it to the cart. case 'add_product_user': include('registry/display/cart/add.php'); $amount2 = count($cart_num); $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+$amount2); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Now. Two things happens here. Inside Add.php it adds it to my gift registry correctly, and inside add.php is an array that I created call cart_num to make sure it counts it so it can add the correct quantity to the cart. $Amount2 is the amount that should be added to the shopping cart. It doesnt even matter if the array isnt being populated correctly it should still represent 1 in $cart_num if I were to count it. But the fact is that the array is being populated correctly as it adds the correct number of ppl to my table for the registry. But when it trys to add the quantity to my cart, upon redirect my shopping cart is completly empty and if there were items already in the cart before, they are now gone. Can someone help me? :(
  3. ariogenki

    Need Some Help

    Mark it does contain data my product array. I used count($_POST['product']); and echod it and it shows the correct amount of users I am trying to add. Do you think if i use is_array($_POST['product']) and loop the cart adding feature and have it add +1 quantity for each user available thatll work?
  4. ariogenki

    Need Some Help

    I've been building a gift registry for Oscommerce which I am hoping to release after its finished. Screenshot below - Problem? When you check mark off all users and hit submit I have the selection named Products[]. Making it an array so you can easily add multiple users to your gift list. Problem I am having is the shopping cart picking it up. case 'add_product_user': $amount2 =count($_POST['product']); $num = 1; if (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_POST_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_POST_VARS['products_id'])+$num); } // include('registry/display/cart/add.php'); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; The Commented out line is what adds it to the gift registry part. lol But can anyone see the problem I am having? I set the variable $num to one to see if it wasnt counting right but it isn't even adding one to the quantity. Please help =(.
  5. Okay Multiple Problems.... Once I installed it exactly to a T I go this error Internal Server Error Checked my logs for apache and had this - [Thu Apr 27 11:46:13 2006] [error] [client 127.0.0.1] PHP Fatal error: Class 'SEO_URL' not found in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\Bauer Web Development Projects\\feedyoursoul\\catalog\\includes\\application_top.php on line 291 Next I went to Application top and hardcoded the location on line 291 and go this error. Warning: include_once(/includes/classes/seo.class.php) [function.include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Bauer Web Development Projects\feedyoursoul\catalog\includes\application_top.php on line 289 Warning: include_once() [function.include]: Failed opening '/includes/classes/seo.class.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache2\htdocs\Bauer Web Development Projects\feedyoursoul\catalog\includes\application_top.php on line 289 Fatal error: Class 'SEO_URL' not found in C:\Program Files\Apache Group\Apache2\htdocs\Bauer Web Development Projects\feedyoursoul\catalog\includes\application_top.php on line 291 What the hell?
×