Price Update/Import by membership level mode
Here is a simple mode for product price update by membership level.
This mod will update or add product/price/membership data from csv file. /provider/price_update.php Note: $columns[0] - is your product code in import file $columns[1] - is your product price in import file Code:
<? skin1/single/home.tpl Code:
skin1/provider/main/price_update.tpl Code:
{* $Id: price_update.tpl,v 1.0 2003/09/10 ant Exp $ *} skin1/provider/menu.tpl Let me know if I missed something. |
What version is this mod for?
Thanks, Glen |
Quote:
I used it in 3.4.4 and 3.4.7 should work in any 3.4.* |
:D Thanks Anton!
I'll implement it, just did a install of 3.4.7 and looking to see what bells and whistles to add. Regards, Glen |
This is nice but I wish I was smart enough to figure out how to import pricing by qty (wholesale pricing). If it could create and import quantity pricing it would truly be the bomb.
Nice mod nonetheless, thanks Anton. |
Quote:
This is easy. I'm using it already for several months. Modify import file like this: $columns[0] - is your product code in import file $columns[1] - is your product price in import file $columns[2] - is your product min qty for this price price in import file in 2 places change Code:
quantity=1 to Code:
quantity='$columns[2]' change Code:
$f = "INSERT $sql_tbl[pricing] VALUES ('','$pid[productid]','1','$columns[1]','$membership')"; to Code:
$f = "INSERT $sql_tbl[pricing] VALUES ('','$pid[productid]','$columns[2]','$columns[1]','$membership')"; done enjoy |
Anton, you are simply the greatest.
I was about to go back and do another mod that is similar but doesnt add to the pricing tables. For reference that mod is located here http://forum.x-cart.com/viewtopic.php?t=1696 The only question I still have about this mod is what happens when someone accidentally has the same sku for 2 products? Wouldn't that pooch the whole thing? I prefer to update off of Product ID if possible. |
Quote:
With product id this would be much easier, but most people do not know have product id, they only have productcode. If you want ptoduct id, just change $pid[productid] to $columns[0] |
This is wonderful, thank you so much for supporting this mod with me.
I really do appreciate it. |
Let me know if it works :lol:
|
All times are GMT -8. The time now is 12:58 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.