Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by c1badmofo

  1. I am trying to configure product notifications to work with slave products.


    What I need to do, is take the products_id from $listing['products_id'] from master_listing.php page




    Then in the application_top.php


    case 'notify' : if (tep_session_is_registered('customer_id')) {

    if (isset($HTTP_GET_VARS['products_id'])) {

    $notify = $HTTP_GET_VARS['products_id'];

    } elseif (isset($HTTP_GET_VARS['notify'])) {

    $notify = $HTTP_GET_VARS['notify'];

    } elseif (isset($HTTP_POST_VARS['notify'])) {

    $notify = $HTTP_POST_VARS['notify'];

    } else {

    tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify'))));


    if (!is_array($notify)) $notify = array($notify);

    for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

    $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'");

    $check = tep_db_fetch_array($check_query);

    if ($check['count'] < 1) {




    tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . slave_id . "', '" . $customer_id . "', now())");



    tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())");




    tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify'))));

    } else {



    I guess the simple answer I am asking... how do I get the variable $listing['products_id'] (master_listing.php), which is the product_id of the slave to be called/read on the application_top.php page



  2. Screen shots will vary depending on how a person is using the contribution. You can see how we've used it at www dot MountainMeadowHerbs dot com. We use the master product as the description and the slave products for the various different sizes available (each size has it's own model number so we couldn't just use the attributes for the different sizes).


    Other people use it differently and some have master products that are available for purchase as well as the slaves.



    Thanks,.... Nice site, can I ask what 'products Tab' contrib are you using?

  3. I was wonder if someone could tell me what needs to be changed so I can have the picture image and price center align and the description text left align. I know how to change the alignment of all of them, but I would like to center only picture and price, and left align text. It seems the code for this is located in /includes/modules/featured.php around line 140. but I dont know how to modify it correctly.



  4. I have installed Discount Coupon Codes 3.34 - xinxi, all is working fine. I do have one change I would like to make if someone could guide me in the right direction. I have added free shipping to products based on the categories they are, which works correctly deducting the shipping cost. However, if you add a product from a free shipping categories and a product that is excluded from free shipping the full amount is still deducted. Is there a way to only deduct the shipping amount from the products with free shipping?

  5. As mentioned previously, if everything else is working, it is something in your shop causing the problem. There isn't a default.php file in a standard oscommerce shop and since that would work as your home page and you are redirecting it, I suspect that is where the problem lies.


    How would one go about fixing this problem? Is there a minor change I could make somewhere and keep the htaccess the way it is... redirecting default.php to the main site. and have this contribution work?

  6. The Recently Viewed Addon uses a session variable to store data. The box will disappear if session is lost. This is a serious problem with your store, since the customer's cart will also be lost if session is lost. Try adding something to the cart, without logging in, and see if the cart box disappears at the same time as the Recently Viewed box. If it does, the problem is loss of session. The usual cause of this is links that do not carry session, i.e. links that are not made with the osC tep_href_link() function.





    No, I can add products that I viewed to my shopping not logged in, and they are not lost, but my Recently View box still disappears. As I click on other products, and add them to my shopping cart, the Recently View box will sometimes disappear, then reappear when view another product.

  7. The contribution is working fine. You can see that if you click on one of your products in the new products box. My guess is that there is something in your shops code that is causing the redirect to the home page for the categories. This was discussed just recently. Although I've only seen code like that in templates so I'm surprised that it may be in your shop, which doesn't appear to be a template. You should check the header.php, footer.php, left_column.php and boxes/categories.php for any code that is causing a redirect.

    I am having the same problem where only my categories are not working correctly and redirecting to the homepage. Individual products displays the links correctly. I have also noticed when I use diagnostic code ?profile=on, it displays




    [sTANDARD_URLS] => Array


    [PRODUCTS] => Array



    But there is no [CATEGORIES] => Array , it is missing


    Using: Ultimate SEO 2-2.2d-9


    htaccess file located in catalog/ directory looks like:


    Options +FollowSymLinks


    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^myexample.com [NC]

    RewriteRule ^(.*)$ http://www.myexample.com/$1'>http://www.myexample.com/$1 [L,R=301]



    DirectoryIndex index.php index.php3 index.phtml index.cgi index.shtml index.html index.htm index.wml index.pl index.cgi index.php4 index.phtml index.swf default.htm default.php default.html Default.htm Default.html main.htm main.html


    php_flag display_errors off


    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*default\.php\ HTTP/

    RewriteRule ^(([^/]+/)*)default\.php$ http://www.myexample.com/ [R=301,L]


    RewriteBase /catalog/


    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}


    In addition, I have checked the files above u mentioned for redirects, in the code, but I find nothing.

  8. I will describe the problem the best I can. I have successfully installed Recently Viewed 2.0, all seems to be working well for the most part, however, while viewing the site, not logged in, sometimes the recently view box will disappear when clicking on products, and/or it will not record all products viewed, this only seems to occur when a user is not logged in. If a user is logged in, everything functions normally it seems... My products_info.php is cached, to less server load. Any one have a similar problem, or know a fix for this?

  9. To do all of this you need just to modify a query in catalog\includes\modules\xsell_products.php.

    1. Find in the query

    order by sort_order asc limit " . MAX_DISPLAY_XSELL);

    and replace with

    order by rand() limit " . MAX_DISPLAY_XSELL);

    This is not very good, because such construction need a lot of memory, it is slow. But this is the fastest way.

    Oh! Don't forget to disable cache! Or your xsell will stay the same for a couple of time.


    2. If products not in stock AND their status set to 0 (false), than they doesn't display. But if you don't disable such products, like me, you need to insert

    " and p.products_quantity > 0 "

    without quotes, but surrounding with spaces just before

    order by sort_order asc limit " . MAX_DISPLAY_XSELL);

    in the same query as above.


    Not tested, seems will work. As if having problems.


    Thank you, it works.


    You did mention that I would have to disable cache, but I currently need to have cache on to cut down on server load. Is there a way to leave caching on, but have the 'we also recommend' box of items not be cached and change everytime the page is re-called

  10. I have install XSell version 2.7.2, but have a couple of changes I would like to make, if they are easy to do, and someone could suggest what would have to be changed in order for it to work. How can I randomize the results displayed, so the same products are not displayed every time. In addition, how can I only display item currently in-stock.

  11. I install Dynamic Sitemap v 2.0 by kit

    I see that it is based on MS2, but I am using 2.2rc2a

    Does this sitemap work on 2.2rc2a?

    I have read from page 20 and up and can't seem to find answer to my problem.


    I have two errors that are shown below:

    Any help would be appreciated.


    Site Map


    data = array(); while ($categories = tep_db_fetch_array($categories_query)) { $this->data[$categories['parent_id']][$categories['categories_id']] = array('name' => $categories['categories_name'], 'count' => 0);} } //end class osC_CategoryTree function buildBranch($parent_id, $level = 0) { $result = $this->parent_group_start_string; //starts the

    tag if (isset($this->data[$parent_id])) { foreach ($this->data[$parent_id] as $category_id => $category) { $category_link = $category_id; $result .= $this->child_start_string; // prints

    if (isset($this->data[$category_id])) {$result .= $this->parent_start_string;} //prints nothing if ($level == 0) {$result .= $this->root_start_string;} //prints nothing $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . ''; $result .= $category['name']; $result .= ''; if ($level == 0) {$result .= $this->root_end_string;} //prints nothing if (isset($this->data[$category_id])) {$result .= $this->parent_end_string;} //prints

    if (isset($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) { $result .= $this->buildBranch($category_id, $level+1);} $result .= $this->child_end_string; //prints }// end foreach } // end if (isset $result .= $this->parent_group_end_string; // return $result; } //end function function buildTree() { return $this->buildBranch($this->root_category_id);}} ?>

    Fatal error: Class 'osC_CategoryTree' not found in C:\Program Files\EasyPHP\www\catalog\dynamic_sitemap.php on line 58


    And in Admin panel when I click on "sitemap" I receive the following message:









    ('.( $exclude['exclude_type'] == 1 ? TEXT_ALL : TEXT_UNREG ).') '.TEXT_INCLUDE.'

    '; } ?>


    ('.( $exclude['exclude_type'] == 1 ? TEXT_ALL : TEXT_UNREG ).') '.TEXT_INCLUDE.'

    '; } ?>

  12. I have currently installed the lastest version of Order Editor v2.8.5, and I like to thank everyone for there contributions.


    The question I have is on the order_editor.php.


    If I click on "Add a Product" to the existing order, the order total weight is updated and recalculated correctly, but the total for the shipping weight has not change nor updated based on the new total weight.


    Is there a simple fix for this?