Gamestech Posted June 12, 2013 Share Posted June 12, 2013 Hi guys, We'd like to look at importing/inserting specific price rules for products in our inventory. In abstract: We run a multi-store instance of Presta. One store sells products to the public, at a discount which is variable per product depending on customer group One store sells products to trade buyers at a discount which is currently uniform for a given range of products but may vary on a product by product basis depending on customer group We currently have around 3,000 SKUs in our inventory but this will increase to around 18,000 when a further site is migrated. So adding specific prices for specific customer groups on specific products for potentially specific time frames isn't really feasible to do by hand. So how to do it? Import - can't seem to find one though? Rules based code (if mfr x for group 2 set - 15%) etc? Any and all information very gratefully received. PS We're on Prestashop 1.5.4.1 Link to comment Share on other sites More sharing options...
Paul C Posted June 12, 2013 Share Posted June 12, 2013 I've specified specific group pricing in a custom importer and all you have to do is create one or more new SpecificPrice object(s). You can then initialise the object for a price specific to a Shop, Shop Group, Customer group, country, currency etc. Just make sure that you specify 'amount' as the 'reduction_type' data member of the class. I think an importer would be the way to go as it provides for the greatest flexibility, especially if you don't want to be forced into rules that have several exceptions (e.g. all product from manufacturer 'Y' have different price reductions). The key to a functional custom importer like this (especially when you want to import price updates and not just one-off product imports) is to be able to provide a unique reference in the import file - e.g. a unique supplier/manufacturer reference. That way the product_id becomes arbitrary. The latter is important should you ever need to migrate or merge the product data in the store with another site. What format is the information supplied on the products? CSV/XML? for 18,000 SKUs I'm assuming that you're not generating the input data by hand..... Link to comment Share on other sites More sharing options...
rich1231 Posted June 26, 2013 Share Posted June 26, 2013 Hi Paul Product data supplied by CSV, group pricing driven by formula.. OP is my tech guy Link to comment Share on other sites More sharing options...
zod Posted April 27, 2020 Share Posted April 27, 2020 I explained the possibilities here: https://www.prestashop.com/forums/topic/490054-specific-prices-for-customer-groups/?do=findComment&comment=3224720 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now