X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Save Multiple Ship-to Addresses Completed (https://forum.x-cart.com/showthread.php?t=12456)

feeble_fuel 05-14-2008 07:07 PM

Re: Save Multiple Ship-to Addresses Completed
 
I was able to get this to work on 4.1.9 following along in the thread and using the code supplied in post #38.

It's a little clunky but it will do the trick for now.

feeble_fuel 06-05-2008 09:27 PM

Re: Save Multiple Ship-to Addresses Completed
 
I discovered a small clich with this modification. I have added an x-cart extra field of s_company to the ship to address. This modification uses the same value that is placed in the exta_fields table for all ship to addresses and not specific to a particular profile.

Has anyone out there modified this mod to also take extra shipto fields into consideration so that there is a unique shipto company name for each profile?

I think it also opens up a can of worms, because when viewing order details, it would also need to pull in the specific ship to company for the profile being used.

This would have been so much easier if the original x-cart design included a ship to company along with the shipto address details. Arg!

Any help or insight would be appreciated.

Thanks!

feeble_fuel 06-25-2008 11:33 AM

Re: Save Multiple Ship-to Addresses Completed
 
Bump...

Well, it turns out really the best way to include a ship-to company was to hard code an s_company into x-cart all the way through to get it to be treated correctly throughout the process.

Again, my opinion is that ship-to company should be a standard field included in x-cart instead of relying on creating it in the extra fields.

btomasie2 10-14-2008 07:12 PM

Re: Save Multiple Ship-to Addresses Completed
 
bringing this up to the top...

feeble_fuel... you mention that you got this working in v4.1.x by using thread #38. Did you do all the other stuff in the other posts AND what #38 says? Or only #38?


Thanks!
Brian

MattAustin 10-22-2008 01:08 AM

Re: Save Multiple Ship-to Addresses Completed
 
Has anyone refined this Mod as I am finding that if you go through the checkout process and at any stage try to Modify your details, the dropdowns will never be populated.

They will only ever be populated if you log in and then click Modify Profile and then if you switch profile you are taken to Personal details of checkout process (regardless of whether anything is in the cart) and again the dropdowns are empty.
Any help with this is much appreciated

telimon 11-19-2008 12:08 PM

Re: Save Multiple Ship-to Addresses Completed
 
Anyone know if this will work in 4.1.8?

btomasie2 11-19-2008 01:17 PM

Re: Save Multiple Ship-to Addresses Completed
 
After banging my head against the wall on this, I was informed that BCS Engineering developed a real module for multiple ship-to addresses (and address book management). WELL worth the money, and is very well done.

I would point you to my implementation, but the store is in development, and so I cannot share the link.

Here is the BCS module:
http://www.bcsengineering.com/store/customer/product.php?productid=271


Good luck,
Brian

Learner 09-14-2009 01:42 AM

Re: Save Multiple Ship-to Addresses Completed
 
Hi Instinctual,
Will it work on 4.1.9 and 4.1.11?Thank you.

Learner 10-06-2009 09:25 AM

Re: Save Multiple Ship-to Addresses Completed
 
feeble_fuel,
you say that you got this working in v4.1.x by using thread #38 only?

or any other modification from the 1st post?

Any help or any response from forum!!!!

Will it work on 4.1.9?

Thanks to all.

MattAustin 12-02-2009 07:50 AM

Re: Save Multiple Ship-to Addresses Completed
 
I have this working but the line:
db_query("update xcart_sessions_data set data = '".serialize($new)."' where sessid='$sessid' ");

At line 111 causes the SQL error:

SQL query : update xcart_sessions_data set data = 'a:61:{s:11:"editor_mode";s:0:"";s:8:"is_robot";s: 1:"N";s:5:"robot";s:0:"";s:11:"is_location";s:1:"Y ";s:9:"adaptives";a:11:
etc etc

at line 1
Request URI: /createAlt.php

and also

the line:
//Header("Location: register.php?mode=update&action=cart");
//Header("Location: register.php?mode=update");
Header("Location: " . $_SERVER['HTTP_REFERER'] );

at around line 52 causes PHP error:
Cannot modify header information - headers already sent by (output started at /var/www/vhosts/qvsdirect.com/httpdocs/include/func/func.db.php:196) in /var/www/vhosts/qvsdirect.com/httpdocs/createAlt.php on line 54

Like I say it seems to work but I would love to get rid of these errors.8O

Learner 12-04-2009 03:35 AM

Re: Save Multiple Ship-to Addresses Completed
 
Any neat and clean code for version 4.1.9 and 4.1.11 with instructions !!!!!

Any response from forum...

Thanks to all.

Learner 04-25-2010 09:27 PM

Re: Save Multiple Ship-to Addresses Completed
 
Anyone for 4.3 ?

xtech 06-17-2010 02:20 AM

Re: Save Multiple Ship-to Addresses Completed
 
Though it is a completed mods but there are none to response whether it will work or not!!!

I canot able to work for 4.1.11 Pro

If yes then what is the exact code??

Thanks.


All times are GMT -8. The time now is 11:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.