Help - Search - Members - Calendar
Full Version: SEO URL problem
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Contribution Development
mitchk
I have recently installed this contribution and find it adjusts the urls as it should.

the problem I have though is that it seems to break the buy now button in the product_info page

If I buy the product from the index page it adds it to the cart just fine but clicking on the product and then selecting to buy from the descroption page it just sits there in a sort of loop ?

any suggestions ?

thanks

mitch
satish
instead of buy now sending the action and product id thru get send it thru post.

Satish
mitchk
thankyou for the help Satish - they are already post if this is what you meant - I should have made myself clearer I meant the 'add to cart button' on the products_info page which uses the 'add_product' case as below :-

case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;

the part in the products_info page that calls this is :-

<?php echo tep_draw_form('cart_quantity', tep_href_link("index.php", tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

before I added the SEO urls contrib when you clicked on the 'add to cart button' on the products_info page it would add the product to the cart and return you to the position previous i.e specials page or new products just like say a back button.

now it just stays in a loop a does nothing ?

If I change the 'action=add_product' to 'action=buy_now' on the product_info page it does work but then returns me completely back to the index rather then back to where I selected the product

sorry - does this make sense ?

thanks again

mitch
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.