Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

next previous link


speed2

Recommended Posts

Posted

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. ;)

Posted

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 ');

Posted

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 ');

Posted

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');
?>

Posted

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...

Posted
<?php

includes(DIR_WS_INCLUDES . 'products_next_previous.php');

?>

Should be

<?php
include (DIR_WS_INCLUDES . 'products_next_previous.php');
?>

Posted

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

Posted

Do you have the two buttons, button_previous.gif and button_next.gif in /includes/languages/english/images/buttons/ ?

Posted

I just installed this on a test box. It worked.

Posted

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.

Posted

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

Posted

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.

Posted
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.

  • 2 weeks later...
Posted

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...

  • 7 months later...
Posted

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

Posted
i followed everything you guys said and its still not working!!!!!!!!

 

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.

Posted

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

  • 4 weeks later...
Posted
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???

 

I had the same problem, I changed both to "order product_id desc" and it works fine now.

Posted
I had the same problem, I changed both to "order product_id desc" and it works fine now.

 

 

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...