Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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