Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Jonojamesmac

Archived
  • Posts

    145
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jonojamesmac

  1. Try and replace <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?> with <a href="<? echo tep_href_link("products_info.php","action=buy_now&products_id=".$p_id).'">'.$submit_button; ?></a>
  2. You have missed a step in your installation instructions which mentions adding code into filenames.php and the english.php language file. Double check you've done everything.
  3. In your root directory, create a file called robots.txt in that put the following: User-Agent: * Disallow: / This will block all robots from indexing your website.
  4. in product_listing.php change if($products_new['products_quantity'] <= 0 || $products_new['products_status']==0) { to if($listing['products_quantity'] <= 0 || $listing['products_status']==0) { This should change all your listings except possibly your front page, what are the products that appear on the frontpage? New? Upcoming? or random?
  5. Did you add into product_listing.php? Can you paste your index code here?
  6. add the bits on this line $select_str = "select distinct " . $select_column_list . " m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price "; you already made the other changes in product_listing.php if not, find includes/modules/product_listing.php and make the other changes there. The variable in product_listing.php is $listing['products_status'] and $listing['products_quantity'] For your index file, paste it here and let me see.
  7. if($products_new['products_quantity'] <= 0 || $products_new['products_status']==0) { change to if($specials['products_quantity'] <= 0 || $specials['products_status']==0) { I did explain above your post, but you may not have seen it.
  8. You'll need to change the products_new parts for the different files. Like i think specials.php is specials and products_info.php is product_info . Remember to add the bits to the queries.
  9. Try changing if($product_info['products_quantity'] <= 0 || $product_info['products_status']==0) { to if($products_new['products_quantity'] <= 0 || $products_new['products_status']==0) { you will also need to add the code to pull the info its basing the button off from the database change $products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name"; to $products_new_query_raw = "select p.products_id, p.products_status, p.products_quantity, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name"; all that this is doing is adding p.products_status, p.products_quantity to the query. Just a hunch, may or may not fix it
  10. paste your products_info.php here and also others linking in, imagemagic.php etc
  11. you just want to limit the length of the description? if so where echo $desc; use echo substr($desc, 0, 30); that will limit the output string by 30 characters, set to what you want.
  12. change the file permissions, to read and execute aka chmod the files to 775 or so..
  13. You need to browse to the directory you uploaded it to.
  14. You need to fill in your database connection info.. you can find that in your shop configuration files at includes/configure.php
  15. can you see if the { on the bold line is closed anywhere? That or you could try adding an extra } above //OTF Contrib Ends
  16. These instructions in the instructions notepad file included in the package should fix those. 3b. Open admin/includes/languages/english.php Find: ?> Add Before: //Defect Manager 1.3 define('BOX_HEADING_DEFECTS', 'Defect Manager'); define('BOX_DEFECTS', 'Defects'); define('BOX_DEFECTS_PRIORITY', 'Defects Priority'); define('BOX_DEFECTS_SEVERITY', 'Defects Severity'); define('BOX_DEFECTS_STATUS', 'Defects Status'); define('BOX_DEFECTS_USERS', 'Defects Users'); define('IMAGE_NEW_DEFECT', 'New Defect'); define('IMAGE_NEW_DEFECT_PRIORITY', 'New Priority'); define('IMAGE_NEW_DEFECT_SEVERITY', 'New Severity'); define('IMAGE_NEW_DEFECT_STATUS', 'New Status'); define('IMAGE_NEW_DEFECT_USER', 'New User'); define('TEXT_DISPLAY_NUMBER_OF_DEFECTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> defects)'); define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_PRIORITY', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> priorities)'); define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_SEVERITY', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> severities)'); define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_STATUS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> statuses)'); define('TEXT_DISPLAY_NUMBER_OF_DEFECTS_USERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> users)'); //Defect Manager 1.3 3c. Open admin/includes/filenames.php Find: ?> Add Before: //Defect Manager 1.3 define('FILENAME_DEFECTS', 'defects.php'); define('FILENAME_DEFECTS_USERS', 'defects_users.php'); define('FILENAME_DEFECTS_PRIORITY', 'defects_priority.php'); define('FILENAME_DEFECTS_SEVERITY', 'defects_severity.php'); define('FILENAME_DEFECTS_STATUS', 'defects_status.php'); define('FILENAME_DEFECTS_CSV', 'defects_csv.php'); //Defect Manager 1.3
  17. includes/main_categories.php remove from line 178 <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $categories['categories_name'] . '</a>
  18. Most contributions contain installation instructions, head over to contributions page unzip it and follow the instructions included. I'm afraid that for someone to do it for you would require access to your files and possibly server. Possibly a cost may be involved.
  19. The function to show categories is contained in 2 files. Remove one and it will work, which one is your choice :P
  20. Complete the instructions, then see what errors occur then.
  21. Like this? http://addons.oscommerce.com/info/3737
  22. There are many modules around on the contributions page for this kind of thing... For the £20.00 off over £150 you could try using this contribution. http://addons.oscommerce.com/info/2990
  23. has TABLE_HEADERTAGS been defined in include/database_tables.php? like so define('TABLE_HEADERTAGS_DEFAULT', 'headertags_default'); define('TABLE_HEADERTAGS', 'headertags');
×
×
  • Create New...