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

Pre-Login Shipping Calculator

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 08-03-2004, 07:41 PM
 
vsgamingsupplies vsgamingsupplies is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 7
 

Default Re: Pre-Login Shipping Calculator

Thanks. I'm really interested in ths mod but I have a problem. Any ideas on why this wouldn't work with 4.0? No errors. It just reloads the page without anything changed on the page.
__________________
Rob Van Slyke
VS Gaming Supplies
http://www.vsgamingsupplies.com/
(88 5TH-STREET
sales@vsgamingsupplies.com
Reply With Quote
  #52  
Old 08-16-2004, 06:19 PM
 
wallachee wallachee is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 102
 

Default

Anybody find the correct if statement for 3.5.10 for the cart_totals.tpl? I've scoured the files in 3.5.10, but I can't find the if statement responsible for determining if a customer is logged in or not...in other words, how do you put this into code in 3.5.10...

{if customer not logged in}

do this

{/if}

-Bradley
Reply With Quote
  #53  
Old 08-17-2004, 06:25 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
{if $not_logged_message eq "1"}

instead of doing this why not just do:

Code:
{if $login} {else} (insert code) {/if}

For some reason you can't do {if !$login} or {if $login eq null} or {if $login eq false}

Just doesn't work in smarty so you have to do the above.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #54  
Old 08-17-2004, 06:29 AM
 
wallachee wallachee is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 102
 

Default

Thanks again Boomer. I finally figured it out a simple way in 3.5.10... it is below...

{if $login eq ""}


All is well now. Many thanks.

-Bradley
Reply With Quote
  #55  
Old 08-17-2004, 06:58 AM
 
doersam@hotmail.com doersam@hotmail.com is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Snohomish, WA
Posts: 153
 

Default

Can anyone post the COMLETE code modification for 3.5.10 -- Sorry, but I am a bit green at this. Thanks!
__________________
Thanks,
Phil

X-Cart Gold
Version 4.4.5
Reply With Quote
  #56  
Old 08-17-2004, 01:51 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

PM DogByteMan. He's usually pretty helpful.
Reply With Quote
  #57  
Old 08-22-2004, 06:32 PM
 
joestern joestern is offline
 

Senior Member
  
Join Date: Apr 2004
Posts: 185
 

Default

Here's a bit of an update--

I still do not think this mod works for 3.5.8, and if anyone has managed to get it working, please post what you did.

Originally, we tried to get to working using FedEx rates, but that clearly was a problem.

Now we are using real time UPS rates, and the mod still does not work. We have triple-checked that all code was entered correctly (would be happy to send files wherever, and also would be willing to pay someone to help get it to work).

Oddly, if we DO enter a default country/zip in the general settings, X-cart DOES produce the shipping cost pre-login.

One question I have: our site does not require a login (anonymous checkout is permitted). I notice this is different from rack-it's site. Does this matter? I don't think it should because the code is relying on the default zipcode setting, but I'm not sure.

Any help would be greatly appreciated!
__________________
X-Cart version 4.7.12
Reply With Quote
  #58  
Old 08-25-2004, 08:19 AM
 
joestern joestern is offline
 

Senior Member
  
Join Date: Apr 2004
Posts: 185
 

Default

Another bit of info that may mean something here: we use HTTPS for the entire checkout process - all cart screens. I noticed that rackit doesn't use a secure server until the final checkout page. Could this be a source of problems here? Is it possible that my cart page never thinks it got zip_code data? Is there any simple code I could add as a test to just "echo" the zip_code that should have been entered?

Also: still will to pay to get this working . . .
__________________
X-Cart version 4.7.12
Reply With Quote
  #59  
Old 08-25-2004, 09:28 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

There are a half dozen X- users who will pay for this. No one is listening. That really sucks. What happened to all of the capitalist developers?
Reply With Quote
  #60  
Old 08-25-2004, 10:19 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Personally I think the best method to take with this is just to add a zipcode input field on the product details page and view cart or checkout. I know there is a section of code in cart.php that passes the default information specified in the admin to the shipping routines to calculate a shipping cost before login/register.

anyhow, hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 10:44 AM.

   

 
X-Cart forums © 2001-2020