Post by ravex » Wed Sep 08, 2010 8:26 am

Hi everyone, help me please clarify how i can declare Default values for some rows in exported XLS.

For example i need in Products tab:
requires shipping = always yes
language_id = always 1
store_ids = always 1
subtract = always true

In Catalog Tab:
language_id = always 1
store_ids = always 1
status enabled = [/b]always true

BTW: Excel can Hide and UnHide Rows, So we have any change to hide some rows for minify Rows view
at Excel? And last question - how change default sort order?
i always need change sort order by category_id in Excel, its crazy things if make more changes imports and and exports.

Newbie

Posts

Joined
Wed Sep 08, 2010 8:12 am

Post by Miguelito » Tue Sep 21, 2010 7:06 pm

Well these are excel issues so hopefully an excel guru will respond to this :)

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by JNeuhoff » Mon Sep 27, 2010 5:31 am

ravex wrote:Hi everyone, help me please clarify how i can declare Default values for some rows in exported XLS.

For example i need in Products tab:
requires shipping = always yes
language_id = always 1
store_ids = always 1
subtract = always true

In Catalog Tab:
language_id = always 1
store_ids = always 1
status enabled = [/b]always true

BTW: Excel can Hide and UnHide Rows, So we have any change to hide some rows for minify Rows view
at Excel? And last question - how change default sort order?
i always need change sort order by category_id in Excel, its crazy things if make more changes imports and and exports.
If you leave these columns empty, it will use the following default values during an Import:

Products worksheet:
requires shipping ='true'
language_id = '1'
store_ids = ''
subtract = 'true'

Categories worksheet:
language_id = '1'
store_ids = ''
status enabled = 'true'

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by JAY6390 » Mon Sep 27, 2010 5:46 am

And of course, a few minor tweaks to the model file, and you can set the defaults yourself :)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by ravex » Mon Sep 27, 2010 7:30 am

JNeuhoff. its only example and i wish to try make few tweaks
BTW: in my case
status enabled = empty (not true)
JAY6390,
Can you point me at target lines of code?
i'll try make some changes, but without any positive results. each of this parameters are in few plaсes of code and I can't find the needful :(

Newbie

Posts

Joined
Wed Sep 08, 2010 8:12 am

Post by JAY6390 » Mon Sep 27, 2010 4:58 pm

Sure. The file you're looking for is

Code: Select all

/admin/model/tool/export.php
Then search for:

Code: Select all

function uploadCategories
function uploadDiscounts
function uploadImages
function uploadOptions
function uploadProducts
function uploadSpecials
You should be able to work it out from there which is which variable

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 6 guests