Jump to content

rovshan

Members
  • Content count

    30
  • Joined

  • Last visited

Profile Information

  • Real Name
    rovshan
  1. Is it works with Multi vendor shipping contribution ?
  2. rovshan

    Multi_Vendor_Shipping new thread

    Right way : general.php file is here catalog/admin/includes/functions/general.php I did not find any info about adding some part of code in Admin_Install.txt in this function tep_remove_order() ....so to fix: ************************************************************************ Add in catalog/admin/includes/functions/general.php before tep_db_query("delete from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); this code: tep_db_query("delete from " . TABLE_ORDERS_SHIPPING . " where orders_id = '" . (int)$order_id . "'"); **************************************************************************
  3. rovshan

    Multi_Vendor_Shipping new thread

    BUG....... How to fix delete order information in orders_shipping table ......? when click on delete order button on order.php page in admin here the code which shows the buttons, I can not understand where is placed the code for deleting from date base !? switch ($action) { case 'delete': $heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_ORDER . ''); $contents = array('form' => tep_draw_form('orders', FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . ''); $contents[] = array('text' => '' . tep_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY); $contents[] = array('align' => 'center', 'text' => '' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''); break; Tanks......
  4. rovshan

    Multi_Vendor_Shipping new thread

    ok........ second problem resolved , it was bacause that I installed another mod.... !
  5. rovshan

    Multi_Vendor_Shipping new thread

    Hi, Problems cosolidation after instalation. osCommerce Online Merchant v2.2 Release Candidate 1 installed plus MVS 1.1 installed So.... osCommerce works fine without this module with about 7 shipping modles installed. Some ideas and questions about fixes and bugs: 1. Even if Configuration "Enable Vendor Shipping" setting FALSE we should have to possiblity to use our shop with already standart shipping module installed. Just we have only ONE vendor with vendors_id=1 , like just how it explained in REEDME file here : What this Contribution Does: There is also a configuration setting to turn this whole Contribution off if it is no longer needed. In Admin->Configuration->Shipping/Packaging. But the problem comes exactly from this part of code on checkout_process.php when "Enable Vendor Shipping" setting FALSE: --------------------------------------------------------- //MVS - added insert for new orders_shipping table $shipping_array = $shipping['vendor']; foreach ($shipping_array as $vendors_id => $shipping_data) { $vendors_query = tep_db_query("select vendors_name from " . TABLE_VENDORS . " where vendors_id = '" . (int)$vendors_id . "'" ); $vendors_name = 'Unknown'; if ($vendors = tep_db_fetch_array($vendors_query)) { $vendors_name = $vendors['vendors_name']; } $shipping_method_array = explode ('_', $shipping_data['id']); if ($shipping_method_array[0] == 'fedex1') { $shipping_method = 'Federal Express'; } elseif ($shipping_method_array[0] == 'upsxml') { $shipping_method = 'UPS'; } elseif ($shipping_method_array[0] == 'usps') { $shipping_method = 'USPS'; } else { $shipping_method = $shipping_method_array[0]; } $sql_data_array = array('orders_id' => $insert_id, 'vendors_id' => $vendors_id, 'shipping_module' => $shipping_method, 'shipping_method' => $shipping_data['title'], 'shipping_cost' => $shipping_data['cost'], 'shipping_tax' => $shipping_data['ship_tax'], 'vendors_name' => $vendors_name, 'vendor_order_sent' => 'no' ); tep_db_perform(TABLE_ORDERS_SHIPPING, $sql_data_array); } //MVS End------------------------------- Error: Warning: Invalid argument supplied for foreach() ........ But email was sent to customer and in TABLE_ORDERS_SHIPPING there is the records But vendors_id "0" , should be "1". Without this part of code verything works ok. 2. Finally I created 2 vendors and installed 1 shipping module (ZONES) for each vendor, and created 1 products for each vendor. Problem is that when I buy these products, in TABLE_ORDERS_SHIPPING code registred vendors_id "0" , that is why on account_history_info.php Client can not find details about the product...... missed info about Products Model Tax Price (ex) Total (inc) ...... When i corrected this vendors_id number in datebase it works..... One more time problem come from checkout_process.php... What i did ...... I replaced this: 'vendors_id' => $order->products[$i]['vendors_id'] like that // Update products_ordered (for bestsellers list) tep_db_query("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('%d', $order->products[$i]['qty']) . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); $sql_data_array = array('orders_id' => $insert_id, 'products_id' => tep_get_prid($order->products[$i]['id']), 'products_model' => $order->products[$i]['model'], 'products_name' => $order->products[$i]['name'], 'products_price' => $order->products[$i]['price'], 'final_price' => $order->products[$i]['final_price'], 'products_tax' => $order->products[$i]['tax'], 'products_quantity' => $order->products[$i]['qty'], //MVS start //'vendors_id' => $order->products[$i]['vendors_id'] 'vendors_id' => $vendors_id ); //MVS end tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array); $order_products_id = tep_db_insert_id(); But it records in TABLE_ORDERS_SHIPPING last vendors_id products for each products....... Unfortunatelly I am not very strong in php codding ...... So would be grate if Craig could help us......... Thnks in advance......
  6. QUOTE(sgreiner @ Sep 1 2006, 02:35 AM) Does anyone else have this problem or is it just me? When I open allprods.php I see all my prods as I should. If I click the prod description, I go to the prod page, as it should do. But when I click the manufacturer link, I get the no products found page. The problem is with the link but I cant see where the problem is. Here is a sample of my link when I click the manufacturer: IT IS www.mysite.com/index.php?manufacturers_id= SHOULD BE www.mysite.com/index.php?manufacturers_id=10 I have the same problem with 4.4g and was wondering if someone knows where to change the code? _____________________________ I have the same problem with 4.4g !!!!!!!!!!!!!!!!!!!!!!!!!!!!! help needed.....
  7. Jack, what do you think about adding in Description and Keyword .... 'manufacturers-name' on their pages.... litle bit complicated for me... I am not so good with coding , But give some idea I will try to develope.... thanks
  8. Could be like that .... for manufacturers and subcategories: // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image, manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $images = $image['manufacturers_image']; $cat = $image['manufacturers_name']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $images = $image['categories_image']; $cat = $category['categories_htc_description']; } ?> <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $images, $cat, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> <?php if (tep_not_null($cat)) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><h2><?php echo $cat; ?></h2></td> </tr> <?php } ?> It works......:) thanks
  9. thanks for support..... I found missed line in code..... but steel several questions..... 1. in subcategories on images ALT is all time the same "Lets see what we have here" ..... is it ok!? 2. is it possible to add the same lines <h1> and <h2> in manufactures pages, because it shows nothing and ALT on manufactures images the same all time "Lets see what we have here" !? thanks
  10. To be more clear.... this is Category page html code.... with missed head and image info in BODY ..... but as you see in TITLE, DESCRIPTION and Keywords TAGS infos are visible ! ______________________________ <title>Wines by classifications - osCommerce :</title> <META NAME="Description" Content="Classifications Vins d'Alsace osCommerce : What\'s New Here? - Hardware Software DVD Movies"> <META NAME="Keywords" CONTENT="Wine classifications Alsace - Hardware Software DVD Movies What's New Here?">....... <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><h1></h1></td> <td class="pageHeading" align="right"><img src="images/" border="0" alt="" width="81" height="57"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="center" class="smallText" width="33%" valign="top"><a href="http://vinoline.net/wineshop/classifications-wine-c-22_23.html"><img src="images/red_wine.gif" border="0" alt="Red wine AOC" title=" Red wine AOC " width="81" height="57"><br>Red wine AOC</a></td> ___________________________________ This is the subcategory HTML Code.... it is ok..... <title>Red Wine AOC - osCommerce :</title> <META NAME="Description" Content="Red Wine AOC osCommerce : What\'s New Here? - Hardware Software DVD Movies"> <META NAME="Keywords" CONTENT="Red Wine AOC - Hardware Software DVD Movies What's New Here?">......... !-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><h1>Red Wine AOC</h1></td> <td align="center" class="main"><form name="filter" action="index.php" method="get"><b>Show:</b> <input type="hidden" name="cPath" value="22_23"><input type="hidden" name="sort" value="2a"><select name="filter_id" onchange="this.form.submit()"><option value="" SELECTED>All Manufacturers</option><option value="10">Domaine Chateau Sezui</option><option value="11">Domaine Dezali</option></select></form></td> <td align="right"><img src="images/red_wine.gif" border="0" alt="Let's See What We Have Here" title=" Let's See What We Have Here " width="81" height="57"></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td><h2>Red Wine AOC</h2></td> ____________________________________________ Can not understand......!? where is problem and one more question....... why in IMAGE ALT this text Let's See What We Have Here ..... where it comes from !?
  11. Yes I did it..... during the instalation process.... this is for ald data information.... As I told .... I created absolutely new CATEGORY and filled all requested information ...... and as I mentioned .... all info WAS visible in empty CATEGORY.... Which part of code responsible for that .... I found this one in index.php... <!-- body_text //--> <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> <?php if (tep_not_null($category['categories_htc_description'])) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><h2><?php echo $category['categories_htc_description']; ?></h2></td> </tr> <?php } ?> </table></td> I suugest that problem should be there !??? Why the HEADING INFO visible in <TITLE> tag .... and not on the page...
  12. Hello, I have just installed HeaderTags V2.5.3... I have copied all files ... and mada all nesecary changes.... And there is one BUG... or may be my mistake... still can not find... Problem is: There is no heading titles and image for CATEGORIES .... I mean it is invisible on BODY page <h1> and <h2>... even on top of browser you can see it.... in <title> tag and same time everything is ok with SUBCATEGORIES....... I mentioned one thing: When I added new categories .... all shown ok... IMAGE of CATEGORY and heading titles <h1> and <h2> BUT when I added first subcategory in this category I have got the problem......... you can see here http://www.vinoline.net/wineshop Anybody knows solutions....!? thnks
×