Jump to content

h3rB

Members
  • Content count

    58
  • Joined

  • Last visited

Everything posted by h3rB

  1. Well I click on catagory. Click on "Assembly" (the name of the CATAGORY). The status for this catagory it says is "Status: Inactive". I click on the edit button. I click the drop-down box and choose "Set all Active". I then click the "Save" button. It then takes me back to the original catagories.php page like normal with the message at the top "Set 3 Products In To Active". I then click on the catagory to see if the status has change and it still says "Status: Inactive". Hope i got my point across now, not been too clear sorry.
  2. yep just done the /admin/catagories.php for the 3rd time. When i click the drop down box and hit "Set all Active" it says at the top in the success message bar: " Set 3 Products In To Active".
  3. Is it anything to do with this registers_global?
  4. ok just checked through it and they all look ok. says at the bottom: "If you have it, In catalog/includes/boxes/dm_categories.php" I dont have that so not sure if thats a problem. Also think its anything to do with this: "There may other instances I have missed, the genereral Rule is: If there is a general tep_db_query including TABLE_CATEGORIES add the filter: and categories_status = 1 If you applied the sql correctly all your existing categories should default to 'active'." I'm using STS BTW.
  5. h3rB

    PC Pro Creator

    dont really want to give out because its not really released... why?
  6. h3rB

    PC Pro Creator

    Heres a image i did to show the errors im having.. forgot to mention that the height of the popup box is too small when there aint many products in there...
  7. h3rB

    [Contribution] STS v4

    Ok I tryed and basicly the edits that i did for the product_info.php wont work in the sts_inc one cause they are totaly different. Here is what it says... -------------------------------------------------- Step 4: OPEN catalog/product_info.php Please Note: Since there are so many contributions and changes to the product_info.php file, I have included a copy of my file for you to view and compare which is highly modified. To see what my file will do, go to my site and check it out. LOOK for: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> Change to: <?php // BEGIN PopTheTop Product Info Reviews ?> <TD ALIGN="left" VALIGN="middle" CLASS="main"> <?php if (MAX_REVIEWS_IN_PRODUCT_INFO == '0') { echo tep_draw_separator('pixel_trans.gif', '100', '2') . '<br><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a> '; } if (tep_session_is_registered('customer_id')) { $product_notification_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'"); $check = tep_db_fetch_array($product_notification_query); $notification_exists = (($check['count'] > 0) ? true : false); } else { $notification_exists = false; } if ($notification_exists == true) { echo '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . tep_image_button('button_remove_notifications.gif', IMAGE_BUTTON_REMOVE_NOTIFICATIONS) . '</a>'; } else { echo '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . tep_image_button('button_notifications.gif', IMAGE_BUTTON_NOTIFICATIONS) . '</a>'; } ?> </TD> <TD ALIGN="right" VALIGN="middle" CLASS="main"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'width="120" height="22"'); ?></TD> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); $reviews_query_average = tep_db_query("select (avg(reviews_rating)) as average_rating from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews_average = tep_db_fetch_array($reviews_query_average); $reveiws_stars = $reviews_average['average_rating']; $reveiws_rating = number_format($reveiws_stars,0); ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '45'); ?></td> </tr> <?php if (MAX_REVIEWS_IN_PRODUCT_INFO > 0) { $reviews_query = tep_db_query("select r.reviews_id, rd.reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and rd.reviews_id = r.reviews_id and rd.languages_id = '" . $languages_id . "' order by r.reviews_id DESC"); $num_rows = tep_db_num_rows($reviews_query); ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageReviewHeading" valign="top"><?php echo BOX_HEADING_REVIEWS; ?></td> </tr> </table> </td> </tr> <?php if ($num_rows > 0) { $row = 0; while (($reviews_values = tep_db_fetch_array($reviews_query)) && ($row < MAX_REVIEWS_IN_PRODUCT_INFO)) { $row++; $date_added = tep_date_short($reviews_values['date_added']); // Write product reviews ?> <?php // END PopTheTop Product Info Reviews ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td valign="top" class="main"><?php echo '<FONT COLOR="#006699"><b>Submited By:</b> ' . $reviews_values['customers_name'] . ' on <span class="smallText">' . $date_added . '</span></font><br>' . tep_break_string(nl2br(tep_output_string_protected($reviews_values['reviews_text'])), 60, '-<br>') . '<br><br>' . sprintf(tep_image(DIR_WS_IMAGES . 'stars_' . $reviews_values['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews_values['reviews_rating']))) ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <?php } // END while (($reviews_values... ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <TD ALIGN="left" VALIGN="middle" CLASS="main"> <?php if ($num_rows > MAX_REVIEWS_IN_PRODUCT_INFO) { echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)) . '">' . tep_image_button('button_more_reviews.gif', IMAGE_BUTTON_MORE_REVIEWS) . '</a></td>'; echo ' <TD ALIGN="right" VALIGN="middle" CLASS="main"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, substr(tep_get_all_get_params(), 0, -1)) . '">' . tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a></td>'; echo ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>'; } else { echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, substr(tep_get_all_get_params(), 0, -1)) . '">' . tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a></td>'; } ?> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td> </tr> <?php if ($reviews['count'] > 0) { ?> <tr> <td class="smallText"> <table width="100%"> <tr> <td align="left" class="smallText"><FONT COLOR="#006699"><?php echo TEXT_REVIEW_AVERAGE . ': ' . tep_image(DIR_WS_IMAGES . 'stars_' . $reveiws_rating . '.gif', '', 60, 12, 'align=absmiddle') . '</a>'; ?></font></td> <td align="right" class="smallText"><FONT COLOR="#006699"><?php echo sprintf(TEXT_DISPLAY_NUMBER_OF_REVIEWS_PRODUCT_INFO, $row, $num_rows); ?></font></td> </tr> </table> </td> </tr> <?php } else { ?> <tr> <td class="smallText"><FONT COLOR="#006699"><?php echo sprintf(TEXT_DISPLAY_NUMBER_OF_REVIEWS_PRODUCT_INFO, $row, $num_rows); ?></font></td> </tr> <?php } ?> <?php } else { // if ($num_rows < 0)... ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td valign="top" class="main"><?php echo TEXT_NO_REVIEWS . '<br><br> <a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, substr(tep_get_all_get_params(), 0, -1)) . '">' . tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a>'; ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <?php } } // END PopTheTop Product Info Reviews ?> Could you tell me how to implament that into sts please. Also the rest of the installation was only abit of database and language files so thats it really.
  8. h3rB

    [Contribution] STS v4

    Ok thanks mate very much. Willl have to have a play around tonight see how it goes.
  9. Basicly like on here.... http://www.wired2fire.co.uk/product_info.p...oducts_id=20410 When you click description, specification, our view it changes the information. So kind alike a tab. Just wondering how I could do that on mine but exept with "Description" "Specification" (maybe) and "Reviews". Then on the reviews one to show the reviews. Thanks!
  10. h3rB

    [Contribution] STS v4

    ok but then to include it in the template... how would i make a tag to display it. cause even if i installed it the reviews wouldnt be on the STS template. thanks for help so far very much though your the best mate, i respect your effots.
  11. h3rB

    PC Pro Creator

    anyway to convert this to load abit quicker when you click on stuff. or possible a different layout? maybe even radio buttons and a list. thanks!
  12. h3rB

    [Contribution] STS v4

    Yeah I looked in the manual and there is no placeholder to put reviews on the product page.
  13. h3rB

    [Contribution] STS v4

    when i added $reviews$ it just says "revies: 1"
  14. h3rB

    [Contribution] STS v4

    how can I display reviews from the reviews page on the products pages. also how can i change the layout of the contents on the review page? cheers babe x
  15. what i was asking is how I can add the reviews to the page when you click the tab. and if there are no reviews. it says WRite review... blahblah
  16. Just going to use this: http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm So I'm wanting product description and reviews.. I just need to know how I can show the reviews in that section. I'm using oscommerce v 2.2 and STS 4
  17. And another. Warning: require(includes/languages/english/ccc.php) [function.require]: failed to open stream: No such file or directory in /public_html/shop/admin/pending.php on line 14 Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/ccc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /shop/admin/pending.php on line 14
  18. Hey, I get this error after a installation... I'm using STS4 also. Warning: require(includes/languages/english/ccc.php) [function.require]: failed to open stream: No such file or directory in /public_html/shop/admin/ccc_config.php on line 15 Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/ccc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/shop/admin/ccc_config.php on line 15 All help appreciated!
×