Post by ner0tik » Mon Oct 24, 2011 10:19 am

i'm looking for an extension that will allow me to update product quantities from a spreadsheet like http://www.opencart.com/index.php?route ... oad_id=748 but unfortunately that extension hasn't been updated since 1.4.7. i tried making it 1.5.x compatible but my knowledge of php is pretty much non existent.. i was wondering if someone would be willing to fix that extension so it works with 1.5.x or point me in the direction of another extension that can do what i need. thanks in advance.

New member

Posts

Joined
Thu Jul 08, 2010 8:11 am

Post by Maaris » Wed Oct 26, 2011 5:35 am

I made a csv file and a simple php script, that I upload to server, execute and delete. Guess you can do a similar solution here.

New member

Posts

Joined
Sun Jul 11, 2010 2:35 am

Post by Nija » Fri Nov 25, 2011 2:38 am

Can i get your simple php file ?
Thx

Active Member

Posts

Joined
Sun Oct 31, 2010 5:19 pm
Location - Constanta, Romana

Post by straightlight » Fri Nov 25, 2011 4:50 am

Fixed and compatible with OpenCart v1.5x. Download the file from my attachment and upload it to your admin/controller/tool folder then try again from the admin. Overwrite the old file / remove it if you already uploaded the previous one from the ZIP package distributed by this author.

Edit: Another file to edit is admin/controller/common/header.php file.

Replace:

Code: Select all

$this->data['inventory_update'] = HTTPS_SERVER . 'index.php?route=tool/inventory_update'; 
With:

Code: Select all

$this->data['inventory_update'] = $this->url->link('tool/inventory_update', 'token=' . $this->session->data['token'], 'SSL'); 

Attachments

Fixed: Token was missing from URL. URL had no origin from source. Forced HTTPS while some server may not operate on HTTPS protocol from admin.


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Bing [Bot] and 9 guests