osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Easypopulate problem

This is a discussion on Easypopulate problem within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; I am baffled on this. Everytime I change prices in my customer groups (I have 3) by using the easypopulate ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 09-13-2007, 12:50 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Easypopulate problem

I am baffled on this. Everytime I change prices in my customer groups (I have 3) by using the easypopulate model/price/quantity upload it changes the date of the product added to today.(the day I upload the price changes) So I keep having to go in and change the date the items were added or I have 100's of old products in New Products. Where is this being called? Any ideas on a fix. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-14-2007, 05:26 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 143
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Thumbs up Re: Easypopulate problem

Quote:
Originally Posted by bkpie View Post
I am baffled on this. Everytime I change prices in my customer groups (I have 3) by using the easypopulate model/price/quantity upload it changes the date of the product added to today.(the day I upload the price changes) So I keep having to go in and change the date the items were added or I have 100's of old products in New Products. Where is this being called? Any ideas on a fix. Thanks.
The best way to fix this would be upgrade your Easypopulate to the one I added in the mods. This will allow you to custom your downloaded file and instead of having model/price/quantity you could make it model/price/quantity/DATE ADDED then you will be good to go.

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-14-2007, 05:37 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Easypopulate problem

Adam:

Thanks I will look into it. Also another problem I have is I use an out of stock contribution so if I put zero into quantity but leave product active it shows out of stock and then they can click to be emailed when instock. But Easypopulate sees the zero and makes the product inactive. Does your new contrib handle this or do I have to find another fix for that. Thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-14-2007, 05:43 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 143
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: Easypopulate problem

Sorry it does not have that option but I think if you are doing a update on model/price/quantity/DATE ADDED it does not even look at the stock I might be wrong. Let us know maybe should be an option to turn on or off that feature.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-14-2007, 06:35 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Easypopulate problem

It still does look at active and inactive based on quantity. I have messed with the easypopulate.php where I can find anything that deals with stock or quantity but it still does it. Everytime there is a zero it deactivates it and in the reverse if you have a product showing quantity but have it deactivated for some reason it activates it on you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 09-15-2007, 07:52 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Easypopulate problem

Ok here is where I think it is. In both the old and new version in configuration there is this

// If zero_qty_inactive is true, then items with zero qty will automatically be inactive in the store.
define ('EP_INACTIVATE_ZERO_QUANTITIES', false); // default is false

This should take care of the staying active with zero quantity problem. I would think

However I think there needs to be a line in config so if you have a product that is inactive but shows quantity it stays inactive if you want it to be. Otherwise it activates the product based on I believe line 2151 below on ALelders new contrib and can also be found in the previous version. I marked it with problem is here.

// default the stock if they spec'd it or if it's blank
if (isset($v_status_current)){
$v_db_status = strval($v_status_current); // default to current value
} else {
$v_db_status = '1'; // default to active (PROBLEM IS HERE)
}
if (trim($v_status) == EP_TEXT_INACTIVE){
// they told us to deactivate this item
$v_db_status = '0';
} elseif (trim($v_status) == EP_TEXT_ACTIVE) {
$v_db_status = '1';
}

Adam or anyone have an idea to fix that one?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 09-15-2007, 06:53 PM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 143
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: Easypopulate problem

Thanks for the feedback,

* I did look at the Active/InActive status your brought up and Found all you need to do in the status is keep it InActive and it will keep that setting.

Hope this help also hope you like the Delete feature.

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 09-16-2007, 08:27 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Easypopulate problem

Quote:
Originally Posted by ALElder View Post
Thanks for the feedback,

* I did look at the Active/InActive status your brought up and Found all you need to do in the status is keep it InActive and it will keep that setting.

Hope this help also hope you like the Delete feature.

Adam
You are right that everything works just like you said as long as SPPC is set to false. It works wonderfully. Since I use SPPC when I set that to true in configuration I then get

1136 - Column count doesn't match value count at row 1

INSERT INTO products_groups VALUES ( 1, 2.9400, 5 )

I have played with all the cofig variables. If I put in the old ep that works but as I said earlier I need the features of yours or I get the date added problem

Another note: When sppc is set to false date added is fine but when true I noticed it is just #######

Maybe I am missing something simple but sometimes when you have looked at something as long as i just have you can miss something simple. Any ideas?? Thanks for your help in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 09-16-2007, 01:05 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Easypopulate problem

Ok here is what I figured out but maybe there is an easier fix but all works for me now with SPPC set to true in easpopulate configurations. There was a bug fix that on April 9th with the original version for Osc MS2. This was incorporated into version 2.76e f etc. This removed a needed column not needed for MS2 but needed for OSCmax.

The fix for MS2 was

INSERT INTO '.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_1 . ',
' . $v_customer_price_1 . ',
' . $v_products_id . ',
' . $v_products_price .'
)'
);
------------------
WITH
------------------

INSERT INTO '.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_1 . ',
' . $v_customer_price_1 . ',
' . $v_products_id . '
)'
);

So what I had to do was the reverse and add . $v_products_price .' back in (4 places) in easypopulate.php around line 2593

I am also only using 3 customer groups so I uncommented group 4 in this section of easypopulate.php so it looks like this around line 1399

if (EP_SPPC_SUPPORT == true) {
$ep_additional_layout_pricing .= '$filelayout[\'v_customer_price_1\'] = $iii++;
$filelayout[\'v_customer_group_id_1\'] = $iii++;
$filelayout[\'v_customer_price_2\'] = $iii++;
$filelayout[\'v_customer_group_id_2\'] = $iii++;
$filelayout[\'v_customer_price_3\'] = $iii++;
$filelayout[\'v_customer_group_id_3\'] = $iii++;
#$filelayout[\'v_customer_price_4\'] = $iii++;
#$filelayout[\'v_customer_group_id_4\'] = $iii++;
Note above group 4 is uncommented

SPPC all working for me now hope this helps someone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to bkpie For This Useful Post:
michael_s (09-16-2007)
  #10  
Old 09-20-2007, 12:33 AM
New Member
 
Join Date: Jul 2007
Posts: 21
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
chrisbarbers is on a distinguished road
Default Re: Easypopulate problem

Yep that is the fix to make the latest version of easypopulate work with osCMax 2.0 RC3, but remember if you update to any future versions of easypopulate the creator is not supporting 4 fields "until someone can explain the need for it", so you will have to make the same change to any updated ep releases or you wind up with the same problem, probably best to keep a file on your server noting what files are modded.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
easypopulate problem mcilpuf osCMax v2 Installation issues 0 09-23-2006 04:20 PM
EASYPOPULATE shopyoungway osCMax v2 Customization/Mods 3 05-06-2006 10:18 AM
Easypopulate / Attributes problem. davem osCMax v1.7 Discussion 1 08-19-2005 08:24 AM
EasyPopulate - suddenly having upload problem - See Error xpressed osCMax v1.7 Discussion 4 07-09-2004 05:56 AM
easypopulate froogle generation problem BKnapik osCMax v1.7 Discussion 0 01-27-2004 08:00 AM


All times are GMT -8. The time now is 10:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax