Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attributes page links not working ?


-Jeff-

Recommended Posts

Posted

Now that more than one page of attributes have been added (3 per item, 7 pages worth in total) I find that the page links above the attributes table are not working. This is MS1 and I haven't yet done any customization related to product attributes.

 

Going to /admin/products_attributes.php?attribute_page=6 shows page 1 again even though the url shows products_attributes.php?attribute_page=6 (and 1 is highlighted in red)

 

Anyone seen this before?

Posted

At first I thought it had to do with a particular product causing the glitch, so started again from scratch.

 

Added 10 product attributes, and sure enough the link to page 2 on the products attributes does nothing. URL changes, but page still displays attributes 1-9 and page#1 is red. Next page shows page 2. So script is thinking it's page 1. Really strange.

 

Have a local test install of OSC, but with all different products. Downloaded and overwrote all files in /admin/ directory with files from live server.

 

Local still does not exhibit problem. Live shop does.

 

Any ideas?

 

Where is the MAX_ROW_LISTS_OPTIONS in product_attributes.php being stored or set?

 

Anything else to look for?

Posted
At first I thought it had to do with a particular product causing the glitch, so started again from scratch.

 

Added 10 product attributes, and sure enough the link to page 2 on the products attributes does nothing. URL changes, but page still displays attributes 1-9 and page#1 is red. Next page shows page 2. So script is thinking it's page 1. Really strange.

 

Have a local test install of OSC, but with all different products. Downloaded and overwrote all files in /admin/ directory with files from live server.

 

Local still does not exhibit problem. Live shop does.

 

Any ideas?

 

Where is the MAX_ROW_LISTS_OPTIONS in product_attributes.php being stored or set?

 

Anything else to look for?

Got it.

Once I looked into the product_attributes.php file I started being curious about Max_ROW_LISTS_OPTIONS and searched on that term and found the solution here.

 

Add

$value_page = $_REQUEST['value_page'];

$attribute_page = $_REQUEST['attribute_page'];

 

to the top of /admin/product_attributes.php

 

I'm still curious - is there a way to show 20 or 100 rows per page instead of the default 10? Where is this set?

Posted

Jeff, super glad I found your post, thanks for sharing, as this was driving me nuts! And such a simple thing, too (but isn't that always the way >_< )

 

Anyway, after sticking your fix in I got curious about the other part of your quest as well.

 

I think I found your answer! Look in admin\includes\languages\{your_default_language_folder}\products_attributes.php.

 

You'll find define('MAX_ROW_LISTS_OPTIONS', 10);

 

I found mine on about line 29 of the English version. Change the setting to whatever you want, I got mine set at 25 right now.

 

Just keep in mind that the MAX_ROW_LISTS_OPTIONS param by default controls all three panels on the product_attribute.php (Product Options, Option Values, and Product Attributes) although it would be a simple thing to break each out separately.

 

Thanks again for the post, saved me some work!

 

Got it.

 

Add

$value_page = $_REQUEST['value_page'];

$attribute_page = $_REQUEST['attribute_page'];

 

to the top of /admin/product_attributes.php

 

I'm still curious - is there a way to show 20 or 100 rows per page instead of the default 10? Where is this set?

  • 2 years later...
Posted

Now that more than one page of attributes have been added (3 per item, 7 pages worth in total) I find that the page links above the attributes table are not working. This is MS1 and I haven't yet done any customization related to product attributes.

 

Going to /admin/products_attributes.php?attribute_page=6 shows page 1 again even though the url shows products_attributes.php?attribute_page=6 (and 1 is highlighted in red)

 

Anyone seen this before?

Yes.

Yes. A </form> tag is missing, that is the reaon.

 

To be more precise, in /catalog/admin/products_attributes.php,

Change this:

        <td>
         <form name="attributes" action="<?php echo tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=' . $form_action . '&option_page=' . $option_page . '&value_page=' . $value_page . '&attribute_page=' . $attribute_page); ?>" method="post">
         <table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td colspan="7" class="smallText">

to this

        <td>
<!-- 	form name="attributes" START 1	//-->
         <form name="attributes" action= "<?php echo tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 
              'action=' . $form_action . 
              '&option_page=' . $option_page . 
              '&value_page=' . $value_page . 
              '&attribute_page=' . $attribute_page); ?>" method="post">
         </form>
<!-- 	form name="attributes" END 1	//-->
         <table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td colspan="7" class="smallText">

The essential difference is </form>

The other differences are for readability.

 

Eveline

Archived

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

×
×
  • Create New...