Skip to main content

Mass Export CSV

3 weeks 13 hours ago #100000470 by yerg55
Mass Export CSV was created by yerg55
-- HikaShop version -- : 6.7.1
-- Joomla version -- : 6.2.0
-- Browser(s) name and version -- : Firefox 159.0

Mass Export of customer postage info for AustPost import into our business account.

The process works fine although the csv has both the Postage and Billing details
Code:
"Recipient contact name";"Recipient Surname";"Recipient address line 1";"Recipient suburb";"Recipient state";"Recipient postcode";"Recipient email address";"Recipient phone number";"weight";"length";"width";"height";"billing_address_firstname";"billing_address_lastname";"billing_address_street";"billing_address_city";"billing_address_state";"billing_address_post_code";"billing_address_telephone" "Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"xxx@gmail.com";"0423654987";"600.000";"37.000";"26.000";"8.000";"Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"0423654987" "Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"xxx@gmail.com";"0423654987";"4977.000";"37.000";"24.000";"15.000";"Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"0423654987" "Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"xxx@gmail.com";"0423654987";"4386.000";"23.000";"24.000";"15.000";"Peter";"Jones";"45 Smith Street";"Horsham";"Vic";"3400";"0423654987"

Was thinking I wasn't going to have to run a macro when it came in before importing, but maybe I will.

Please Log in or Create an account to join the conversation.

2 weeks 6 days ago #100000471 by nicolas
Replied by nicolas on topic Mass Export CSV
Hi,

The billing columns come from the way the mass action export handles addresses on orders: each address you tick is written twice, once for the shipping address (shipping_address_...) and once for the billing address (billing_address_...). Since 6.7.1, your labels and column order apply to the shipping columns, and the billing columns are added after them with their raw names. Until now there was no setting to leave them out.

We have added one: the "Export a csv file" action gets an "Addresses" setting with three choices, "Shipping and billing" (as now), "Shipping address" and "Billing address". With "Shipping address", the file only has your Recipient columns, in your order and with your labels, so it can go straight into the Australia Post import. This comes with the next version of HikaShop.

You don't have to wait for it: the two attached files add the setting to your HikaShop 6.7.1. Unzip them and upload them over the existing files on your server:

- export.php (from export.php.zip) goes in administrator/components/com_hikashop/helpers/massaction/

- exportcsv.php (from exportcsv.php.zip) goes in administrator/components/com_hikashop/helpers/massaction/action/

Then open your mass action, choose "Shipping address" in the new Addresses setting of the export action, and save. Until the next version, the first choice may show as EXPORT_BOTH_ADDRESSES instead of "Shipping and billing"; it works the same. Updating to the next version will replace these files with the same change.

Please Log in or Create an account to join the conversation.

Time to create page: 0.042 seconds
Powered by Kunena Forum