| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Pre-Login Shipping Calculator | ||||
|
|
Thread Tools | Search this Thread |
#51
|
|||||||
|
|||||||
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 |
|||||||
#52
|
|||||||
|
|||||||
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 |
|||||||
#53
|
|||||||||
|
|||||||||
Code:
instead of doing this why not just do: Code:
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. |
|||||||||
#54
|
|||||||
|
|||||||
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 |
|||||||
#55
|
|||||||
|
|||||||
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 |
|||||||
#56
|
|||||||||
|
|||||||||
PM DogByteMan. He's usually pretty helpful.
|
|||||||||
#57
|
|||||||
|
|||||||
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 |
|||||||
#58
|
|||||||
|
|||||||
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 |
|||||||
#59
|
|||||||||
|
|||||||||
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?
|
|||||||||
#60
|
|||||||||
|
|||||||||
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. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|