Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by ritesh

  1. Please Help ME i dont know if im doing something wrong here, i copy the update_currency.php file to catalog/admin/ folder and then run http://mydomain.com/catalog/admin/update_currency.php, to update the currency but instead i get this error: *********** Warning: file_get_contents(): URL file-access is disabled in the server configuration in /usr/www/users/adbmar/catalog/admin/update_currencies.php on line 77 Warning: file_get_contents(http://currencysource.com/RSS/ZAR.xml): failed to open stream: no suitable wrapper could be found in /usr/www/users/adbmar/catalog/admin/update_currencies.php on line 77 ********** could i have missed a step please help me
  2. Im not sure if im missing something or is there somewhere else to add a new coumn in the product listing
  3. Please help me, my php knowledge is very poor i tried adding code from the button in the product_info.php but it doesent seem to show a make an offer column on product_listing.php, am i doing something wrong? *********Product_listing.php*********** $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = 'center'; break; case 'PRODUCT_MAKE_AN_OFFER': $lc_text = TABLE_HEADING_OFFER; $lc_align = 'center'; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'center'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_MAKE_AN_OFFER': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(FILENAME_MAKE_AN_OFFER, tep_get_all_get_params()) . '">' . tep_image_button('button_make_an_offer.gif', IMAGE_BUTTON_MAKE_AN_OFFER) . '</a>'; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if ($listing['products_price'] > 0){ *********end*********** This is a copy of the code in my product_info.php that works ***********product_info.php*********** <td class="main" align="right"> <?php if (MAO_ACCEPT_OFFER_DIRECTLY == 'true') { ?> <?php echo '<a href="' . tep_href_link(FILENAME_MAKE_AN_OFFER, tep_get_all_get_params()) . '">' . tep_image_button('button_make_an_offer.gif', IMAGE_BUTTON_MAKE_AN_OFFER) . '</a>'; ?> <?php } ?> </td> *****end******
  4. Im not sure if im missing something or is there somewhere else to add a new coumn in the product listing
  5. Please Help Me ive installed this contribution, but i also have the allprods contribution (AllProducts_V_4.4), the problem im having is that my categories product listing all work fine but my click here to view all products(with image) product listing (which is actually the same page referenced by allprods.php) gives me a quantity of -8? please assist my problem can be found on http://www.adbmarketing.org/catalog This incorrect quantity in result does not show the buy button because i have the contribution no buy button if quantity < 0. where did i go wrong? my php level is poor, but i try
  6. ritesh

    [Contrib] Make An Offer

    is it possible to place the make an offer button in the product listing just like the buy it now button?
  7. ritesh

    Automated Auction Process

    are we the only two having the same problem? i wonder if we are doing something wrong because i tried installing it again word for word on the instructions, auction appears on the website www.adbmarketing.org but since thers nothing im not sure, i get the same error on the admin auction listings. could it be that ebay has changed something?
  8. would it be i dont have header tags installed?
  9. Pleae help me ive installed this wonderful contribution, but i want to make sure there is no buy button on the all products page when the quantity is 0, so i added this contribution to the product_listing.php ************* case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; //start no button if quantity 0 if ( $listing['products_quantity'] > 0 ) { $lc_text = '<a href="'.tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } else { $lc_text = ' ' ; } //end no button if quantity 0 break; *********** as opposed to the normal case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; *********** it works well on my normal categories pages, (buy button not showing when the quantity is 0) but on my all products page i get the wrong quantity all says temporarily out of stock and the buy button is not there www.adbmarketing.org
  10. ritesh

    Automated Auction Process

    Ive had no luck yet, im not sure if it is a bug or what. but ill keep you posted, if you get any answers please let me know
  11. ritesh

    Automated Auction Process

    please help me as i am clueless to this part ive just installed this contribution and myphpadmin says: *********************** Error SQL-query: # phpMyAdmin MySQL-Dump # version 2.5.0-rc2 # http://www.phpmyadmin.net/ (download page) # # Host: localhost # Generation Time: Dec 21, 2003 at 12:58 PM # Server version: 3.23.58 # PHP Version: 4.2.2 # Database : `osCommerce` # -------------------------------------------------------- # # # # Creation: Nov 24, 2003 at 11:16 AM # Last update: Dec 21, 2003 at 12:56 PM # CREATE TABLE `auction_info` ( `auction_config_id` int( 11 ) NOT NULL AUTO_INCREMENT , `auction_config_title` varchar( 64 ) NOT NULL default '', `auction_config_key` varchar( 64 ) NOT NULL default '', `auction_config_value` varchar( 255 ) NOT NULL default '', `auction_config_description` varchar( 255 ) NOT NULL default '', `sort_order` int( 5 ) default NULL , `last_modified` datetime default NULL , `date_added` datetime NOT NULL default '0000-00-00 00:00:00', `use_function` varchar( 255 ) default NULL , `set_function` varchar( 255 ) default NULL , PRIMARY KEY ( `auction_config_id` ) ) TYPE = MYISAM AUTO_INCREMENT =143 MySQL said: #1050 - Table 'auction_info' already exists ************************************** and when i go to my auctions -->auction listings i get an error: ******************************************* Auction Listings Listings Show On Website Action 1054 - Unknown column 'pd.products_title' in 'field list' select p.products_id, pd.products_name, pd.products_title, pd.products_viewed, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from products p, products_description pd, products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = '9999' order by pd.products_name [TEP STOP] ******************* have i broke it? please help urgently
  12. I found on my site my filenames.php didnt make a difference to anything i did instead my application_top.php seemed to be really my filenames.php However i really need to find out howcome my quantity doesnt show on my all products page but shows everywhere else on http://adbmarketing.org/catalog/allprods.php
  13. ritesh

    Contrib Installer

    | | V I tried this and it still gives me a 404 page cannot be found
  14. ritesh

    Contrib Installer

    Thanks this worked i got the page saying installed, i clicked back and contribinstaller is on my menu on the left but it seems when i click the contrib installer inder tools it gives me a 404 page cannot be found error with "http://adbmarketing.org/catalog/admin/FILENAME_CONTRIB_INSTALLER" in the address line. i noticed while working with other contributions they refer to using a file called "/catalog/admin/includes/filenames.php" but mine somehow recognises the "/catalog/admin/includes/application_top.php" instead. is this correct? Do i take the changes contrib installer makes to "filenames.php" and manually add it to "application_top.php"?
  15. ritesh

    Contrib Installer

    This is the coolest system, i tried installing Contrib_Installer_1.0.15 but i cant seem to install it as everytime i do i get the error message: ---------------- Checking conflicts:findreplace #2 There is a conflict in file: admin/includes/boxes/tools.phpOn line 21 start: 21 end: 21 [r][n] 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n] This error message means that CIP (Contrib Installer Package) that you are installing tryes to change lines in file that was changed by another CIP before. If file was changed by hand you will see a message that says "Can't find...". What to do? --------------- How do i fix this as it is a fresh install. I try remove option but it gives me a page cannot be displayed issue. please help someone or direct me to a thread related to this