chrometweaks.org

What is the best free iPage web hosting and creating website?

Click Here To View All Answers...


My question is What is the best free iPage web hosting and creating website? Hoping for any answer or 2. My other question... Hi,.

I am unable to add products to the cart from the product_info page, but they will add if I use the product_listing buy now button. This happens only on my remote server my local works just fine. Could this be session related? You can see what I am talking about.

Here.

...

Comments (58)

I'm stumped. I'm not so sure what is the answer. I'll do some poking around and get back to you if I got an anything. You should email the people at iPage as they probably could assist you..

Comment #1

Thanks for the response..

Everything works correctly on my local server. The only difference I see is on my local server I get a session id whenever I do anything in the store. On the remote server the session id doesn't appear to be getting assigned..

I really don't care for the quantity dropdown on product_info.php, but if I take out the code it doesn't send the product to my cart. There's got to be another piece of code that was changed to put in the dropdown box, but I can't seem to find it..

Thanks for your help.

Tim..

Comment #2

Solved,.

It was Master Products related bug. In application_top.php I changed:.

Case 'add_slave' :    .

                           .

 while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) {.

                                if (substr($key,0,11) == "Qty_ProdId_") {.

                                $prodId = substr($key,11);.

                                $qty = $val;.

                                if ($qty <= 0 ) continue;.

                                $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($qty), $HTTP_POST_VARS['id']);.

                               }.

                             }.

                             tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));.

                             break;.

     //Master Products EOF.

To >.

Case 'add_slave' :    .

                             reset($HTTP_POST_VARS);.

                while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) {.

                                if (substr($key,0,11) == "Qty_ProdId_") {.

                                $prodId = substr($key,11);.

                                $qty = $val;.

                                if ($qty <= 0 ) continue;.

                                $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($qty), $HTTP_POST_VARS['id']);.

                               }.

                             }.

                             tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));.

                             break;.

     //Master Products EOF.

Maybe this will help someone..

Thanks for your help.

Tim..

Comment #3

I've got a similar problem in that I have a remote iPage site that has the "Buy Now" button which submits a form to the iPage site where the cart actually lives. The code is:.

<form name="cart_quantity" action="http://www.thesite.com/catalog/product_info.php?cPath=29&action=add_product&products_id=<?=$unit[products_id]?>" method="post">.

<input type="hidden" name="products_id" value="<?=$unit[products_id]?>">.

<input type="image" src="/imgs/buynow.gif" alt="Buy Now" title="Buy Now"></form>.

This is a mirror copy of the format used when I looked at the source code on the products page on the cart site. The variables from the array exist and are printed properly. But for some reason it won't add the product to the cart. TIA for any advice, direction, etc.....

Comment #4

Yeegads... never mind. I found the issue. I changed the code to this:.

<form name="cart_quantity" action="http://www.thesite.com/catalog/product_info.php?cPath=21&action=add_product&products_id=<?=$unit[products_id]?>" method="post">.

<input type="hidden" name="products_id" value="<?=$unit[products_id]?>">.

<input type="image" src="/imgs/buynow.gif" alt="Buy Now" title="Buy Now">        </form>.

Works fine...

Comment #5

Hi,.

I am unable to add products to the cart from the product_info page, but they will add if I use the product_listing buy now button. This happens only on my remote server my local works just fine. Could this be session related? You can see what I am talking about.

Here.

...

Comment #6

Is your quantity drop down box working correctly? Looks like it might not be passing a quantity correctly and therefore the shopping cart page doesn't pick it up...

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.