Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need help with custom Login/Checkout Procedure

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-19-2005, 09:13 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Need help with custom Login/Checkout Procedure

Hi All! Thanks for reading!

You can see what I'm working on here:
http://www.themarquistheater.com/store/xcart/home.php

Once the store is live you'll find it at:
http://www.themarquistheater.com/store/home.php

I created an account with test/test as the username/password if you want to play around and see what I'm talking about.

So here's my problem. I have a Flash Header in this site obviously, and when you go to HTTPS for login/registration etc. the Flash header disappears. So I either need to come up with a way to make it show up in HTTPS or my preferred solution would be that all login/registration/cart/checkout all be done via the Easy Checkout MOD that's installed, which doesn't include the Flash Header at all.

I figured out a way to sort of make it work as long as the customer has something in the cart, but that solution fell apart when the customers cart was empty and a login or registration attempt was made.

Add an item to the cart while your not logged in. Then click on checkout. It takes you to the login/registration/recover password forms. If you don't have anything in your cart then it just takes you to a page that says your cart is empty. Is there anyway to force it to that same registration page even if the cart is empty. I think if I could figure that out, I would be on my way.

Would love some suggestions on how to best deal with this situation.

Thanks,

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #2  
Old 05-19-2005, 09:23 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

How are you calling the header at the moment???

One way would be always to reference it on the https that way it should show on both http and https
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #3  
Old 05-19-2005, 09:32 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Thanks

Quote:
One way would be always to reference it on the https that way it should show on both http and https

How exactly do I go about that? I have not been able to figure that out.

Should probably mention that I'm on a shared server using shared SSL.

Thanks so much for the input.

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #4  
Old 05-19-2005, 09:41 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Start by making sure your swf file is on your https so that it can be called.

You could also write an if statement so that view cart and checkout do not appear until after the cart has something in it.
Reply With Quote
  #5  
Old 05-19-2005, 09:54 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default I think I'm just confused

I dont have a lot of knowledge in HTTPS so I think I'm a bit confused.

Basically X-cart dynamically changes all the links in HTTPS so that it can find all the page elements for example:

href="/~marquis/store/xcart/skin1/skin1.css"

But on the HTTPS pages its looking for the Flash Header using this URL
"../../../header.swf" which is obviously not going to work, it would need to be looking here "/~marquis/header.swf"

I know I'm missing something very simple here, but its eluding me.

Thanks for your patientence.

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #6  
Old 05-19-2005, 10:03 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Thanks

OK figured out how to get the Flash header to show in HTTPS.

I just need to change the src tag within the Flash object tag from "../../../header.swf" to "/~marquis/header.swf"

Thanks,

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #7  
Old 05-19-2005, 12:17 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

or better still why not put it in your images folder in skin1 and then just reference it like you would any other object, that way you don't have to deal with ../../ etc.

i.e {$ImagesDir}/header.swf
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #8  
Old 05-19-2005, 02:04 PM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default

Not sure that would work in my case. I have FlashVars that need to be called within the object tag. They load different flashmovies into the little windows on the left and right, depending on which section of the site your in.

So I think embedding the object tag in the HTML is a must for my scenario.

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:44 PM.

   

 
X-Cart forums © 2001-2020