Momwe mungatumizire zinthu ku PrestaShop

Momwe mungatumizire katundu ku PrestaShop

Mukatsegula sitolo yapaintaneti ku PrestaShop Ndikofunika kuganizira zofunikira zina kuti mupindule kwambiri ndi nsanjayi.

Mwachitsanzo, gawo lofunikira kwambiri pankhaniyi limakhudzana ndi mukudziwa kutumiza kunja kwa zinthu ku PrestaShop, zomwe zikufunika kuti muchite kuti muzitha kupanga zosunga zobwezeretsera, kapena kuti musamutsire zinthu zonse kusitolo ina yapaintaneti, ndi zina zambiri.

Milanduyi ikutipatsa chitsanzo cha chifukwa chake kuli kofunikira kudziwa njira yotumizira zonse zogulitsa pa intaneti zopangidwa mu PrestaShop ku fayilo ya CSV. Chotsatira tikambirana masitepe ndi malangizo a njirayi, kuti ogwiritsa ntchito azichita popanda zovuta zambiri.

Choyamba, ziyenera kudziwika kuti PrestaShop ili ndi batani lotumiza kunja lomwe lili pamwambapa pamndandanda wazogulitsa (mu Catalog> Zamgululi), zomwe zingawoneke ngati zokwanira kuthetsa funso lokhudza kutumizidwa kwa nkhanizi.

Komabe, batani ili silitumiza kunja zinthu zonse zamalonda, chifukwa limachotsa zinthu zingapo zofunika, monga: mafotokozedwe azinthu, kuphatikiza, zopanga, ndi zina zambiri.

Chifukwa chake, njira ina iyenera kuchitidwa kuphatikiza zinthu izi, njira yomwe tiwunikenso kuchokera m'sitolo PrestaShop 1.6 kapena .11 ndi kupitilira apo.

Kufunika kwa ma module ku Prestashop

Mmodzi wa zida zazikulu omwe atha kugwiritsidwa ntchito mu Pulatifomu yamagetsi ya Prestashop, Zimakhudzana ndi kukhazikitsidwa kwa ma module, omwe ndi zida zingapo zomwe titha kugwiritsa ntchito posungira tsamba lathu ndikudziwika bwino pakati pa ogwiritsa ntchito, omwe angakhale ndi chidwi ndi zomwe timapereka patsamba lino.

Apa ndipomwe fayilo ya ntchito yayikulu yama module a Prestashop.

Mwachitsanzo, izi zimagwira ntchito kuti zitha kupanga zina zowonetsera, monga mabulogu, zidziwitso zina kapena zowonjezera zachitetezo.

Momwemonso, amatilolanso kulumikizana ndi ntchito zina (zomwe zitha kuyimira njira zosiyanasiyana zolipilira kuti makasitomala azitha kulipira ma invoice) kapena ntchito zina zofunika, monga: kalozera kasitomala kapena kuwonetsa ndemanga pazolemba.

Mogwirizana dongosolo la module zomwe zingagwiritsidwe ntchito kuchokera pa Pulatifomu ya Prestashop, zimapangitsa kuti sitolo iliyonse patsamba lino ikhale yapadera komanso imakhala ndi chilichonse chomwe makasitomala amafunikira popanda kuyidzaza ndi zinthu zomwe sizosangalatsa kwa ogula.

Pangani fayilo ya CSV 

Fayilo ya PrestaShop CSV

Gawo loyamba liyenera kukhala ndi kupanga fayilo ya CSV ndi deta yonse yomwe ikufunika kuti mulowetse zinthuzo mu prestaShop ina, njira yomwe ikuchitika motere:

Choyamba muyenera kuwonjezera fayilo (AdminProductsController.php) mu PrestaShop yotsatila njira yogwiritsa ntchito, kenako lembani AdminProductsController.

/ kunyalanyaza / owongolera / admin /

Kodi chimachitika ndi chiyani ngati fayilo ili kale m'ndandanda yomwe wogwiritsa ntchitoyo akupita?

Fayiloyi ikakhalapo kale m'ndandanda yomwe ikupita, izi zitha kuchitika chifukwa ndizotheka kuti templateyo idapanga kale fayiloyo kuti ilembetse AdminProductsController.php.

Poterepa, zomwe ziyenera kuchitika kenako, ndikuwonjezera zomwe zanenedwa kusanachitike kutseka kwa tag ya PHP (?>).

