Author |
Message |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
 cart buttons in store_header.inc?
Hi,
I will like to add a "view cart" and "check out" button in the store_header.inc file, is it possible?
If yes, can guide me on the links?
_________________ *Believe me... I'm really trying hard!  *
|
Sat Jul 16, 05 5:46 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
The code is already in the default header files. The thing is that they don't show up *until* something is added to the cart. This helps prevent someone from checking out with an empty cart.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sat Jul 16, 05 8:42 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Not sure how things work in the cart but if there are no items in the cart there is no way that the customer can check out?
So there is no way to do it? I have seen it on some other people's site so I thought this is workable
_________________ *Believe me... I'm really trying hard!  *
|
Sun Jul 17, 05 5:03 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
It can be done. There is already code in the default header file of the cart to display those links once an item is added to the cart. You can pull that code from the default header and use it in your custom header.
The reasoning for the links not showing up until an item is added to the cart is to help prevent people from checking out with an empty cart.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sun Jul 17, 05 6:49 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Ok. I have tried that and it works for view cart but when I tried to check out I was taken to 'page cannot be found' page. Initially thought is due to the fact that I have nothing in my shopping cart. I added an item to cart and click on the same button and I get the same response -> page cannot be found.
The script that I have added to the button is Code:<A HREF='%%StepOneURL%%?order_form_button.x=1&%%href_fields%%'>
Is there anything wrong with this script?
_________________ *Believe me... I'm really trying hard!  *
|
Tue Jul 19, 05 6:28 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Where are you trying to put this bit of code? What is the URL to the page?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jul 19, 05 7:22 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
My URL is http://www.nadioki.per.sg/store
If you go to my website, you can see that there are 2 green buttons on the left, 1 is 'view cart' and the other is 'checkout'. I am trying to place the link in the 'checkout' button.
_________________ *Believe me... I'm really trying hard!  *
|
Tue Jul 19, 05 7:10 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Looks like you have an incorrect URL set in the manager.
It is either the one in the Main AgoraCart Store Settings or the Payment Gateway.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Jul 20, 05 4:26 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
I have both URLs set up as http://www.nadioki.per.sg/cgi-bin/store/agora.cgi but I get the same message...  help!
_________________ *Believe me... I'm really trying hard!  *
|
Tue Jul 26, 05 1:50 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
That's the wrong URL... The cart does NOT exist at that URL...
The URL to your store is:
http://www.nadioki.per.sg/store/agora.cgi
That is the URL that should be set in the manager...
In the Main AgoraCart Store Settings
AND in the Payment Gateway....
Also, make sure that your SSL/Secure URL fields are filled in, too...
HTH!
Last edited by scottcrew on Wed Jul 27, 05 6:31 am; edited 1 time in total
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jul 26, 05 5:30 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Ok, I have changed the 3 URLs and right now I get a return to home (main) page when I click on checkout.
_________________ *Believe me... I'm really trying hard!  *
|
Wed Jul 27, 05 6:22 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Ooops, try this for the URL:
http://www.nadioki.per.sg/store/agora.cgi
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Jul 27, 05 6:31 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Thanks! It's working fine now!
_________________ *Believe me... I'm really trying hard!  *
|
Thu Jul 28, 05 6:09 am |
|
 |
|