lunedì 15 dicembre 2014

php script for prestashop 1.6 - product import

Prestashop 1.6.x.x product import

There are some tasks that you need to evaluate before proceed to read this article.
Are you able to log to your site via ftp?
Do you have any confidence with kron task, like windows too?
if the answer is yes to both, you will be able to use this self php script, for import a excel file with category and products directly in the database of prestashop.
I have created for prestashop 1.6.0.9 and i think it will work for the next version, not for the previous.
the script follow this idea:

  1. check the created category
  2. update the category with new category if not present
  3. check the product already present in the catalogue
  4. if already present update the quantity and the price
  5. if not insert this new product
the point number 4th is really important because if you have a tons of product reload all of this could be a problem for your bandwidth...

in my previous post i have spoked about the point 1 and 2, now i show which table of the db are involved in the other point:
ps_product
ps_product_lang
ps_product_shop
ps_produt_shop_lang
ps_stock_available
 
for create the script you must reiterate many times like the number of the product around the tables, take care of the id's of each product and don't make confusion and in a fast way you will be able to obtain a good sripts.
good work


domenica 3 agosto 2014

php script for prestashop 1.6 categories

Categories auto upload script

After many times spent on the web looking for a simple way for upload the categories on the new release of prestashop 1.6.x.x, i have decided to create a php script by myself.
First of all the database schema is needed , and you can find here DATABASE SCHEMA .
Like showed by te schema the tablet used are:
  • ps_category
  • ps_category_lang
  • ps_category_shop 


Then you should create the script that follow the prestashop idea for the category, means  all the categories are subcategory of the root not only for the name but for ID too ,
Example: root id 1 nleft 1 nright 20
 cat1 id 2 nleft 1 nright 5
cat2 id 3 nleft 6 nright 7
this means that cat1 are subfolder of root and could have subcategory itself too, and cat2 is subfolder too but could not have subcategory.

When you have uploaded the category to ps_category don't forget to upload the textual part to ps_category_lang like the name of category.

I've created a script for upload the product by csv file too, but is a complete another story...
feel free to ask if i can help you,

Bye

mercoledì 16 aprile 2014

Bing places per Aziende

Finalmente è arrivato anche in Italia il posizionamento delle aziende sulle mappe di Bing, con il servizio gratuito “Bing places”. Posizionare la vostra attività sulle mappe di Bing è molto semplice, a questo link Bing places potrete con pochi passi scoprire se siete già presenti, e aggiungervi nel caso non ci siate.

Certo, prima di poter accedere il servizio dovete attivare un’account con microsoft, se non ne avete già uno.
La domanda reale però è: “ma mi interessa davvero?”; Si!
Posizionarsi su Bing può avere alcuni benefici, in primis perché anche se questo motore di ricerca raccoglie il 2-3%
del traffico italiano (come potete vedere nell’immagine) oggi ci sono pochissimi siti posizionati, dunque chi prima arriva meglio appare fin da subito.
Inoltre Bing rappresenta una ricerca più di “nicchia” rispetto a Google, dunque è più facile raggiungere clienti che si trasformano in un lead e magari in clienti, dunque se la nostra scheda azienda è posizionata abbiamo maggiori possibilità.

In ultima istanza vi è la semplicissima considerazione generale, se un servizio è offerto gratuitamente perché non approfittarne?