Domenica, 22 Dicembre 2024 - 03:46:41

Pricelist interchange

Search of a price list of standards for all type of products

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

Support to small/medium companies
Relaunch of the productive sectors

Fair Trade Stores
The store's e-commerce ready in a few clicks

At the right price!
How we spend our money?

Solidarity Shopping
Suspended purchase in favor of needy families

Social Shop
Create your shop on Facebook and Instagram in a few clicks

Time Bank
Mutual voluntary exchange between users

E-circles
An innovative way of selling and distributing products

Zero Waste
It sells end-of-day unsold goods and production waste

Online Stands
An E-commerce with innovative features

Local & Green
A small territorial distribution ideal for stores and cooperatives


to write a comment