
Originally Posted by
ropu
Angel, you should do two things.
First disable the default checkout button,.
in default installation includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
line 132
Then in the login page you should also add a redirect to index.php?main_page=shopping_cart this will avoid buyer to enter regular checkout through there.
im pretty sure thats all you need to do.
you can also remove from googlecheckout/gcheckout.php line 521 this code
HTML Code:
<td align="right" valign="middle" class = "main">
<B><?php echo MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION ?> </B>
</td>
so
- Or use - string is not shown
ropu
Hello,
I'm hoping someone can help me...
I've done the above to effectively cut out the checkout_shipping page of the cart to force Googlecheckout to be my only viable payment option.
HOWEVER, my cart offers group discounts and the discounts are only applied IF the user is logged into the shopping cart first. So, if *user* buys £1000 worth of merchandise, *user* gets a 2% discount which has been confirmed to be working in Google Checkout with all the relevant info passing back to the shopping cart. However, if *guest* puts same items into cart and then clicks on the Google checkout, *guest* is charged full rates.
What I'd like to do is wrap the Google checkout button in an if statement and here is where my knowledge and ability conflict.
I want something like:
Code:
<if> logged in
Then Google Checkout
<else> login / register </else>
</if>
Hope that makes sense, basically I only want the cart to be passed to Google if user has already logged into their account. If not logged in, checking out first takes them to login screen then on to google.
In an ideal world this will be transparent so it'll either checkout if logged in or redirect to login/register page then to checkout... But if not possible to pass from login to google, I can live with a "login to checkout button" and then once a session is validated, the "login to checkout button" is replaced with a "check out with Google button".
Thank you in advance for any help/advice in this matter!
Bookmarks