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

Save Multiple Ship-to Addresses Completed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 10-13-2005, 09:23 AM
 
alecgraz alecgraz is offline
 

Newbie
  
Join Date: Jun 2005
Posts: 7
 

Default

I love the idea of this mod. In looking over the code, I am confused as to where $alt_profiles gets populated. Maybe I am missing something obvious but it seems like no profiles would get displayed. Any insight would be appriciated
Thanks
__________________
- Alec
Reply With Quote
  #22  
Old 10-13-2005, 10:56 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default

alt_profiles doesn't get written to - that's not a table - it's mentioned in the code in spots as that's what we were calling it when we developed it. We have variable names called that, but otherwise data gets written to xcart_shipping_addresses table.

All of that logic is in createalt.php...
__________________
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.
Reply With Quote
  #23  
Old 10-13-2005, 12:13 PM
 
alecgraz alecgraz is offline
 

Newbie
  
Join Date: Jun 2005
Posts: 7
 

Default

Thanks for the reply. I guess I didnt explain my question well enough. In the register_switch_profile.tpl you list out all the profiles in the select box via a loop over all the profiles for that user.

{section name=switchProfile loop=$alt_profiles}

I don't see where you are assigning this data from the PHP to the template. createAlt.php handles the creation, deletion, and switching. But I dont see it handling the population of the data to be displayed in the drop downs.

Thanks!
__________________
- Alec
Reply With Quote
  #24  
Old 10-13-2005, 02:38 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default

ah, that's handled in the javascript that I have in register_contact_info.tpl - one of my last snippets of code there.
__________________
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.
Reply With Quote
  #25  
Old 11-28-2005, 06:36 AM
 
JGrubbs JGrubbs is offline
 

Member
  
Join Date: Oct 2005
Location: Lake Mary, FL
Posts: 12
 

Default

I have installed this mod but it doesn't seem to be working right.

When I click on register as a new user the "Create Saved Profile" button is on the page, but doesn't do anything. It will work when I click on the "Modify profile" link because it is passing through mode=update, but it doesn't appear to be saving a profile to the drop down list. I checked the database and see a new entry in xcart_shipping_addresses for every time I pressed the "Create Saved Profile" button, but still nothing showing in the dropdown list:

http://www.strangdirect.com/xcart/register.php
__________________
Version 4.0.17
Reply With Quote
  #26  
Old 11-30-2005, 12:30 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default

first - if installed right, this should not be showing up until you've actually already registered and created a profile with user/pass. It needs to be surrounded with some if/then tags that it looks like you missed.

Once you've then logged in after registering for the first time, you will then see a dropdown list that will populate with alternate profiles as they are created. Keep in mind you have to create the first profile and use the regular x-cart submit button, and then can click the "create saved profile" button to copy that profile so that you can enter a new one, save, copy, enter new one, save, copy, etc.
__________________
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.
Reply With Quote
  #27  
Old 11-30-2005, 12:37 PM
 
JGrubbs JGrubbs is offline
 

Member
  
Join Date: Oct 2005
Location: Lake Mary, FL
Posts: 12
 

Default

The drop down list is not showing up untill after the registration is complete, the button is showing up but does not do anything even after the registration, unless you first click on modify profile.
__________________
Version 4.0.17
Reply With Quote
  #28  
Old 12-09-2005, 10:13 AM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

Great Mod, I installed it but have a little hitch

I am able to modify profile and then submit, but when I come back to add the profile it does not add up to the drop down list and I still have no alternative profiles,

i guess I am not able to add the profile , how do I check for that
__________________
Version 4.0.17
Reply With Quote
  #29  
Old 01-11-2006, 11:17 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default Re: Mulitple ship to addresses

Quote:
Originally Posted by robin
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:

This occurs because the sessions are completely regenerated, which means re-establishing your cart contents.

If one of your cart contents has an apostrophe or quote in it, then it will cause the SQL to break.

To fix this find:

Code:
$new[$key] = $value;

Replace with:

Code:
$new[$key] = addslashes($value);
Reply With Quote
  #30  
Old 02-01-2006, 01:09 PM
 
electronics4less electronics4less is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 38
 

Default

I do not get any errors but it is not saving the addresses.

Any ideas?
__________________
X-cart v4.0.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:06 PM.

   

 
X-Cart forums © 2001-2020