We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1535
    • 84 Posts
    Do you confirm that gCart do not allow European merchant?

    Actually, Google supports UK merchants in addition to US, so my post was not entirely accurate. No other countries are supported at this time for merchants.
    See here for more info:
    http://checkout.google.com/support/sell/bin/answer.py?answer=42871&ctx=sibling

    Using gCart with Paypal should work in italy as well as most of the world.

    Cheers,

    Andreas
      • 5004
      • 62 Posts
      Ok thank you, I’ll try to use gCart with Paypal.
      Ciao smiley
        • 31628
        • 8 Posts
        I’ve just added gCart to one of my sites (under test/sandbox) for showing to the customer. Bit of playing around with the code especially with the addition of Paypal - postage/shipping kept simple.

        http://gtic.glastonburyweb.co.uk/
          • 31628
          • 8 Posts
          Just added AJAX function to ’my’ gCart at

          http://gtic.glastonburyweb.co.uk

          I am still testing/tweaking/enhancing (i’m yet to consider things like handling non-Javascript enabled browsers)

          smiley
            • 5004
            • 62 Posts
            Interesting example thanks smiley

            I have installed gCart following the wiki and AndreasT suggestions but my cart is still empty...
            Any idea?
              • 31628
              • 8 Posts
              hi

              can you provide the URL so I can see how the page is coded - it maybe at the backend that is the issue but might as well start here.

              richard
                • 5004
                • 62 Posts
                Hi Richard,
                you can see the page at this address http://www.errekappa.net/5.html and this is the template

                <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
                   "http://www.w3.org/TR/html4/strict.dtd">
                <html lang="it">
                <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                <title>[(site_name)] | [*pagetitle*]</title>
                
                <!-- Framework CSS -->
                <link rel="stylesheet" href="assets/templates/blueprint/screen.css" type="text/css" media="screen, projection">
                <link rel="stylesheet" href="assets/templates/blueprint/print.css" type="text/css" media="print">
                <!--[if IE]><link rel="stylesheet" href="assets/templates/blueprint/lib/ie.css" type="text/css" media="screen, projection"><![endif]-->
                <link rel="stylesheet" href="assets/templates/blueprint/plugins/fancy-type/fancy-type.css" type="text/css" media="screen, projection">
                	
                </head>
                <body>
                <div class="supercontainer">  
                <div class="container">   
                <div class="top"> <div class="column span-8 top-1">
                <h6><a href="home.html"><img src="assets/templates/img/logo.gif" width="173" height="63"></a></h6>
                </div> {{menufirstlevel}}</div>
                
                <div class="main"> <div class="column span-22 bottom-1">
                <div class="menusinistra">
                <h3>Catalogo</h3>
                {{menu-catalogo}}
                </div>
                
                <div class="catalog">
                <h3 class="red">[*pagetitle*]</h3>
                <div class="column span-7 top-15">[*content*]
                
                [!gCart? &gItemTpl=`gItemTpl` &gCartTpl=`gCartTpl`!]
                </div>
                <div class="catcolds">
                [*prod_image*]
                </div></div></div>
                      
                {{footer}}
                </div></div></body></html>
                


                Inside the Content I have insered the Chunk {{AddRegularItem}}

                Thank you very much for your help smiley

                Checco
                  • 31628
                  • 8 Posts
                  HI Checco

                  It could be to do with either your gSession plugin (has it been properly configured - Configuration and System events (this is what is loaded after the ’Add to Cart’ is clicked and the page refreshes); or the gCart snippet (which again is called on the page refreshing and calls the gCart.inc.php file to process what the gSession and gCart code have captured to place into the gCartTpl and gItemTpl chunks).

                  It seems that the gCart.inc.php file (which processes and prepares the cart/item information for displaying) is working as you have the page showing the empty - therefore the line

                  if(!$_SESSION["tempCart"]) return $gParams[’gEmptyTpl’];

                  will be run and not the code that follows to list any items - I would therefore be inclined to look at a possible issue with the gSession plugin.

                  Let me know how you get on or what you have found (or not).


                  Richard
                    • 5004
                    • 62 Posts
                    Thank you Richard,

                    you are right! wink - was a problem with gSession, now it works with google... but sorry, I need some more help to setup the pCart.

                    I have activated a Business test account in Paypal and I tried to setup the pID and the gKey, but I don’t know which value I have to insert (test account or Api username or something else)

                    Thanks again
                      • 31628
                      • 8 Posts
                      Thats OK - good to hear that you’ve got it working.

                      Paypal is something different to Google.

                      With Google you ’just’ send a load of data to it with all the information (item name, cost, shipping, etc) PayPal doesn’t (well not what I experienced with it’s Express option). You need to send a request to Paypal with your details and it send back a token, then you send this token with the order details at which point the user/buyer will see a Paypal login screen, once they have logged in and clicked Continue in PayPal they will then be re-directed to your site (with the URLs you sent them), when they return to your site you can get their shipping details and their ID/email address, the buyer should be presented with the Checkout screen on your site where they can Confirm the order at which point your site will send the appropriate data back to Paypal and it will send back a response to confirm whether it suceeded (which it does with all responses) and things like a Transaction number.

                      So you can see that Paypal is a bit more of a beast.

                      I’m considering putting the code that I’ve put together somewhere - not sure when, how and where at the moment.


                      Richard