This project started from the Foodcoops need to download the price list directly from producers who have an e-commerce site, and due to time constraints can not handle it directly E-circles.
Also there are various of Foodcoops management software and would benefit from a quick and automated system of sharing between these lists.
From here came the idea, as it seems that there is, to create a standard format that can describe any type of list prices, providing all types of products that can serve all those organizations that have the need to transfer lists for electronically.
It is also active on our forum a topic where we can discuss this project.
It was thus produced 0.01 version of this standard in xml format.
Producers who want to participate in this project should put on their pricelist.php a file server that makes a query to the database, processes the list, transforming it into an xml file and forwards output.
Assuming that the price list is saved in $filename (full path of the file) and $fileN (filename), for forwarding you can use the following PHP code:
header("Content-Type: text/plain; name=$filename");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
header("Content-Disposition: attachment; filename=$fileN");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: private");
header("Pragma: public");
readfile($filename);
Read also
Online Stands
An E-commerce with innovative features
Organic-ethical products
The ethics adds three new dimensions to the quality of products
Time Bank
Mutual voluntary exchange between users
Buying Groups management
Tools for Social and Collective Buying Groups management
E-circles
An innovative way of selling and distributing products
Countrymen abroad
We offer typical products that cannot be found to those who have chosen to emigrate
Social Shop
Create your shop on Facebook and Instagram in a few clicks
Solidarity Shopping
Suspended purchase in favor of needy families
Zero Waste
It sells end-of-day unsold goods and production waste
Local & Green
A small territorial distribution ideal for stores and cooperatives