-- url of the page with the problem -- :
www.clydesdale.net
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9
Forum Newb although been using HIKASHOP on our company website for several years.
I have tried searching but haven't been able to find the correct answers to what i need (or where i might find the documents detailing exactly what i need to do).
We are currently set up as follows to give near-live pricing and stock on our website:
- Small, local MS-ACCESS database on our local server for our MD to manage with list of the company products that are available through our webstore.
- SAP Business objects / Crystal reports creates a hika-formatted CSV that pulls in pricing and stock from our business management system.
- SAP then places CSV file on hosted webserver via FTP every 30 mins (we don't sell much through our website so this is live enough for us)
- Chron / mass action runs to extract CSV contents on to relevant hika products. We had someone set-up this mass action for us originally but i *think* I see how it is set-up
This has all run nice and stably for a few years but we only have 1 level of pricing and availability to all users: a product is either "Web sold" or "Not web sold"
We use quite a lot of variants in several combinations as shown
HERE
However we are now in the position where I need to be able to offer our key customer (Call them XX) a dedicated purchasing platform and pricing and I am having trouble formatting the CSV correctly to achieve the following scenarios.
Scenario 1:
Product is not for web sale. Our hikashop is currently set to display "Phone the office" if no pricing is provided via CSV
Scenario 2:
Product is for "general" web sale but is not available to customer XX. "General" price and stock level needed for all variants and non-variant based products. Customer XX should not see these items.
Scenario 3:
Product is only for sale to customer XX with pricing and stock specifc to them. General users should not see these items
Scenario 4:
Product is for sale both to general customers and to customer XX but each gets specific pricing. Stock levels are the same.
I have set up a trial XX user and XX user group in Joomla.
I did a trial product extract in HIKASHOP where i had set up the accesses by hand on a single item correctly and found it is the usergroup ID that i need to use in the CSV to correctly refer to customer XX and I then use all the other groups in a string for "general" sales.
I have trialled a few versions of CSV format and managed to break most of our products in the process by not getting the correct CSV loaded to the correct products in hikashop. This is particularly true on products with many variants (that have historically worked successfully to date)
I do however keep getting lots of new individual products being created for what are actually variants when i run the mass action which results with a "grey tag" icon and I subsequently lose all the variants on the products - presumably because i now have duplicate items for everything.
Our original CSV file used the following fields:
product_code
price_value
price_currency_id
price_min (always set to 1)
price_access (always set to "1,12,13,6,7,2" - all our general groups of users)
I believe our CSV will need to add:
product_access (this will be a string detailing product visibility to different customers)
price_access (this will be a string detailing price visibility to different customers)
price_value (this will be a string detailing pricing to different customers)
The strings need to contain bar characters as far as i can tell but how do i control both price and product visbility at the same time?
I can't work out what the formatting of the relevant text strings needs to be though to get the right price to show to the right customer in all the above scenarios.
The CSV I am creating currently contains 2 rows when dealing with Scenario 4 though and I don't think this is right.
As shown above, I think i need to be using a longer string for price, price_access and product_access but cant work out how to cover all my scenarios.
Apologies if I need to provide more detail to get a successful outcome on the forum but i would be grateful of any help