Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bug in my products_attributes.php


Andreas2003

Recommended Posts

Hi there,

 

got a problem.

 

I first got this contribution working, Product Attributes Sort Order v1.0. Was no problem.

 

Then I tried to implement this one too, Products attribute enhancement.

 

The problem was, that both contribs are modifying the products_attributes.php. so I tried to merge them.

To be honest, I dont be able to write in PHP, so it was clear that I got a parsing error.

 

Here I have posted my merged code, with an error in line, where "else // PCA" is stated and I dont know, how to correct it.

 

Please be so kind and help me out :

  // Next
 if ($attribute_page != $num_pages) {
echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'attribute_page=' . $next_attribute_page) . '"> >> </a>';
 else  // PCA
echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'attribute_page=1') . '"> Tout afficher </a>';
 }
?>

 

Many many Thanks in advance,

Kinde regards

Andreas

Link to comment
Share on other sites

Try this:

 

// Next
if ($attribute_page != $num_pages) {
echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'attribute_page=' . $next_attribute_page) . '"> >> </a>';
} else  {
echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'attribute_page=1') . '"> Tout afficher </a>';
}
?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...