Momwemonso, tikulimbikitsidwanso kuti musunge fayiloyi musanayikonze, yomwe ingakhale yothandiza kwambiri ngati njirayi sigwira ntchito, chifukwa mwanjira imeneyi mumakhala ndi cholembera kuti muyesenso osavutitsa moyo wanu. khalani ndi fayilo yoyambirira kuti mubwezeretse nthawi iliyonse yomwe mukufuna.

Kuyika gawo kuti mutumize mafayilo mu PrestaShop

Njira inanso yotumizira mafayilo ku PrestaShop itha kukhala iyi:

Choyamba, kuyika gawoli kumachitika, komwe mu chitsanzo ichi kungakhale kwa PrestaShop mtundu 1.6. Kukhazikitsa kwake ndikosavuta, mudzangolowa tabu yama module, komwe mungapeze makonzedwe ake. Izi zikachitika, menyu omwe ali ndi zosankha zingapo adzatsegulidwa.

M'chigawo chino muyenera kulowa mwayi MwaukadauloZida magawo, zomwe zidzatsegule zosankha zina kenako imodzi Katundu Katundu. Kwenikweni, ili ndiye gawo loyamba kuti mukwaniritse kasinthidwe ka gawo logulitsira katundu ku PrestaShop.

tumizani zogulitsa za prestaShop

Momwe mungayikitsire gawo mu Prestashop?

Kwenikweni, pali mitundu iwiri yayikulu yama module omwe amagawidwa molingana ndi mtundu wa kukhazikitsa womwe umafanana.

  • Yoyamba ndiyo kukhazikitsa kokha, kuchokera pa "Zowonjezera.prestashop.com" Mutha kutsitsa Apa
  • Mtundu wachiwiri wa ma module ukugwirizana ndi omwe atha kuyikidwa pamanja.

Kukhazikitsa kokha

Ngati zingagulidwe mwalamulo mu Msika wa Prestashop Malo ogulitsira aku Spain, ma module amatha kutsegulidwa mosavuta kuchokera kuofesi yakumbuyo, yomwe imakhala ndi oyang'anira sitolo.

Mwanjira iyi, ndikofunikira kulowa gawo la "Ma module ndi Ntchito”Kuchokera pazosankha zamagulu oyang'anira, kenako ndikulowetsa zomwe zalembedwa patsamba la Prestashop Addons.

Izi zikachitika, titha kuwona mndandanda wa ma module omwe alipo, limodzi ndi batani loyikira kuti muwonjezere ku sitolo.

Kukhazikitsa kokha

Kukhazikitsa modula pamanja

Kuti muyambe kukhazikitsa modula popanda kugwiritsa ntchito makina okhazikitsa, mu muyenera kukweza fayilo ya fayilo ndi ftp zomwe kale sizidzatsegulidwa kale mufoda ya "zigawo”Kuchokera ku Prestashop yathu.

Njira ina mmalo mogwiritsa ntchito akaunti ya ftp ndikugwiritsa ntchito mafayilo aPanel, monga yomwe idaperekedwa mu Prestashop Hosting yathu. Zotsatirazi zikukweza fayiloyo yomwe imayenera kukanikizidwa ndi chikwatu cha "ma module" kenako ndikuchotsegula ndi batani lamanja, monga zikuwonetsedwa pachithunzichi:

Gawolo litakwezedwa ndikutsegulidwa, titha kupita ku gawo "Ma module ndi Ntchito ku Prestashop", Ndipo pamenepo tidzaika dzina la gawo lomwe liziwoneka m'ndandanda, zomwe zilipo tsopano kuti tiwonjezere ndi kudina kosavuta.

Kukhazikitsa modula pamanja

Mtundu wa Ma module mu Prestashop

Pali ma module osiyanasiyana omwe angagwiritsidwe ntchito ndikugwiritsidwanso ntchito Prestashop kuwonjezera mawonekedwe ndi magwiridwe antchito athu malo ogulitsira pa intaneti ndi prestashop.

Zina mwazofunikira kwambiri zalembedwa pansipa:

  • Ma module a Analytics ndi Banners
  • Othandizira
  • Kutumiza (MRW, DHL, Envialia, SEUR, ndi zina)
  • Zipata zolipira (CECA, Banco Sabadell, Redsys, Cash pakubereka, PayPal, ndi zina zambiri)
  • Ma module a Blogs
  • Ma module a Social Networks

Gawo la Prestashop 1.6

Njira ina yochitira kutumiza kunja ku PrestaShop itha kukhala yotsatirayi:

chiiko

Choyamba, kuyika gawo kumachitika, komwe mwa chitsanzo ichi Kungakhale gawo la PrestaShop mtundu 1.6. Kukhazikitsa kwake ndikosavuta, mudzangolowa tabu yama module, komwe mungapeze makonzedwe ake.

Izi zikachitika, mndandanda wazosankha zingapo zidzatsegulidwa.

M'chigawo chino muyenera kulowa mwayi MwaukadauloZida magawo, zomwe zidzatsegule zosankha zina kenako imodzi Katundu Katundu. Kwenikweni, ili ndiye gawo loyamba kuti mukwaniritse kasinthidwe ka gawo logulitsira katundu ku PrestaShop.

Zosankha zakusinthitsa katundu ku PrestaShop

Pomwe mawonekedwe a module atsegulidwa, tidzapeza zosankha zingapo zaomwe angatumize kunja kwa zogulitsa ku PrestaShop, Pakadali pano, zosintha zotsatirazi ndi mapulogalamu atha kusankhidwa kuti akwaniritse izi:

Mutha kusankha chilankhulo chomwe mukufuna kutumiza kunja, pogwiritsa ntchito njira Chilankhulo. Imeneyi ndi njira yothandiza kwambiri yomwe imathandizira kuti mapangidwe ake akhale osavuta kwa ife, popeza mavenda ambiri sadziwa kugwiritsa ntchito Chingerezi kapena zilankhulo zina, ndichifukwa chake ndizosavuta kukhazikitsa kasinthidwe mu Spanish.

Zosankha zakusinthitsa katundu ku PrestaShop

Pomwe mawonekedwe a module atsegulidwa, tidzapeza zosankha zingapo zaomwe angatumize kunja kwa zogulitsa ku PrestaShop.

Pakadali pano, zosintha zotsatirazi ndi mapulogalamu atha kusankhidwa kuti akwaniritse izi:

Mutha kusankha chilankhulo chomwe mukufuna kutumiza kunja, pogwiritsa ntchito njira Chilankhulo. Imeneyi ndi njira yothandiza kwambiri yomwe imathandizira kuti mapangidwe ake akhale osavuta kwa ife, popeza mavenda ambiri sadziwa kugwiritsa ntchito Chingerezi kapena zilankhulo zina, ndichifukwa chake ndizosavuta kukhazikitsa kasinthidwe mu Spanish.

Mutha kusankha delimiter yomwe tikufuna kugwiritsa ntchito potumiza kunja, pogwiritsa ntchito njira Woperewera.

Zidzakhalanso zotheka kuwonetsa ngati zomwe mukufuna ndikutumiza kunja zinthu zonse kapena ngati, kumbali inayo, mukungofuna kutumiza zomwe zikugwira ntchito, njira yomwe ingapezeke m'magulu awiri omwe amachokera pa batani Tumizani zogulitsa?

Pambuyo pake, muyenera kuwonetsa ngati mukufuna kutumiza kunja kwa magulu onse kapena gulu lina, pamtundu womwe ungapezeke Gulu lazogulitsa.

Pomaliza, mutha kusinthanso njira yomwe ikuwonetsa ngati mtengo wokhala ndi misonkho kapena yopanda msonkho ungaphatikizidwe kunja, komwe kumaimiridwa mgulu la Misonkho yamtengo imaphatikizidwa kapena kupatula.

Pansipa pali chinsalu pomwe zosankhazi zikuwonetsedwa mwatsatanetsatane malingaliro ndi mawonekedwe akunja.

mankhwala prestashop

Zambiri zomaliza zomwe zimagwiritsidwa ntchito zimadalira kusintha uku. atumiza katundu ku PrestaShop. Pansipa pali chitsanzo cha momwe kutumizira kunja kumachitika malinga ndi gulu linalake lazogulitsa.

Mwachitsanzo, zopangidwa mgulu la "Akazi" zizitumizidwa kunja, momwe zinthu zosankhidwa zokha ndizomwe zingasankhidwe, ndipo kutumizidwa kunja kudzachitika ndi mtengo "wopanda msonkho". Kukonzekera uku kukuwonetsedwa motere:

Pomaliza, makonda oyenera atasankhidwa, dinani batani Tumizani, yomwe imapanga fayilo ya CSV yokhala ndi zambiri zazogulitsa kunja.

