| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Save Multiple Ship-to Addresses Completed | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Wow, yeah, that would be a nice add-on as well. What I've done will just allow you to switch ship-to profiles easily without having to "overwrite" your profile each time you purchase.
It was made for a company that has people ordering and shipping to the same locations all the time, so they just store their shipipng locations in there and I made it so when you login it just redirects you to the modify profile page for you to choose your profile right away. I've also worked this mod in a way where the entire profile is switchable - not just the ship-to information. That way you can have several people share the same membership level and not worry about overwriting each other's profiles. Lemme know when you get that done, would love to take a look ;o) Instinctual Colorado X-Cart Versions 3.5.x - 4.0.12 |
|||||||
#12
|
|||||||
|
|||||||
Did you all have any luck tracking down the sql problem? I'm also getting invalid sql: 1064 in 4.0.5
Thanks for any help, Bill
__________________
4.0.5 |
|||||||
#13
|
|||||||
|
|||||||
I am in the process of trying to implement this right now, and just needing a little verification on this step:
Quote:
1. Somewhere in teh hidden inputs - could you be more specific, as I am not a coder. I can find the lines that say hidden input, but not sure if i just throw it in there that it wont mess something else up. Could you give a line number suggestion? 2. Then it says add another one like this... does that mean I actually need to copy paste this in this document twice?
__________________
-------------------------- X-cart ver 4.0.16 |
|||||||
#14
|
|||||||
|
|||||||
mhmm
Hi there, all I'm referring to is that you need to add this code:
Code:
Into the area that already contains the hidden inputs that are built-in to the existing x-cart template - you need to have it in that general area but where EXACTLY you put it is upto you. If you take a look at the screenshot, the code above is what's creating the "creat saved profile" button - which is not standard x-cart design - so where you put it is upto you, just make sure you include the code above somewhere in that template where you'd like the button to show up in the html code.
__________________
Instinctual 8,000 feet up in the Rocky Mountains of Colorado X-Cart Versions 3.5.x - 4.0.x IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind. |
|||||||
#15
|
|||||||||
|
|||||||||
Followed the instructions to the letter, and I'm getting this error:
Code:
Anyone know what how to fix? Complete newbie to both x-cart and PHP, so please reply as if I'm 2. TIA
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#16
|
|||||||||
|
|||||||||
Hi,
Please read this thread and will solve your problem... http://forum.x-cart.com/viewtopic.php?t=20678
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#17
|
|||||||
|
|||||||
Make sure that you only have the php code in the createAlt.php. Remove any other code like:
Code:
It is also better to use long php tags just in case your server doesn't support short tags... use: Code:
Code:
For more information on the error your getting check out www.php.net
__________________
xcart v3.5.8 through to v4.0.14 redhat v9 php v4.3.10 MySQL 4.0.22 |
|||||||
#18
|
|||||||||
|
|||||||||
techhead, Thanks for your reply.
I just figured out that what I had was a "whitespace error". I had a couple returns before and after the code, causing the errors. Now that that's solved, I'm getting a javascript error in this: Code:
the error is: Code:
the error is referring to the line: Code:
I have chmoded createAlt.php to 777 w/ no change. The javascript is in {literal} {/literal} tags in the .tpl Any ideas?
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#19
|
|||||||
|
|||||||
Mulitple ship to addresses
Hi,
I just tried to implement the multiple ship to address drop down and it is working. I was hoping someone could give me suggestion of how to get it to work. I also get this error INVALID SQL: 1064 : You have an error in your SQL syntax near 's Goldberg Variations";s:12:"product_type";s:0:"";s:5:"price" ;d:13.99;s:5:"taxes' at line 1 SQL QUERY FAILURE: update xcart_sessions_data set data = 'a:44:{ ..... too much to print. Was a fix made to this? Actually, I only started getting this error after I made a bunch of changes to the shipping options (added UPS online and other misc changes) Before i made all of the shipping option changes, I did not get the session error but it still did not work. I did not get anything to appear in the alt shipping address drop down in my profie. Anyone made any headway on this?? THanks, Robin
__________________
X-cart Version: 4.1.3 PHP Version: 5.1.6 MySQL: 3.23.58 OS: Linux |
|||||||
#20
|
|||||||
|
|||||||
CORRECTION to last email
I meant to say....
I just tried to implement the multiple ship to address drop down and it is NOT working. Sorry for the quick typo
__________________
X-cart Version: 4.1.3 PHP Version: 5.1.6 MySQL: 3.23.58 OS: Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|