Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

alcova

Pioneers
  • Posts

    55
  • Joined

  • Last visited

Profile Information

  • Real Name
    Stefano
  • Gender
    Male

alcova's Achievements

  1. I'm trying to install this contribution. I got stuck at Step 8: I can't find // Stock Check $any_out_of_stock = false; if (STOCK_CHECK == 'true') { for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) { $any_out_of_stock = true; } } // Out of Stock if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } I've been trying to search even for single bits of that code but nothing... this is what I have in the file (it's the code until the second change in step 8) <?php /* $Id: checkout_process.php,v 1.128 2003/05/28 18:00:29 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ include('includes/application_top.php'); //Order IP Record BEGIN $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; $client = gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]); $str = preg_split("/\./", $client); $i = count($str); $x = $i - 1; $n = $i - 2; $isp = $str[$n] . "." . $str[$x]; //Order IP Record END //mod to set payment to default currency $currency = DEFAULT_CURRENCY; // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT)); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } if (!tep_session_is_registered('sendto')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } if ( (tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } // avoid hack attempts during the checkout procedure by checking the internal cartID if (isset($cart->cartID) && tep_session_is_registered('cartID')) { if ($cart->cartID != $cartID) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PROCESS); // load selected payment module require(DIR_WS_CLASSES . 'payment.php'); if ($credit_covers) $payment=''; // CCGV $payment_modules = new payment($payment); // load the selected shipping module require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping($shipping); require(DIR_WS_CLASSES . 'order.php'); $order = new order; require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); // load the before_process function from the payment modules $payment_modules->before_process(); $sql_data_array = array('customers_id' => $customer_id, 'customers_name' => $order->customer['firstname'] . ' ' . $order->customer['lastname'], 'customers_company' => $order->customer['company'], 'customers_street_address' => $order->customer['street_address'], 'customers_suburb' => $order->customer['suburb'], 'customers_city' => $order->customer['city'], 'customers_postcode' => $order->customer['postcode'], 'customers_state' => $order->customer['state'], 'customers_country' => $order->customer['country']['title'], 'customers_telephone' => $order->customer['telephone'], 'customers_email_address' => $order->customer['email_address'], 'customers_address_format_id' => $order->customer['format_id'], 'delivery_name' => $order->delivery['firstname'] . ' ' . $order->delivery['lastname'], 'delivery_company' => $order->delivery['company'], //PIVACF start 'billing_piva' => $order->billing['piva'], 'billing_cf' => $order->billing['cf'], //PIVACF end 'delivery_street_address' => $order->delivery['street_address'], 'delivery_suburb' => $order->delivery['suburb'], 'delivery_city' => $order->delivery['city'], 'delivery_postcode' => $order->delivery['postcode'], 'delivery_state' => $order->delivery['state'], 'delivery_country' => $order->delivery['country']['title'], 'delivery_address_format_id' => $order->delivery['format_id'], 'billing_name' => $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'billing_company' => $order->billing['company'], 'billing_street_address' => $order->billing['street_address'], 'billing_suburb' => $order->billing['suburb'], 'billing_city' => $order->billing['city'], 'billing_postcode' => $order->billing['postcode'], 'billing_state' => $order->billing['state'], 'billing_country' => $order->billing['country']['title'], 'billing_address_format_id' => $order->billing['format_id'], 'payment_method' => $order->info['payment_method'], 'cc_type' => $order->info['cc_type'], 'cc_owner' => $order->info['cc_owner'], 'cc_number' => $order->info['cc_number'], 'cc_expires' => $order->info['cc_expires'], 'date_purchased' => 'now()', 'orders_status' => $order->info['order_status'], 'currency' => $order->info['currency'], 'currency_value' => $order->info['currency_value'], //Order IP Record BEGIN 'ipaddy' => $ip, 'ipisp' => $isp); //Order IP Record END tep_db_perform(TABLE_ORDERS, $sql_data_array); $insert_id = tep_db_insert_id(); for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $sql_data_array = array('orders_id' => $insert_id, 'title' => $order_totals[$i]['title'], 'text' => $order_totals[$i]['text'], 'value' => $order_totals[$i]['value'], 'class' => $order_totals[$i]['code'], 'sort_order' => $order_totals[$i]['sort_order']); tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array); } $customer_notification = (SEND_EMAILS == 'true') ? '1' : '0'; $sql_data_array = array('orders_id' => $insert_id, 'orders_status_id' => $order->info['order_status'], 'date_added' => 'now()', 'customer_notified' => $customer_notification, 'comments' => $order->info['comments']); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); // initialized for the email confirmation $products_ordered = ''; $subtotal = 0; $total_tax = 0; // begin product bundles function reduce_bundle_stock($bundle_id, $qty_sold) { from then on there's the rest of change of step 8 any clue where I have to add: $any_bundle_only = false; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if ($products[$i]['sold_in_bundle_only'] == 'yes') $any_bundle_only = true; } if ($any_bundle_only) tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  2. Hi, I'm using this contribution on my website www.alcova.biz/index.php I don't know if the problem that Ident pointed out is real (counting the number of items found and not just a single search... ) the problem on my site is that apparently after just few days all the words have the same weight (more or less) and thus there's no real highlights on the most searched ones. is there a way to fix that? and have them regularly reset or just dropping the ones that haven't been searched in a while? thank you
  3. hi everyone.. I have a shop www.alcova.biz and I've been using the calendar in the past. lately my provider has upgraded to mysql 5 and today I just realized that the event manager doesn't insert new events. can someone help me sort this problem out?
  4. ok I'll check and let you know. :)
  5. Hi, I installed the contrib a couple of days ago and it works fine. I also followed the instructions about the crontab. what I get in the daily mail looks like this: /home/alcova/public_html/googlesitemap/index.php: line 2: /CmdTool.log: Permission denied /home/alcova/public_html/googlesitemap/index.php: line 3: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 4: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 5: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 6: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 7: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 8: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 9: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 10: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 11: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 12: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 13: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 14: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 15: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 16: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 17: access-logs: command not found /home/alcova/public_html/googlesitemap/index.php: line 18: access-logs/: is a directory /home/alcova/public_html/googlesitemap/index.php: line 20: syntax error near unexpected token `'../'' /home/alcova/public_html/googlesitemap/index.php: line 20: ` chdir('../');' I have no clue if that's what it should look like or if it means there are problems I'm not aware of. any suggestion?
  6. sorry if this topic has been discussed before, but I've searched the thread and couldn't find an answer. I'd like to add the product model to the url. how can this be done?
  7. Hi everybody, I have just realized that I have some problems with teh CCGV contribution. the shop is www.alcova.biz when you register the system sends you a welcome email with -among other stuff- a welcome discount code. It should entitle you for a 5% on your first order (I set it so that it can be used one time per each customer). But today I received an order and realized the discount was much higher than it should be. The total (without shipping) was 134.70 and the discount was 18.71!!! I've tried again, creating a new order with other stuff. Again, the total was 144.80 and the discount 14.48 (this time a "clean" 10%) Does anybody have any clue why is it happening? Could you try and tell me what happens when you create a new order? Is there someone able and willing to help me fix this (I'm happy to pay)? ciao
  8. I'm interested in getting instruction on how to update from a previous installation. where can I find them?
  9. jarvis, I made a mistake while writing the example here on the forum. All the columns in the excel file are named correctly. any clue?
  10. Hi everyone, I just encountered a problem using EP. I am building a shop that has products of different kind, this means that they can have various attributes each with 10 or more options. today it has happened for the first time that the excel file couldn't write all the option in a single row, so I thought "ok.. I will upload the attributes for the same product using 2 text file instead than just one". well.. I can't. I will make an example to simplify. I have a first file with a set of attributes (Colours) like this (I'll write in colums rather than lines to make it more readable): v_attribute_options_id_1 1 v_attribute_options_name_1_4 Colore v_attribute_options_name_1_5 Colour v_attribute_values_id_1_1 1080 v_attribute_values_price_1_1 0 v_attribute_values_name_1_1_4 Nero/Bianco v_attribute_values_name_1_1_5 Black/White and so on... Then I have a second file with a different set of attributes (sizes). The second file doesn't have the columns of the previous option/attributes. v_attribute_options_id_2 2 v_attribute_options_name_2_4 Taglia v_attribute_options_name_2_5 Size v_attribute_values_id_2_1 2005 v_attribute_values_price_2_1 0 v_attribute_values_name_2_1_4 S v_attribute_values_name_2_1_5 S and so on... I thought that the two files should "overlap" each other and add the second set of attributes to the first one. But when I do upload the 2 files I can only see the first set of attributes. I've deleted the products and tried inverting the files (loading the file #2 first) and -even more strange!- the second set would still not load!! The only way to make EP load the second file is to add in it also the columns v_attribute_options_id_1 1 v_attribute_options_name_1_4 Colore v_attribute_options_name_1_5 Colour Is that normal? I'm a bit afraid, as I think in the end I will have over 30 sets of attributes!! Does it mean that to add the 30th set I have to keep in the files all the 3 essential columns for each of the 29 previous attributes?? Gosh.. hope I was able to explain the problem... is there any way to fix this? If someone needs it I could post the code of my EP file. thanks for any help! Stefano
  11. if you need to see some of the code in the pages, regarding the problems mentioned above, just ask!!
  12. Hi everyone, I have installed CCGV (trad) and it works fine apart from some small problems I'd like to fix. 1) When I send a Gift Voucher I can't redeem it using the link provided in the email (I get an error message saying the code is invalid or has been already redeemed). The code works fine if I input it during the checkout process. 2) The system ALWAYS uses the credits in the gift voucher balance during the checkout of both virtual and non virtual products even when the box "Tick to use Gift Voucher account balance" is not selected. This can be a problem if a customer wants to save the balance for a later time (or use it to send a gift voucher to someone after the purchase). This problem has risen all of a sudden.. (after redeeming some gift vouchers using the code during the checkout process) and now it forces me to use the vouchers' balance to buy new vouchers... :-S anyone has had similar problems? thanks for the help. ciao Stefano
  13. Hi, sorry if I ask something that has already been solved, but browsing through over 100 pages would take too long and I couldn't find anything that could help me using the search engine. so here it is: I have SEO Urls installed but when I switch it on I get an HTTP 404 error on all pages. the links looks something like: http://www.mysite.com/cybermate-p-45.html?...36f2a2f201c039c any clue about what I have to check to make it work? thanks
  14. Anita, before upgrading to version 4 I wanted to know if this new version is able to show the products' code instead of just the name in the admin panel. I have several products with similar or identical name in my catalog, but they are very different products indeed.. so the only way for me to recognize them is by their code. in a previous thread you sent a change to products_options.php file to show the code and not the name. I hope that this improvement has been brought into version 4.0. if no, how can I do that in the new version? thanks Stefano
×
×
  • Create New...