Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SEO URL(form wraps to the next line)


smokinguns

Recommended Posts

Hey all,

I have enabled SEO Urls in the admin section and the URL Type is set to "Rewrite". I noticed that when I click on the "Add to cart" button for some of the products , the url breaks and "page cant be found" message is displayed, although the item does show up in the shopping cart. I viewed the source of the page and saw that the form tag wraps to the next line like this

 <form name="cart_quantity" action="http://mydomain.com/product-demo
-p-718.html?action=add_product" method="post">

It doesnt happen everytime, but only for some products. Has anybody encountered this before? I tried adding the 'nowrap' attribute to the td tag that contains the form, but to no avail.

This is the code

print '<td width="100%" valign="top" nowrap>'. tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).';
print '</td>';

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