NO admin > Tools > "Easy Populate" button
None in "admin >configuration" either
Installed zen cart v1.5.0
Installed ez populate easypopulate-shafiqv1-2-5-6
Installed right over previous install ep_v220.127.116.11
Easy Populate works using:
(space added to stop this system from amking it a linkl)
When I run it there is a green message at the top of the screen which says:
Installation Successfull! A full download of you store has been done and is available in your uploads (temp) directory. You can use this as your 1st template for uploading/updating products.
Success File Full-EP2012May11-1111.txt successfully exported! The file is ready for download in your /temp/ directory.
I have installed Easy Populate on another zen cart before.
Am I doing something wrong?
Is it OK to use it without the button.
INSERT INTO `admin_pages` (`page_key`, `language_key`, `main_page`, `page_params`, `menu_key`, `display_on_menu`, `sort_order`) VALUES
('ezpopulate', 'BOX_TOOLS_EASYPOPULATE', 'FILENAME_EASYPOPULATE', '', 'tools', 'Y', 150);
Almost all the earlier version modules works in zen 1.5 which are not having boxes defined in admin. For box definitions you need to use admin>admin access management>admin page registration. So the easy populate too.
My plan is to upload stock received to admin via EP but ADD to current stock quantity when uploading.
At my line 1561 a query selects the current contents...
$sql = "SELECT
p.products_quantity as v_products_quantity,
I see in my line 1980 this...
$query = "UPDATE " . TABLE_PRODUCTS . " SET
products_quantity = '" . zen_db_input($v_products_quantity) . "' ,
In order to do this, is it simply '" . zen_db_input($v_products_quantity + p.products_quantity) . "'
Have you tried this?In order to do this, is it simply '" . zen_db_input($v_products_quantity + p.products_quantity) . "'
I can't really test it, but i'm thinking it might be more like this:
zen_db_input($v_products_quantity + $row['p.products_quantity'])
Seems like it would be better to accomplish this at the spreadsheet level.PHP Code:
// Put Higher up in code
$existing_qty = $row['p.products_quantity'];
// Then in Statement
zen_db_input($v_products_quantity + $existing_qty)