Jump to content
Sign in to follow this  
smokinguns

SEO URL(form wraps to the next line)

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×