chiiko

Module yotumiza kunja kwamtundu wa CSV mu PrestaShop

Tsopano tiwunikanso malangizo kuti tikwanitse zogulitsa kunja ku PrestaShop omwe adayikidwa m'sitolo mu mtundu wa CSV.

Monga tawonera pamwambapa, mukakonza gawo lomwe mungakhazikitse ngati mukufuna kutumiza kunja ndi gulu linalake, ndiye kuti, ngati mukufuna kutumiza zinthuzo mchilankhulo china, malire kapena mtundu wa zinthu zomwe mukufuna kutumiza, ndi zina zambiri. .

Tiyenera kudziwa kuti kutumizako kumachitika mwachisawawa mu CSV, komanso kumakupatsaninso mwayi wosankha kutumizira mu mtundu wina, mwachitsanzo mu TXT. Chithunzi chotsatira chikuwonetsa zosankha izi zomwe zikupezeka kuti musinthe.

   ma module azogulitsa kunja

MySQL ndi mavuto otumiza kunja mu mtundu wa CSV

Chimodzi mwazovuta zomwe CSV ingatumize ku PrestaShop ndichakuti mwina mungafunikire kudziwa mysql, Mafunso onse amapangidwa kuchokera m'dongosolo lino, zomwe ndizomveka poganizira kuti database ya PrestaShop ili mkati MySQL.

Musanatumize kudzera pa mysql, Ndikotheka kuyesa ngati zosankha zomwe zakhazikitsidwa mwachisawawa zimatithandizira, kapena ngati, mbali ina, ndikofunikira kuzisintha kuti zichite izi. Mwanjira iyi, ngati matebulo azidziwitso awonedwa, ambiri mwa awa, kaya ndi zinthu, magulu kapena zikhumbo, ndi zina zambiri, mabatani angapo amawoneka omwe angatilole kuchita izi:

  • Tumizani batani: Batani ili limakupatsani mwayi wotumiza mwachindunji zidziwitso za tebulo lowonetsedwa ku CSV, ndizokhazo zomwe zili ndi vuto kuti sizotumiza kwathunthu zonse zomwe zingatheke, chifukwa zimatha kutumiza patebulo lazogulitsa, koma osafotokozera chilichonse .
  • Onetsani batani la funso la SQL: Njirayi imatiwonetsa funso la SQL lomwe lidzachitike batani logulitsa kunja likadina.
  • Tumizani batani kwa SQL Manager: Batani ili limakupatsani mwayi wofunsa funso lomwe limachitika mukasindikiza mwayi wosonyeza funso la SQL kwa woyang'anira SQL.

Nthawi zingapo, zosankhazi zitha kukhala zosakwanira kuti mugwiritse ntchito zinthu zonse zogulitsa kunja, chifukwa chake ndikofunikira kugwira ntchito yopita patsogolo kwa woyang'anira SQL. Mu mtundu wa 1.6 wa PrestaShop, woyang'anira SQL amapezeka mu "Advanced Parameters + SQL Manager" ndipo mu mtundu wa 1.7, amapezeka mu "Advanced Parameters + Database + SQL Manager".

Kodi SQL Manager ndi chiyani

Kwenikweni, woyang'anira SQL ndi woyang'anira nkhokwe yomwe mungayankhe mafunso awa ndikuwasunga kuti achite momwe angafunire. Pogwiritsa ntchito mafunso awa, mutha kutsitsa fayilo ya CSV yomwe imatulutsidwa mukamaliza.

Kuti muchite funso mkati mwa woyang'anira SQL, muyenera kungodinanso batani "Onjezani funso la SQL latsopano". Kuchita izi kudzatsegula bokosi lotsatirali:

Mtsogoleri wa Prestashop SQL

Chifukwa cha PrestaShop Zimatiwonetsa matebulo ndi malingaliro azomwe zilipo, izi zimatilola kuti tiwonjezere izi pazofunsa, monga zikuwonetsedwa pachithunzichi:

Pomaliza

Monga momwe mungaganizire, chinthu chabwino kwambiri kuchita kuti muthane ndi njirazi ndikuchita, chifukwa mwanjira imeneyi ndi pomwe luso lidzakwaniritsidwa zogulitsa kunja ku PrestaShop ngati katswiri.

Malire otumiza kunja azidalira kuchokera pano, pa kasamalidwe ndi luso la ogwiritsa ntchito.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.