ãã®èšäºã¯ã ãããŒãžã£ãŒ ã Webéçº è ãããã³Yandex.Marketã«ååãé 眮ããããšãèšç»ããŠãããªã³ã©ã€ã³ã¹ãã¢ã®ææè ã察象ãšããŠããŸã ã ãã®è³æã«ã¯ãäžè¬çãªåé¡ãYandex.Marketã«ããŽãªã«ãã補åã®åé¡ã®è©³çŽ°ãããã³ææ°ã®ãã©ãã«ã«é¢ããæ å ±ãå«ãŸããŠããŸãã äŸ¡æ Œè¡šïŒç¹å¥ãªYML圢åŒïŒã®å¯çšæ§ãšæè¡çãªæ£ç¢ºãã¯ãæ€çŽ¢ã§è¡šç€ºããã補åã®ãªã¹ãå šäœããŠãŒã¶ãŒã«è¡šç€ºãããããšããŸã£ããä¿èšŒããªãããšã«èå³ããããŸãã ãªã³ã©ã€ã³ã¹ãã¢ã®ææè ã¯ã圌ã®è£œåæäŸã®nçªç®ã®éšåãæœåšçãªãã€ã€ãŒããé ãããŠããããšã«é·ãéæ°ä»ããªããããããŸãã ã ãã®è³æã¯ãYandex.Marketã«ååãé 眮ããéã«ã©ã®ãããªèœãšãç©Žãäºæ³ãããããããã³ãã®å¯ŸåŠæ¹æ³ãç解ããã®ã«åœ¹ç«ã¡ãŸãã ãã®èšäºã§ã¯ãååãYandex.Marketã«é 眮ããããã®äŸ¡æ Œãåãäžããååã®ãªãã·ã§ã³ïŒæè¡ãµããŒããµãŒãã¹ãŸãã¯å人ãããŒãžã£ãŒïŒã«ã€ããŠèª¬æããŸãã ãã®èšäºã«ã¯ãYMLãã¡ã€ã«ããããã°ããããã®å°ããªã³ãŒããå«ãŸããŠããŸãã
ããŒã1.ãªã³ã©ã€ã³ã¹ãã¢ã®ç»é²ãäŸ¡æ Œè¡šã®ç¢ºèªããã©ãã«ã·ã¥ãŒãã£ã³ã°
Yandex.Marketã·ã¹ãã ã«é 眮ããã«ã¯ããªã³ã©ã€ã³ã¹ãã¢ã§æ瀺ãããååããããŒããã£ã¹ãããããã«ãäºåã«YMLïŒvs XMLïŒåœ¢åŒã®äŸ¡æ Œè¡šãæºåããå¿ èŠããããŸãã ãã®ãããªYMLãã¡ã€ã«ã®ä»æ§ã¯ãYandexããŒãžã®Marketã»ã¯ã·ã§ã³ã«ãããŸãã ãªã³ã©ã€ã³ã¹ãã¢ããYandex.Marketã«ååãé 眮ããããŒãºã«é©åããŠããªãCMSã«åºã¥ããŠããå ŽåïŒååãšããŠããŸãã«ããã§ãïŒãYMLãã¡ã€ã«ãçæããããã®ã¹ã¯ãªãããæåã§èšè¿°ããå¿ èŠããããŸãã ãã®ãããªãã¡ã€ã«ã®å®çšçã§æ®µéçãªéçºã®äŸã¯ã Yandex.MarketïŒosCommerce 2.3ã®ã¹ã¯ãªããïŒã§ååãæŸéããããã®ç§ã®ããã°ã®YMLãã¡ã€ã«ã®èšäºã§ãã ãã®èšäºã§ã¯ãã³ãŒããèšè¿°ãããšãã«ãã®ã¹ã¯ãªãããå®æçã«åç §ããŸãã
ç§ãã¡ã®ãµã€ãã«YMLãã¡ã€ã«çšã®æ¢è£œã®ã¹ã¯ãªãããäœæããããããã€ãã®ãã£ãŒã«ãã«èšå ¥ããå¿ èŠããããŸã-ããããã ãé 眮ãªãã·ã§ã³ãã æ°ããã¹ãã¢ãç»é²ããããã®ãªã³ã¯ã¯ãã¡ãã§ãïŒ partner.market.yandex.ru/pre/index.xml ïŒYandex.Webmaster-補åãšäŸ¡æ Œãšæ··åããªãã§ãã ããïŒã é 眮ãªãã·ã§ã³ã«ã¯ä»¥äžãå«ãŸããŸãïŒäŸ¡æ Œãªã¹ãïŒãµã€ãã®YMLãã¡ã€ã«ãžã®ãªã³ã¯ãã³ã³ãã¥ãŒã¿ãŒããYMLãã¡ã€ã«ãããŠã³ããŒãã§ããŸããã15æ¥ããšã«æŽæ°ããå¿ èŠããããŸãïŒã é éæ å ±ïŒå°åãè²»çšïŒ; æ³çæ å ±ïŒæ³çæ å ±ã¯ãŠã§ããµã€ãã«æ²èŒããå¿ èŠããããŸã-ããŒãžã®ã¢ãã¬ã¹ãæå®ããå¿ èŠããããŸãïŒã泚æãåãåãããã®æå¹ãªé»è©±çªå·ïŒYandexã®åŸæ¥å¡ã¯ååã泚æããéã«ãã®çªå·ã«ã³ãŒã«ããã¯ããŸãïŒãªã©ã確èªã®ããã®äŸ¡æ Œè¡šã
YMLãã¡ã€ã«ã§èµ·ãããããšã©ãŒ
ã¹ã¯ãªããèªäœãæ£ããèšè¿°ãããŠãããšããŠããããšãã°è£œåã€ã¡ãŒãžã®ã¢ãã¬ã¹ã補åã®è€è£œãªã©ãå€ãã®ãšã©ãŒãçºçããå¯èœæ§ããããŸãã 圌ããç§ã«é»è©±ãããšãïŒæããã«ãç§ã®ããã°ã®è³æã«æ¡å ãããæäŸãããé£çµ¡å ã®é»è©±çªå·ã䜿çšããŠïŒãç»åã®äœãééã£ãŠããã®ããå°ããã±ãŒã¹ããããŸãã ãã®ãšã©ãŒã¯ãYandex.Marketã®ãã¯ãã«ã«ãµããŒãã§ç€ºãããŸããã
ç»åã®åºåã«é¢ãããšã©ãŒã¯ãã»ãšãã©ã®å Žåããµã€ãã«ã¢ããããŒããããç»åã®ååã«ç¡å¹ãªæåïŒã¹ããŒã¹ãªã©ïŒã䜿çšãããŠããå¯èœæ§ãããããã§ãã ãã®ãããªååãYandexã§æ¶åå¯èœãªURLã«å€æããã«ã¯ã察å¿ããphpé¢æ°rawurlencodeã䜿çšããã ãã§ååã§ãã ã«ã¿ãã°ã€ã¡ãŒãžã®URLã®åºåãå®è¡ãããã³ãŒããã©ã°ã¡ã³ããæ¢ããŠããŸãã OsCommerce 2.3ã®ã¹ã¯ãªããã§ã¯ãããã¯æ¬¡ã®ã»ã°ã¡ã³ãã§ãã
$src_file = $csite."catalog/images/".$tovar['picture'];
$ppy = "".$src_file."";
rawurlencode urlãšã³ã³ãŒãé¢æ°ãè¿œå ããŸãã ãããã£ãŠãã«ã¿ãã°ããç»åãåºåããã³ãŒãã¯æ¬¡ã®ããã«ãªããŸãã
$src_file = $csite."catalog/images/".rawurlencode(($tovar['picture']);
$ppy = "".$src_file."";
ãã€ã¯ãã©ããããïŒ éè€ãã補åã®ééãã¯ãããã»ã©éèŠã§ã¯ãããŸããã ãããã¯ã2ã€ïŒãŸãã¯ãã以äžïŒã®è£œåã®è¡šçŸã§åãåå/åãã¡ã€ã³ç»åã䜿çšãããšããäºå®ã®ããã«è¡šç€ºãããŸãã ãã®ãããã¢ãã«ãåãã§ãè²ãç°ãªãå Žåã¯ãååã«è²ïŒéãé»ãªã©ïŒãå²ãåœãŠããã®ãããªè£œåã®ã¡ã€ã³ç»åã察å¿ããåçã«çœ®ãæããã ãã§ååã§ãã
ããŒã2. Yandex.Marketã®äŸ¡æ Œãšååãªãã·ã§ã³ã å人管çè ã«äžãããããã®
Yandex.Marketã§ã®æ¯æãã¯ã¯ãªãã¯ã§è¡ãããŸãã CPC-æ¬ãš1.5ã«ãŒãã«ïŒ0.05 cuïŒãš3ã«ãŒãã«ã ïŒ0.1 cuïŒä»ã®ãã¹ãŠã®ååã ãã ããYandex.Marketã䜿çšããã«ã¯ãé éãæ¯æãå¿ èŠããããŸãã ããã§ã¯ãYandex.Marketãååã®ããã«2ã€ã®ãªãã·ã§ã³ãæäŸããŠããŸãã
- ãªãã·ã§ã³1.æšæºã 300ããããŸãã å ¥éãããè³éã¯ã¢ã«ãŠã³ãã«æ®ããã¯ãªãã¯ã®æ¯æãã®ã¿ã«äœ¿çšãããŸãã ãµãŒãã¹-æè¡ ãµããŒãïŒæ°æ¥ä»¥å ã«è³ªåã«çããŸãïŒã
- ãªãã·ã§ã³2ãããŒãœãã«ãããŒãžã£ãŒã®ãã¢ã¿ããã¡ã³ããä»ãã å¯äž9000ãããã å ¥éãããè³éã¯ã1çªç®ã®ãªãã·ã§ã³ãšåæ§ã«ãã客æ§ã®ã¢ã«ãŠã³ãã«æ®ããã¯ãªãã¯ã®æ¯æãã®ã¿ã«äœ¿çšãããŸãã ãµãŒãã¹-ããŒãœãã«ãããŒãžã£ãŒïŒæ°æé以å ã«ã¡ãŒã«ã§ããŸãã¯å¿ èŠã«å¿ããŠãªã¢ã«ã¿ã€ã ã§é»è©±ã§è³ªåã«çããŸããããã¯éåžžã«äŸ¿å©ã§ãïŒã ãã¹ãŠã®åé¡ã¯ååã«è¿ éã«æ€åºããã³è§£æ±ºãããŸãã
ãããã£ãŠãããŒãœãã«ãããŒãžã£ãŒããµãŒãã¹ãæäŸããŠãäœã倱ãããšã¯ãããŸããïŒå¯ä»ã®å šé¡ã¯ã¯ãªãã¯ã«ã®ã¿è²»ããããŸãïŒããæåã¯è¯ãå©ç¹ãåŸããããã®æ®µéã§äž»ãªè³ªåãšãã©ãã«ãçºçããŸãã å人ãããŒãžã£ãŒãšã®ä»äºã¯æåã®æãããé·ãæéå¯èœã§ãããåæã«ãæã ã®è²»çšã¯21,000ã«ãŒãã«ãè¶ ããå¿ èŠããããŸããããã¯å ·äœçã«ã¯ãè¿œãã€ããå¿ èŠããããŸãïŒããšãã°ãé«å€ã®ã¯ãªãã¯çïŒãç§ã®æèŠã¯æå³ããããŸããã
éåžžã«scåž³é¢ãªäººã ïŒçŽ°å¿ã§ãªããã°ïŒãç§ãšãµã€ãææè ïŒé¡§å®¢ïŒã®äž¡æ¹ã«ãé·ãéããããŠãããã®9000人ãã©ãã«è¡ãã®ãã詳现ã«å°ããæçµçã«ç§ãã¡ã¯å人çãªãããŒãžã£ãŒãšåãããšã®åçæ§ã確信ããŸããã1æ¥ããã100ã¯ãªãã¯ïŒ1æ¥ããã300ã«ãŒãã«= 1ãæããã9000ã«ãŒãã«ïŒã§ã©ã³ãã ã«ååŸãããšããŠãããã®éé¡ã¯ããªãæ£åœã§ãããšèšç®ãããŸãã ãã®æ©äŒãå©çšããŠãäºåã«Yandex.MarketããŒã ã®å šäœçãªå°è±¡ïŒéåžžã«å¥œæçã ã£ãïŒãå ±æããå人çãªãããŒãžã£ãŒã§ããNatalya Malakhovaã®ããæèãšæ³šæã称è³ããŸãã
ããŒã3ãç§ã¯è±¡ã§ã¯ãªãããªããºããæå³ããŸããã Yandex.Marketã®ééã£ãã«ããŽãªå®çŸ©ãè ãããã®ãããã³æ£ããæ¹æ³
ãã®ãããååã®åçã«ãŒãã䜿çšããŠäŸ¡æ Œè¡šã®ãã§ãã¯ã«åæ Œãããã¹ãŠãé 調ã§ãæéãæ¯æãããªã³ã©ã€ã³ã¹ãã¢ãããªã³ãã§ããããšãå€æããŸããã ãå ¬éããããªãã¡ãŒãã®æŠèŠãååŸããããšãã§ããŸãã Yandex.Marketã§2ã3ã®äž»èŠãªã¯ãšãªãå®è¡ããŠã補åãèŠãããšãã§ããªãã£ãå Žåã¯ããªã©ãã¯ã¹ããæºåãã§ããŠããŸãã ãã ããã»ãšãã©ã®èŠæ±ã«ã€ããŠã¯å®å šã«äžåšã§ãããä»ã®èŠæ±ã«ã€ããŠã¯ããããªéã§è¡šãããŸãã ãŸããäœããã®çç±ã§ãæ€çŽ¢çµæããåŸããããã¹ãŠã®ããžã§ã³ã¡ã¬ãããµã³ã°ã©ã¹ã«ãªã£ãŠããŸãïŒããèªäœã¯æ£ãããããŸããïŒã ãã£ãšé©ãã ãããŒãžã£ãŒãšã³ãã¥ãã±ãŒã·ã§ã³ããšããšãã»ãšãã©ã®ååãããµã³ãã«ãããã¡ã³ãºã·ã¥ãŒãºãããã¢ã³ããŒãã³ãããªã©ã®ã«ããŽãªã«åé¡ãããŠããããšãããããŸãããããŒãžã£ãŒã®åççãªä»®å®ã«ãããšããããã®ååã¯éèŠãªã¯ãšãªãæ€çŽ¢ããŠããŸãã ãã®ãããªççŸã¯éåžžã«å žåçã§ãã ããšãã°ããã¿ãªã¢ã¯ããã¹ã±ããããããŒã«ãã®ã«ããŽãªã«ã©ã®ããã«åé¡ãããããšãã話ãããŸãã-äžžããšããçç±ã§ã
äœãèµ·ãããèŠãŠã¿ãŸãããã
ç§ãã¡ã®ããŒãœãã«ãããŒãžã£ãŒã«ãããšãYandex.Marketã¯ãå€æ°ã®æšèã«åŸã£ãŠã«ããŽãªå¥ã«ååãèªåçã«åé¡ããŸãã ããã«ãYandex.Marketã§ã®æ€çŽ¢ã¯ã補åã®ååã ãã§ãªããåãåºæºã«åŸã£ãŠå®è¡ãããŸãã 補åã®ååã¯ããšã³ããªãªã¢ã«ããŒã9730 ATGã¡ã³ãºã¡ã¬ããè³Œå ¥ãããã®ããã«èŠããŸããã ååã«ãè³Œå ¥ããšããèšèã䜿çšããããšã¯åžå Žã«ãšã£ãŠåãå ¥ãããããã®ã§ããããã¿ãªã¢ã¯äžè¬ã«å質管çïŒCCMïŒã«åæ Œããããšã«é©ããŸããã äžçªäžã®è¡ã¯ãååãç·æ¥ã«ãªãã€ã¬ã¯ãããå¿ èŠããããšããããšã§ãã ãµã€ãã§ããããæåã§æžãæããã®ã¯å£®å€§ãªã¿ã¹ã¯ã§ãïŒæ°çŸã®ããžã·ã§ã³ã«ã€ããŠè©±ããŸãïŒã å®å®ããçµã¿åããã眮ãæããããšã§ãYMLãã¡ã€ã«èªäœã§ä¿®æ£ããã®ãã¯ããã«ç°¡åã§ãïŒããã§ã¯ããç·æ§çšã¡ã¬ããè³Œå ¥ãã...ããã女æ§çšã¡ã¬ããè³Œå ¥ãã...ãããåäŸçšã¡ã¬ããè³Œå ¥ãã...ããªã©ïŒ ã ããã«ããã¬ãŒã ã®æ€çŽ¢ã«è¡šç€ºããå¿ èŠããããããããã¬ãŒã ããšããåèªãè¿œå ããå¿ èŠããããŸãã 補åã®ååã衚瀺ããã³ãŒããã©ã°ã¡ã³ããæ¢ããŠããŸãã ç§ã®ã¹ã¯ãªããã§ã¯ããããã¯æ¬¡ã®è¡ã§ãã
$tovar['name'] = htmlspecialchars($tovar['name']);
...
$tovar[name]
phpé¢æ°str_replaceã䜿çšããŠãå®å®ããçµã¿åããã眮ãæããŸãã
$tovar['name'] = htmlspecialchars($tovar['name']);
$tovar['name'] = str_replace(' ', ' ()'), $tovar['name']);
$tovar['name'] = str_replace(' ', ' ()', $tovar['name']);
$tovar['name'] = str_replace(' ', ' ()', $tovar['name']);
$tovar['name'] = str_replace(' ', '', $tovar['name']);
$tovar['name'] = str_replace(' ', ' ', $tovar['name']);
...
$tovar[name]
ãã®çµæããç·æ§çšã¡ã¬ããšã³ããªãªã¢ã«ããŒã9730 ATGãè³Œå ¥ããšããã¿ã€ãã®ååã¯ãã¹ãŠããç·æ§çšã¡ã¬ãïŒãã¬ãŒã ïŒãšã³ããªãªã¢ã«ããŒã€9730 ATGãã«çœ®ãæããããŸããã ãã®åŸãåœç€Ÿã®è£œåã¯Yandex.Marketã«ãã£ãŠå¿ èŠãªã«ããŽãªïŒå åŠ-ã¡ã¬ã-ãã¬ãŒã ïŒã«åé¡ãããŸããã ããŒã¯ãšãªãæ€çŽ¢ãããšãã¯ããã¹ãŠãããŸããããŸãã
æåŸã«æšå¥šäºé ã Yandex.Marketã®é©åãªã«ããŽãªã«å ¥ããããããã³äž»èŠãªã¯ãšãªã®Yandex.Marketæ€çŽ¢çµæã«æ£åžžã«è¡šç€ºãããããã«ããã«ã¯ãé©åãªã¯ãšãªã®æ€çŽ¢çµæã«åå ããŠãã競åä»ç€Ÿã®æ¢ã«å ¬éãããŠãããªãã¡ãŒã§è£œååãäºåã«ç¢ºèªããŠãã ããã ç§ãã¡ã®å Žåããããã¯ãEyeglass frame [brand] [model] ...ããšãã圢åŒã®ãªãã¡ãŒã§ããã ãã®ãããªååãå®å šã«ã³ããŒããå¿ èŠã¯ãããŸãããçµã¿åããã®å žåæ§ã芳å¯ããã°ååã§ãã
èè ããã ãã¹ãŠã®ã³ã¡ã³ããŒã¿ãŒã«ããã£ãŒãããã¯ã«å¯Ÿããæè¬ãšæ¬æãäºåã«è¡šæããŸãã ãã¹ãŠã®ç¡èšã®ãã€ãã¹è ã«ãšã£ãŠïŒèšèã«ããæ¹å€ã¯ãç¡èšã®æ§ãããªè¡šçŸãããã¯ããã«æçšã§å»ºèšçã§ãã ãããã¯ããã泚ææ·±ãåŠç¿ã§ããããã«ãä¿®æ£å 容ãæ®ããŠãã ããã