chrometweaks.org

How do I renew payment for my domain iPage hosting service?

Click Here To View All Answers...


Quick question... How do I renew payment for my domain iPage hosting service? Looking forward for any answer. Another question... Is there a way to make the shopping cart update, when a customer presses the "checkout" button?.

So that if a customer modifies the quantity, they don't need to press the "update" button before directly checking out. I've installed an alert... but is there a "true" solution? Thanks...

Comments (128)

Hmm... I need to find out myself. I don't know what is the answer to your question. I'll do some investigation and get back to you if I bump into an anything. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

Deja vu all over again..

This is just a theory but what about changing the checkout button to direct to update cart and adding a hidden variable, set if checkout button is clicked. Then for the shopping cart something like this at the top:.

If (isset($HTTP_POST_VARS['hiddenvar']))  tep_redirect(checkout).

I think you get the idea. It's not a perfect fix, but it sounds good in theory...

Comment #2

John: Very true, the idea is so simple. But a solution, is a bit more tricky..

I thought of writing a file to update the quantity before proceeding to checkout everytime (when the checkout button is pushed), but I'm not sure if it'll work..

Todd: Yes, "Deja vu all over again." I'm a bit confused by your theoretical solution. I am not positive if this is what you meant... but this is what I interperted it as: redirect checkout to act like the update button... then create a variable to check if checkout is pressed?.

I'm probably just not understanding what you meant...

Comment #3

Close..

1) Change the 'Checkout' button to do exactly what 'Update Cart' does (which is update, then return to shopping_cart.php.

2) Additionally, add a hidden variable to the 'Checkout' button..

3) In shopping_cart.php, add a redirect at the top that redirects if the hidden variable is set. The redirect will occur before the page even loads, so the customer will not even know they are being redirected anywhere..

Again, this is all just theory and I don't know how the layout of the form, etc might effect the difficulty of it...

Comment #4

Oh, I see what your saying. But, won't this confuse the customer? since they are redirected back to the shopping_cart (if they update the qty)?.

This post has been edited by.

FlyingMonkey.

: 27 August 2004, 18:13..

Comment #5

If it helps at all, I installed the.

Order drop down button in shopping cart.

- this gives you a drop down box to choose quantities, which updates automatically without needing to click the update button...

Comment #6

David: that's a good idea, but when the numbers can vary from zero to hundreds it makes it difficult for the customer to adjust their quantity in a drop down menu. Or in the case, when they want to adjust multiple quantities..

This post has been edited by.

FlyingMonkey.

: 28 August 2004, 23:31..

Comment #7

Possible solution , but in Russian.

Http://faq.my777.biz/index.php?sid=122360&...&id;=160⟨=ru.

Credits to.

Silencer..

Comment #8

Ahh... nice Qihun. haven't tried it yet..

But here's the translation from what... what I can make of it:.

1. Open shopping_cart.php, Find the following code:.

<?php echo '<a href="' ..

Tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') ..

'">'tep_image_button('button_checkout.gif',.

IMAGE_BUTTON_CHECKOUT)'</a>'; ?>.

Hmm... (replace with?):.

<?php echo tep_image_submit('button_checkout.gif',.

IMAGE_BUTTON_CHECKOUT, 'name="checkout"'); ?>.

2. Open /includes/application_top.php, Find the following code:.

Switch ($HTTP_GET_VARS['action']) {.

// customer wants to update the product quantity in their shopping cart.

Case 'update_product' :.

In this section of code at the bottom, insert the follow code before the tep_redirect and the break statement..

If (isset($HTTP_POST_VARS['checkout_x'])) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '',.

'SSL'));.

Break;.

}.

Not sure, since I haven't tested it yet. but shouldn't the 'name="checkout"' be 'name="checkout_x"'?.

I'm pretty sleepy, I had two hours last nite a presentation today. but I think the code says everytime checkout is pressed update the cart, BUT include a bit of extra information to inform the update shopping code that this is a checkout and appropriately redirect to checkout. i'll give it a whirl soon, and let everyone know how this works out... unless someone beats me to it..

This post has been edited by.

FlyingMonkey.

: 01 September 2004, 09:49..

Comment #9

Currently, updating redirects back to the cart anyway. In this case, it would do only if 'Update' was clicked. If Checkout was clicked and it found the hidden variable, it would hit the cart page, then redirect to checkout. The customer would never even see the cart in this case though b/c the redirect is performed before the page loads..

It looks like the contribution bit you pasted above will do the same thing, assuming it is complete and working...

Comment #10

Ahh... I missed that last step you posted. yeah, both solutions in theory should work. Redirecting from application top like from that russian example may be a bit faster...

Comment #11

The code by Silencer works great!.

I'm just confused with $HTTP_POST_VARS could anyone explain why this works?.

The name is sent as "checkout" in:.

<?php echo tep_image_submit('button_checkout.gif', IMAGE_BUTTON_CHECKOUT,.

'name="checkout"'.

); ?>.

But code for the $HTTP_POST_VARS check is:.

If (isset($HTTP_POST_VARS[.

'checkout_x'.

])) {.

'checkout_x' isn't used anywhere else in OSC.....

This post has been edited by.

FlyingMonkey.

: 01 September 2004, 23:52..

Comment #12

Is there a way to make the shopping cart update, when a customer presses the "checkout" button?.

So that if a customer modifies the quantity, they don't need to press the "update" button before directly checking out. I've installed an alert... but is there a "true" solution? Thanks...

Comment #13

That may be a tough one, because prior to going to the checkout, the quantities are stored in memory..

If someone changes the qty and then presses update, it is updating the amount stored in memory, you may be able to get it to check to see if anything is changed prior to going thru to the checkout process, and if it is, do the automatic update then go, else if not changed (you will have to do a comparison of a keyboard stroke, etc) then just go to checkout process..

Comment #14


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