speed2 Posted April 18, 2004 Posted April 18, 2004 HI guys, I tried to install the next previous module http://www.oscommerce.com/community/contributions,1164 for some reaosn its not working for me. Any pro here? THanks
rseigel Posted April 18, 2004 Posted April 18, 2004 Care to be more specific? What is it doing/not doing? Are there any error messages? Have you followed the install instructions to the letter? What version of OSC are you using? You can't expect answers until you learn how to ask proper questions. ;)
speed2 Posted April 18, 2004 Author Posted April 18, 2004 Hi rseigel, Well Its not working at all, basically this is what I did uploaded "/includes/products_next_previous.php" then I added following lines to product_info.php includes(DIR_WS_INCLUDES . 'products_next_previous.php'); Also added followings to include/language/english.php Add to english.php // previous next product define('PREV_NEXT_PRODUCT', 'Product '); define('PREV_NEXT_FROM', ' from ');
Guest Posted April 18, 2004 Posted April 18, 2004 is this all the instructions states to do or is there more? and what is it you are getting? you have to give more detail, of the error, the lines associated with the errors, etc if you read the instructions fully, this: Also added followings to include/language/english.php Add to english.php // previous next product define('PREV_NEXT_PRODUCT', 'Product '); define('PREV_NEXT_FROM', ' from '); "And finally, add in the approriate langue files the lines: (eg includes/languages/english/product_info.php" define('PREV_NEXT_PRODUCT', 'Product '); define('PREV_NEXT_FROM', ' from ');
speed2 Posted April 18, 2004 Author Posted April 18, 2004 Yes I did everything and I get th following error msg Fatal error: Call to undefined function: includes() in /home/DB/product_info.php on line 149 at line 149 I have <?php includes(DIR_WS_INCLUDES . 'products_next_previous.php'); ?>
nrlatsha Posted April 18, 2004 Posted April 18, 2004 I thought the functions was include(stuff) not includes(stuff) 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
Guest Posted April 18, 2004 Posted April 18, 2004 <?phpincludes(DIR_WS_INCLUDES . 'products_next_previous.php'); ?> Should be <?php include (DIR_WS_INCLUDES . 'products_next_previous.php'); ?>
speed2 Posted April 18, 2004 Author Posted April 18, 2004 hi guys, thanks a lot for your help, I corrected as fl70 advised, however its fixed the error, however I dont' see the previous | Next button or links? Did any one used this moduels? please help
Guest Posted April 18, 2004 Posted April 18, 2004 Do you have the two buttons, button_previous.gif and button_next.gif in /includes/languages/english/images/buttons/ ?
speed2 Posted April 19, 2004 Author Posted April 19, 2004 HI fl70, Yes I have those images! still not working????
♥kymation Posted April 19, 2004 Posted April 19, 2004 You probably put this code <?php include (DIR_WS_INCLUDES . 'products_next_previous.php'); ?> in the wrong place. Line 149 looks too high in the file. My code has a lot of other mods in it, so I can't tell you the exact line number. If you put this code in a section that isn't being displayed then it won't show up. Try moving it around a bit. Regards Jim See my profile for a list of my addons and ways to get support.
Guest Posted April 19, 2004 Posted April 19, 2004 I added it here: <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action="add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php include (DIR_WS_INCLUDES . 'products_next_previous.php');?> <?php
♥kymation Posted April 19, 2004 Posted April 19, 2004 Ok, that should show up at the very top of the page, just below the heading. Have you checked to see that includes/products_next_previous.php exists? If it does, check to see that this is the code file and not the language file. I can't see any other reason for this to not work. Regards Jim See my profile for a list of my addons and ways to get support.
Guest Posted April 19, 2004 Posted April 19, 2004 Ok, that should show up at the very top of the page, just below the heading. Have you checked to see that includes/products_next_previous.php exists? If it does, check to see that this is the code file and not the language file. I can't see any other reason for this to not work. Regards Jim That's mine and working.
speed2 Posted April 24, 2004 Author Posted April 24, 2004 i followed everything you guys said and its still not working!!!!!!!!
nrlatsha Posted May 2, 2004 Posted May 2, 2004 I'm sure you went in to the admin panel and turned this on? 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
PopTheTop Posted December 4, 2004 Posted December 4, 2004 Here is a really GREAT contribution and thanks to all for adding and modifying it! I have a problem... Nothing wrong with the MOD, but something should be changed and I hope to get someone to help me with this. The products on my site are sorted by the item name. The Previous / Next links calls the products by product_id and not the product_name. Therefore, the Previous / Next links do not call the items in the same order as they are listed in the catagories. AND... If you click on the 1st product in the catagory list, when you veir the product info page, the Previous / Next links does not show it as #1, if the product_id is #5 then it will show this... Previous Product 5/23 Next Anyone??? L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand
wheeloftime Posted December 4, 2004 Posted December 4, 2004 i followed everything you guys said and its still not working!!!!!!!! <{POST_SNAPBACK}> Probably to obvious and maybe a stupid answer but have you checked if you have more articles in your category as you have set configuration-max. values-search results in the admin ? That value determines when you get to see the prev/next links not only for searches but also for your category display.
PopTheTop Posted December 5, 2004 Posted December 5, 2004 Here is a really GREAT contribution and thanks to all for adding and modifying it! I have a problem... Nothing wrong with the MOD, but something should be changed and I hope to get someone to help me with this. The products on my site are sorted by the item name. The Previous / Next links calls the products by product_id and not the product_name. Therefore, the Previous / Next links do not call the items in the same order as they are listed in the catagories. AND... If you click on the 1st product in the catagory list, when you veir the product info page, the Previous / Next links does not show it as #1, if the product_id is #5 then it will show this... Previous Product 5/23 Next Anyone??? L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand
WebPixie Posted December 30, 2004 Posted December 30, 2004 Here is a really GREAT contribution and thanks to all for adding and modifying it! I have a problem... Nothing wrong with the MOD, but something should be changed and I hope to get someone to help me with this. The products on my site are sorted by the item name. The Previous / Next links calls the products by product_id and not the product_name. Therefore, the Previous / Next links do not call the items in the same order as they are listed in the catagories. AND... If you click on the 1st product in the catagory list, when you veir the product info page, the Previous / Next links does not show it as #1, if the product_id is #5 then it will show this... Previous Product 5/23 Next Anyone??? <{POST_SNAPBACK}> I had the same problem, I changed both to "order product_id desc" and it works fine now.
PopTheTop Posted December 31, 2004 Posted December 31, 2004 I had the same problem, I changed both to "order product_id desc" and it works fine now. <{POST_SNAPBACK}> Ok, you say you changed both to "order product_id desc" and it works fine now. What did you change? L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand
PopTheTop Posted December 31, 2004 Posted December 31, 2004 I also noted something strange with this MOD... I had it displaying at the bottom next to the ADD TO CART button. But the count was off (ie: Product 3/128). I moved it to the top where the product price was shown (I moved the price display next to the item picture) and now the product count is correct (ie: Product 2/8). Therefore, I just removed the one at the bottom and kept the one at the top. http://www.popthetop.com/catalog/index.php L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand
Recommended Posts
Archived
This topic is now archived and is closed to further replies.