[PRESTASHOP 1.3.1] New Theme + Search(Support Thai) + ฯลฯ แบบตัว install ครับ

เริ่มโดย kennn, 09 ธันวาคม 2009, 19:23:04

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

kennn

อ้างถึงจาก: momomoto ใน 07 มิถุนายน 2011, 15:25:53
อ้างถึงจาก: kennn ใน 07 มิถุนายน 2011, 13:56:10
อ้างถึงจาก: momomoto ใน 07 มิถุนายน 2011, 11:36:26
รบกวนถามเพื่อนๆหน่ะครับ (อาจจะมีคนเคย post ปัญหานี้แล้วนะครับ แต่ 118 หน้า ไม่มีแรงอ่านครับ  :-X)

- module สินค้าราคาพิเศษ แสดงว่า out of stock ครับ ในขณะที่มีสินค้าอยู่ในสต๊อกทั้งส่วนของ catalog และ combination ครับ
โมดูลเวอร์ชั่นไหนครับ ถ้าเป็นไปได้ส่งให้ดูหน่อยได้มัยครับ

- ผมไม่สามารถ set permission ในส่วนของ ftp ได้ครับ ได้สอบถามไปทาง admin ของระบบแล้วได้คำตอบว่า
"ให้เข้าไป reset owner ใน directadmin ก่อนครับ หากคุณติดตั้ง module theme ผ่านหน้า admin owner ของไฟล์จะเป็น apache ไม่ใช่ของคุณดังนั้นจะแก้ไขอะไรไม่ได้ ต้องเข้าไป reset owner ก่อนครับ"
แล้วผมจะ reset owner ยังไงครับ??
การ reset owner ผมไม่รู้จริงๆครับว่าทำจากส่วนไหน อาจจะเคยผ่านตาผมมาบ้างแต่ก็คงไม่ได้ใส่ใจ เพราะส่วนมากผมจะเซต Permission ผ่าน FTP ตลอดครับ การเซต Permission บางทีเราอาจะไม่ต้องเซตก็ได้นะครับ เช่น ถ้าใครใช้ Hostgator เราก็ไม่จำเป็นต้องเซต Permission เลยครับ และการเซต Permission เราสามารถทำผ่าน Files manage แทนได้นะครับ

- อยากจะเพิ่มข้อความบางอย่างในเมล์ที่ส่งยืนยันการสั่งของไปให้ลูกค้าครับ ไม่ทราบว่าจะต้องไปเพิ่มที่ไฟล์ไหนครับ?
Template email ส่วนใหญ่จะอยู่ที่โฟลเดอร์ mails และ modules/ชื่อโมดูล/mails/ โมดูลที่มีการใช้เมลบ่อยก็คือ Mail Alert ครับ

ขอบคุณมากเลยครับ

:wanwan017:


ขอบคุณคุณ Kenn มากเลยครับ รบกวนคุณ Kenn เช็คที่ www.tinycloset.com ครับ ในส่วนของ special ครับ...ข้อ 2 ผมจัดการได้แล้วครับ ต้องเข้าไปแก้ที่ control panel ของเวปครับ ^^ ส่วนข้อ 3 จะลองทำดูครับ...ขอบคุณอีกครั้งครับ ^^


เป็นที่หน้า Product-list นะครับ ไม่ใช้ส่วนของโมดูล ให้ลองตรวจเช็คที่ไฟล์ product-list.tpl หาบรรทัดนี้ครับ

อ้างถึง<span class="availability">

แล้วเช็คดูว่าโค้ดในช่วงนั้นเป็นตามนี้หรือไม่นะครับ

อ้างถึง<span class="availability">{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if}</span>

ถ้าโค้ดเป็นแบบด้านบน ก็ให้ดูที่การ Translations ครับ โดยไปที่หน้า Back Office >> Tools >> Translations ในหัวข้อ Modify translations ให้เลือก Front Office Translations และกดที่ภาษา EN หรือ TH ก่อนก็ได้ครับ และให้กด Ctrl+F5 ค้นหาคำว่า product-list เมื่อค้นหาเจอแล้ว ก็ตรวจสอบดูคำว่า Available ถูกแก้ไขเป็น Out of stock อยู่หรือไม่นะครับ ถ้าถูกแก้ไขเป็นคำว่า Out of stock เราก็แก้ไขให้เป็นคำที่มีความหมายใกล้เคียงกับคำว่า Available ในภาษานั้นๆ ถ้าเป็นภาษา EN เราก็แค่ปล่อยช่องนั้นว่างไว้ครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

momomoto


jzax

อ้างถึงจาก: jzax ใน 07 มิถุนายน 2011, 15:58:11
อ้างถึงจาก: kennn ใน 07 มิถุนายน 2011, 13:41:43
@jzax

ก่อนอื่นขอแนะนำเพื่อนๆท่านอื่นๆก่อนนะครับ การจะแก้ไข Template ของ Prestashop หรือ Template ของสคริปใดๆก็แล้วแต่ เรื่องของตัวแปรและ ID ของเลเยอร์ เป็นอะไรที่สำคัญมากๆนะครับ เราไม่ควรจะลบส่วนเหล่านั้นหรือทำการแก้ไข แม้แต่การเลเยอร์ ID ใหม่ขึ้นมาทับเลเยอร์ ID เก่า ก็อาจจะเกิดปัญหาการแสดงผลหรือการทำงานได้ครับ เป็นไปได้แก้ไขแค่ไฟล์ global.css แค่ไฟล์เดียวได้จะดีมากๆครับ

ตอนนี้เท่าที่ดูรายละเอียดปัญหาที่เกิดขึ้นนะครับ น่าจะมาจากการแก้ไขไฟล์ .tpl นะครับ ซึ่งอาจจะเผลอไปลบตัวแปรหรือ ID เลเยอร์ต่างๆ ทำให้การทำงานผิดพลาดไม่แสดงผล และมีปัญหาการแสดงผลใน IE7 ด้วยครับ รูปในส่วน Featured Products ไม่แสดงใน IE7 ผมตอบคำถามให้ดังนี้ก่อนนะครับ

1. ลองนำไฟล์ shopping-cart.tpl กับ shopping-cart-product-line.tpl จากของดั้งเดิมก็ได้นะครับ(เวอร์ชั่น Original) มาเปรียบเทียบกับไฟล์ที่เราแก้ไขไป ดูว่าส่วนไหนหายไปบ้างนะครับ โดยเฉพาะส่วนที่เป็นตัวแปรหรือส่วนทำงานของโปรแกรมที่มีรูปแบบแบบนี้ครับ  {$xxx} หรือ {if $xxx}, {for .... } ต่อมาก็เช็ค ID ของเลเยอร์ เช่น <table id="cart_summary" class="std"> ตรงที่ไฮไลน์สีแดงไว้คือส่วนของ ID ของเลเยอร์ครับ ส่วนใหญ่ใช้ในการทำงานร่วมกับ javascript

2. ส่วนนี้เดี๋ยวพอแก้ไขปัญหาไม่แสดงผลได้แล้ว จะมาบอกอีกทีครับ

3. รูปภาพ themes/theme001/img/onsale_th.gif หายไปครับ มันเลยแสดงเป็นข้อความออกมาครับ

ข้อ 4,5 ส่วนนี้เดี๋ยวผมแก้ไขโมดูลและไฟล์มาให้ดีกว่านะครับ

6. ส่วนนี้ยังมีปัญหากับ IE7 อยู่นะครับ แต่ผมจะบอกก่อนว่า ถ้าเป็นโมดูลที่ผมเคยแจกไป ที่โมดูลจะมีส่วนของ Config ให้ปิด/เปิด ส่วนแสดงราคา,รายละเอียดสินค้า, ปุ่มสั่งซื้อ, ปุ่ม view ได้ และสามารถกำหนดจำนวนแสดงผลของสินค้าได้ครับ

ถ้าไม่ไหวจริงในการแก้ไข ให้ส่งไฟล์ Template ต้นฉบับมานะครับ ถ้าเป็นไปได้ไม่เอาไฟล์ PSD นะครับ ขอแค่โฟลเดอร์ธีมนั้นๆพอครับ เดี๋ยวผมจะรวมไฟล์ให้ใหม่ครับ


ขอบคุณมากครับคุณเคน อันนี้ลิงก์โหลด Theme ล้วนนะครับ ไม่มี PSD
hxxp://www.4shared.com/file/YkZ9VHNs/theme.html


เดี๋ยวลองทำตามคุณเคนบอกก่อนนะครับได้ผลยังไงเดี๋ยวผมบอกคุณเคน เพราะผมไม่รู้จะไปทดสอบกับ IE ที่ไหนอ่ะคับ ทำได้แค่ safari กับ firefox  :-X
คุณเคนลองดูTheme ที่ส่งให้ไปพลางๆก่อนนะครับ ดูตอนคุณเคนว่างจริงๆนะครับ ผมไม่อยากรบกวนเวลางานอื่นของคุณเคนอ่ะคับ 

สวัสดีอีกรอบครับคุณเคน

ข้อ 1 ที่คุณเคนบอกให้ลองเปรียบเทียบ original ก็คือเท่าที่ดูแล้ว เหมือนคนที่ทำ theme ตัวนี้เค้าเปลี่ยนตั้งแต่แรกน่ะครับ เพราะว่าในโฟลเดอร์ theme ที่ส่งให้คุณเคนไป
คือ 2 ตัวนั้นจะเหมือนกันกับของผมเป๊ะเลยครับ แต่จะไม่เหมือนกับตัว original  เพราะจริงๆแล้วถ้าเป็น .php กับ .tpl ผมจะไม่ยุ่งเลยครับ เพราะผมไม่มีความรู้เรื่องนี้ซักติ๊ดเลยครับ ผมจะทำแต่ global.css เลยคิดว่า เป็นไปได้ไหมที่จะเป็นตั้งแต่ต้นฉบับจากเจ้าของ theme นี้น่ะครับ?

เพราะดูจากเดโม่แล้วในส่วน Featured ก็จะแสดงแต่รหัสเหมือนกันครับ ผมเลยคิดว่าเค้าอาจจะตั้งใจให้เป็นแบบนี้  แต่เป็นผมเองคับที่อยากให้มีข้อมูลเพิ่มมา  :-[

ตอนนี้ที่แก้ไขแล้วก็คือ ข้อ 3 ครับ ผมก๊อปปี้ onsale_en แล้วเปลี่ยนชื่อเป็น onsale_th อัพโหลดลงไปแล้ว ก็ปรากฎว่าใช้ได้แล้วครับ ขอบคุณมากครับผม
ยังไงขออนุญาติรบกวนคุณเคนแนะนำเรื่องการแก้ไขการแสดงผลใน IE7 หน่อยนะครับ ขอบคุณครับ

nuvan

คุณ Kenn รับแก้ไขปุ่ม search ไหมคะ พอดีหน้าเว็บ search หาสินค้าไม่พบค่ะ เคยโพสถามแล้วครั้งนึงและแก้ไขแล้วแต่มันยังไม่ได้จะรบกวนขอใหคุณ Kenn ช่วยแก้ให้หน่อยค่ะ คิดค่าเหนื่อยได้ค่ะ E-maiil: [email protected] website: www.dvdtwenty.com ส่วนไฟล์ที่จะต้องแก้ไขจะส่งให้ค่ะถ้าโอเค

kennn

อ้างถึงจาก: nuvan ใน 08 มิถุนายน 2011, 10:05:54
คุณ Kenn รับแก้ไขปุ่ม search ไหมคะ พอดีหน้าเว็บ search หาสินค้าไม่พบค่ะ เคยโพสถามแล้วครั้งนึงและแก้ไขแล้วแต่มันยังไม่ได้จะรบกวนขอใหคุณ Kenn ช่วยแก้ให้หน่อยค่ะ คิดค่าเหนื่อยได้ค่ะ E-maiil: [email protected] website: www.dvdtwenty.com ส่วนไฟล์ที่จะต้องแก้ไขจะส่งให้ค่ะถ้าโอเค

แค่ส่วนของ Search ผมช่วยแก้ไขให้ได้ครับ ไม่คิดค่าเหนื่อยครับ ยังไงผมขอรหัสเข้าหลังร้าน(สร้างบัญชี Admin ใหม่ 1 ชุดครับ จะได้ทำการลบออกที่หลังได้ครับ) รหัส FTP เพื่อเข้าแก้ไขไฟล์(สร้างบัญชี FTP 1 ชุด) PM ส่งมาได้เลยครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

jzax

อ้างถึงจาก: kennn ใน 25 มกราคม 2011, 17:17:49

การปรับแต่ง Block Featured Products

สำหรับท่านใดที่ถามคำถามไว้ ลองดูในหัวข้อนี้ก่อนนะครับ อาจจะช่วยตอบคำถามท่านได้ครับ การแนะนำการปรับแต่งในครั้งนี้เป็นการแนะวิธีปรับแต่งแบบง่ายๆนะครับ ไม่ถึงกับพลิกแพลงมากนัก แต่หากใครเข้าใจการใช้งาน CSS คงจะปรับแต่งในส่วนนี้ได้อีกเยอะหลากหลายรูปแบบครับ

ให้เปิดไฟล์ global.css และหาโค้ดตามด้านล่าง
อ้างถึง/* block in the center column */
#center_column p { margin: 0.5em 0; padding-left: 0.7em }
#center_column div.block { width: 536px; margin: auto }
#center_column div.block h4 {
   background: transparent url('../img/block_header_large.gif') no-repeat top left;  /*รูป Background ของหัวข้อ Block*/
   height: 17px;   /*ความสูงของหัวข้อ Block*/
   color: white     /*สีของชื่อหัวข้อ Block*/
}

/* Styles for products blocks */

/* block products (new, features, viewed, etc...) on left and right column */
.products_block li { margin-top: 0.2em }
.products_block li.item img { margin-right: 5px }
.products_block li.last_item { border: none }
.products_block li img {
   float: left;
   margin-right: 0.2em
}
.products_block p img {
   float: none;
   margin: 0 0 0 0.4em
}
.products_block li h5 {
   display: inline;
   font-size: 0.9em   /*ขนาดตัวหนังสือของชื่อสินค้า*/
}
.products_block li p a {
   font-weight: bold;  /*รูปแบบตัวหนังสือของรายละเอียดสินค้า*/
   font-size: 0.8em   /*ขนาดตัวหนังสือของรายละเอียดสินค้า*/
}
.products_block dl {
   clear: both;
   border-top: 1px solid #374853;
   padding: 0 4px 4px
}
.products_block dl dt {
   margin-top: 0.3em;
   color: #595a5e
}
.products_block a.button_large { margin: 0.4em 0.4em 0 0.4em }
.products_block ul.product_images li {
   border: none;
   float: left;
   clear: none
}

/* Special style for block products in center column */
#center_column .products_block { border: none }
#center_column .products_block { color: #595a5e }
#center_column .products_block h4 { line-height: 1.3em }
#center_column .products_block .block_content {
   background: #d0d3d8 none; 
   padding: 0
}
#center_column .products_block ul li:hover { background-color: #bdc2c9 }   /*สีพื้นหลังของแต่ละกรอบสินค้าเวลานำเม้าท์ไปชี้บนกรอบ(Mouse Over)*/
#center_column .products_block ul li {
   float: left;
   background-color: #d0d3d8;   /*สีพื้นหลังของแต่ละกรอบสินค้าในสถานะปกติ*/
   margin-top: 0;
   padding: 0 0 1px;
   width: 133px;
   border-right: 1px solid white;   /*สีเส้นขั้นด้านขวาของแต่ละกรอบสินค้า*/
   border-bottom: 1px solid white   /*สีเส้นขั้นด้านล่างของแต่ละกรอบสินค้า*/
}
#center_column .products_block ul .product_accessories_description {
   margin: 0;
   padding: 0;
   height: 280px
}

/*#center_column .products_block li.last_item { float: none; clear: both }*/
#center_column .products_block li.last_item_of_line { border-right: none }
#center_column .products_block li.first_item_of_line { clear: both }
#center_column .products_block li.last_line { border-bottom: none }
#center_column .products_block p, #center_column .products_block h5 { margin: 0.5em 0.1em }
#center_column div.products_block h5 { 
   display: block;
   margin-top: 8px;  /*กำหนดระยะห่างจากขอบบนของเลเยอร์หัวข้อสินค้า*/
   height: 2.57em   /*กำหนดความสูงของเลเยอร์หัวข้อสินค้า*/
}
#center_column div.products_block h5 a {
   color: #374853;   /*สีตัวหนังสือของหัวข้อสินค้า*/
   font-size: 1.1em   /*ขนาดตัวหนังสือของหัวข้อสินค้า*/
}
#center_column div.products_block ul li p {
   margin: 0;
   padding: 0
}
#center_column div.products_block p.product_desc {
   height: 9em;    /*กำหนดความสูงของเลเยอร์รายละเอียดสินค้า*/
   color: #595a5e  /*สีตัวหนังสือของรายละเอียดสินค้า*/
}
#center_column div.products_block a.product_image {
   display: block;
   background-color: transparent;
   margin-bottom: 2px;
   margin-left: 2px;
   width: 129px;
   height: 129px
}
#center_column div.products_block .product_accessories_description a.product_image {
   width: 118px;
   height: 85px
}
#center_column div.products_block a.product_description {
   display: block;
   width: 118px;
   height: 50px;
   margin-left: 2px;
}

#center_column div.products_block a.product_image img {
   float: none;
   margin: 0
}
#center_column div.products_block h5 { margin: 10px 5px 3px 5px }
#center_column div.products_block p.product_desc { margin: 0 5px }
#center_column div.products_block ul li p.product_desc a { font-weight: normal }
#center_column .products_block span.price {
   text-align: center;
   font-size: 1.5em;
   padding: 0.5em 0;
   /*display: block;*/
          /*ส่วนนี้เป็นส่วนของเลเยอร์ราคาสินค้า ปรับแต่งสีตัวหนังสือและขนาดตัวหนังสือได้ที่ส่วนนี้*/
}
p.price_container { text-align: center }
#center_column .products_block .featured_price { margin-top: 2.5em }
#center_column .products_block a.button,
#center_column .products_block a.exclusive,
  #center_column .products_block span.exclusive { margin: 0.5em auto }


คำแนะนำเพิ่มเติม
- บางส่วนที่ผมไม่ได้แนะนำ คือ ส่วนที่ไม่เกี่ยวข้องหรือบางส่วนยังไม่อยากแนะนำให้มือใหม่ปรับแต่งครับ เช่น ความกว้างของ Block หรือ ความกว้างของกรอบ เพราะหากมีการปรับแต่งความกว้างของ Block เราต้องปรับแต่งและคำนวน Padding และ margin ในส่วนอื่นๆตามด้วยครับ

- บางท่านอาจจะอยากรู้ว่าส่วนที่เรากำลังปรับแต่งนั้นอยู่ที่ตรงไหนภายใน Block หรือตำแหน่งอื่นๆก็แล้วแต่ ให้ใช้วิธีใส่โค้ดชุดนี้เพิ่มเข้าไปในส่วนที่กำลังปรับแต่งอยู่ครับ
border:1px solid red;
จะทำให้ท่านเห็นกรอบสีแดงแสดงขึ้นมาในส่วนที่กำลังปรับแต่งอยู่ครับ

คุณเคนครับ ผมสามารถเอาการปรับแต่งนี้มาช่วยในการทำเป็น 2 column ได้ด้วยหรือเปล่าครับ มันจะมีผลอะไรกับส่วนของ .tpl อื่นๆมั้ยครับ

kennn

@jzax และทุกท่านครับ


โค้ด CSS บางกระทู้ที่ผมมาแสดงไว้นั้นส่วนใหญ่ผมจะอ้างอิงจากตัว Original เป็นหลักครับ และบางชุดที่นำมาแสดงไว้ก็เป็นเฉพาะบางเว็บครับ อย่างโค้ดที่คุณ jzax นำมาอ้างอิงไว้ผมว่าไม่น่าจะเข้ากับธีมที่ใช้อยู่ครับ ยังไงเดี๋ยวผมดูให้อีกทีครับ

แล้วก็ขออภัยบางท่านที่ผมอาจจะไม่ได้มาตอบคำถามให้นะครับ บางทีผมจะเลือกตอบคำถามที่ตอบได้ไวก่อนครับ บางคำถามก็กำลังเทสเพื่อให้ได้คำตอบที่ลงตัวและสามารถใช้ได้ทุกคนครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

nuvan

อ้างถึงจาก: kennn ใน 08 มิถุนายน 2011, 14:09:02
อ้างถึงจาก: nuvan ใน 08 มิถุนายน 2011, 10:05:54
คุณ Kenn รับแก้ไขปุ่ม search ไหมคะ พอดีหน้าเว็บ search หาสินค้าไม่พบค่ะ เคยโพสถามแล้วครั้งนึงและแก้ไขแล้วแต่มันยังไม่ได้จะรบกวนขอใหคุณ Kenn ช่วยแก้ให้หน่อยค่ะ คิดค่าเหนื่อยได้ค่ะ E-maiil: [email protected] website: www.dvdtwenty.com ส่วนไฟล์ที่จะต้องแก้ไขจะส่งให้ค่ะถ้าโอเค

แค่ส่วนของ Search ผมช่วยแก้ไขให้ได้ครับ ไม่คิดค่าเหนื่อยครับ ยังไงผมขอรหัสเข้าหลังร้าน(สร้างบัญชี Admin ใหม่ 1 ชุดครับ จะได้ทำการลบออกที่หลังได้ครับ) รหัส FTP เพื่อเข้าแก้ไขไฟล์(สร้างบัญชี FTP 1 ชุด) PM ส่งมาได้เลยครับ

ส่งไปแล้วค่ะ ถ้าไม่ได้รับ PM บอกด้วยนะคะ

jzax

 :o  วันนี้ผมมาบ้านเพื่อน ลองเปิดจาก IE  ไม่โชว์รูปส่วน featued จริงๆด้วยครับ  ตรงเวลาเอาเมาส์วาง ส่วนที่ไฮไลท์สีเทาก็เล็กลงด้วยน่ะครับ
ผมอยากทราบว่าทำไมมันถึงแตกต่างจาก browser ตัวอื่นเหรอครับคุณเคน ? ผมลองอย่างอื่นรวมทั้ง Chrome ก็ได้หมดเลยน่ะครับ 

nuvan

ตอนสมัครสมาชิก อยากให้กรอกเบอร์มือถือ โดยไม่ให้เว้นว่างไว้ (บังคับกรอกนะค่ะ) ต้องไปแก้ไขตรงไหนเอ่ย :wanwan044: รบกวนผู้รู้  :wanwan017:

nuvan




1.ตรงช่องชำระเงินเข้าบัญชี อยากเพิ่ม ธนาคารกรุงเทพ เข้าไปน่ะค่ะ ต้องทำยังไง
2.อยากเปลี่ยนข้อความจาก หมายเหตุ เป็น แผ่นแถม/Option

kennn

อ้างถึงจาก: nuvan ใน 09 มิถุนายน 2011, 13:51:12



1.ตรงช่องชำระเงินเข้าบัญชี อยากเพิ่ม ธนาคารกรุงเทพ เข้าไปน่ะค่ะ ต้องทำยังไง
2.อยากเปลี่ยนข้อความจาก หมายเหตุ เป็น แผ่นแถม/Option

ไปที่โมดูล Paidinform แล้วใส่คำว่า "ธนาคารกรุงเทพ" ในหัวข้อ Bank Account อย่าลืมใส่ข้อมูลบัญชีธนาคารกรุงเทพของเราในโมดูล Bank wire Thai ด้วยนะครับ

ปล. ทดสอบใช้งาน Search ได้เลยนะครับ แนะนำให้ใส่คำช่วยค้นหาสินค้านั้นๆในช่อง Tags ของสินค้าทุกตัวนะครับ จะช่วยให้การค้นหาสินค้าเจอได้ง่ายขึ้น เน้นว่าใส่เฉพาะคำที่คิดว่าเกี่ยวกับสินค้านั้นๆจริงๆ เป็นคำช่วยค้นหา ไม่มีผลกับ SEO ครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Piscess

ขอบคุณค่ะ คุณเคน
แบบว่าเริ่มขี้เกียจลงข้อมูลซ้ำๆแล้ว เลยต้องหาวิธีลัด :wanwan012:


ไปเห็นเวบนึงใช้ธีมของที่นี่น่ะค่ะ ออกมาสวยเชียว

http://www.prestashopic.com/free-prestashop-themes-of-january-2011

nuvan

อ้างถึงจาก: kennn ใน 09 มิถุนายน 2011, 17:59:20
อ้างถึงจาก: nuvan ใน 09 มิถุนายน 2011, 13:51:12



1.ตรงช่องชำระเงินเข้าบัญชี อยากเพิ่ม ธนาคารกรุงเทพ เข้าไปน่ะค่ะ ต้องทำยังไง
2.อยากเปลี่ยนข้อความจาก หมายเหตุ เป็น แผ่นแถม/Option

ไปที่โมดูล Paidinform แล้วใส่คำว่า "ธนาคารกรุงเทพ" ในหัวข้อ Bank Account อย่าลืมใส่ข้อมูลบัญชีธนาคารกรุงเทพของเราในโมดูล Bank wire Thai ด้วยนะครับ

ปล. ทดสอบใช้งาน Search ได้เลยนะครับ แนะนำให้ใส่คำช่วยค้นหาสินค้านั้นๆในช่อง Tags ของสินค้าทุกตัวนะครับ จะช่วยให้การค้นหาสินค้าเจอได้ง่ายขึ้น เน้นว่าใส่เฉพาะคำที่คิดว่าเกี่ยวกับสินค้านั้นๆจริงๆ เป็นคำช่วยค้นหา ไม่มีผลกับ SEO ครับ


:'( :'( ซึ้งในน้ำใจค่ะ ขอบคุณมากๆ ค๊า

kennn

@jzax

กรณีของคุณ jzax เท่านั้นนะครับ

ที่ไฟล์ themes/theme001/shopping-cart.tpl ให้นำโค้ดทั้งหมดด้านล่างไปทับเลยนะครับ
<script type="text/javascript">
<!--
var baseDir = '{$base_dir_ssl}';
-->
</script>

{capture name=path}{l s='Your shopping cart'}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}
{include file=$tpl_dir./binding_top.tpl}
<h2>{l s='Shopping cart summary'}</h2>

{assign var='current_step' value='summary'}
{include file=$tpl_dir./order-steps.tpl}

{include file=$tpl_dir./errors.tpl}

{if isset($empty)}
<p class="warning">{l s='Your shopping cart is empty.'}</p>

{else}
{if isset($lastProductAdded) AND $lastProductAdded}
{foreach from=$products item=product}
{if $product.id_product == $lastProductAdded.id_product AND (!$product.id_product_attribute OR ($product.id_product_attribute == $lastProductAdded.id_product_attribute))}
<div class="cart_last_product">
<div class="cart_last_product_header">
<div class="left">{l s='Last added product'}</div>
</div>
<a  class="cart_last_product_img" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" /></a>
<div class="cart_last_product_content">
<h5><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5>
{if $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}
</div>
<br class="clear" />
</div>
{/if}
{/foreach}
{/if}
<p>{l s='Your shopping cart contains'} {$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</p>
<div id="order-detail-content" class="table_block">
<table id="cart_summary" class="std">
<thead>
<tr>
<th class="cart_product first_item">{l s='Product'}</th>
<th class="cart_description item">{l s='Description'}</th>
<th class="cart_ref item">{l s='Ref.'}</th>
<th class="cart_availability item">{l s='Avail.'}</th>
<th class="cart_unit item">{l s='Unit price'}<sup>{l s='*'}</sup></th>
<th class="cart_quantity item">{l s='Qty'}</th>
<th class="cart_total last_item">{l s='Total'}</th>
</tr>
</thead>
<tfoot>
{if $priceDisplay}
<tr class="cart_total_price">
<td colspan="6">{l s='Total products (tax excl.):'}</td>
<td class="price">{convertPrice price=$total_products}</td>
</tr>
{else}
<tr class="cart_total_price">
<td colspan="6">{l s='Total products (tax incl.):'}</td>
<td class="price">{convertPrice price=$total_products_wt}</td>
</tr>
{/if}
{if $total_discounts != 0}
{if $priceDisplay}
<tr class="cart_total_voucher">
<td colspan="6">{l s='Total vouchers (tax excl.):'}</td>
<td class="price-discount">{convertPrice price=$total_discounts_tax_exc}</td>
</tr>
{else}
<tr class="cart_total_voucher">
<td colspan="6">{l s='Total vouchers (tax incl.):'}</td>
<td class="price-discount">{convertPrice price=$total_discounts}</td>
</tr>
{/if}
{/if}
{if $total_wrapping > 0}
{if $priceDisplay}
<tr class="cart_total_voucher">
<td colspan="6">{l s='Total gift-wrapping (tax excl.):'}</td>
<td class="price-discount">{convertPrice price=$total_wrapping_tax_exc}</td>
</tr>
{else}
<tr class="cart_total_voucher">
<td colspan="6">{l s='Total gift-wrapping (tax incl.):'}</td>
<td class="price-discount">{convertPrice price=$total_wrapping}</td>
</tr>
{/if}
{/if}
{if $shippingCost > 0}
{if $priceDisplay}
<tr class="cart_total_delivery">
<td colspan="6">{l s='Total shipping (tax excl.):'}</td>
<td class="price">{convertPrice price=$shippingCostTaxExc}</td>
</tr>
{else}
<tr class="cart_total_delivery">
<td colspan="6">{l s='Total shipping (tax incl.):'}</td>
<td class="price">{convertPrice price=$shippingCost}</td>
</tr>
{/if}
{/if}
<tr class="cart_total_price">
<td colspan="6">{l s='Total (tax excl.):'}</td>
<td class="price">{convertPrice price=$total_price_without_tax}</td>
</tr>
<tr class="cart_total_voucher">
<td colspan="6">{l s='Total tax:'}</td>
<td class="price">{convertPrice price=$total_tax}</td>
</tr>
<tr class="cart_total_price">
<td colspan="6">{l s='Total (tax incl.):'}</td>
<td class="price">{convertPrice price=$total_price}</td>
</tr>
{if $free_ship > 0 AND !$isVirtualCart}
<tr class="cart_free_shipping">
<td colspan="6" style="white-space: normal;">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td>
<td class="price">{convertPrice price=$free_ship}</td>
</tr>
{/if}
</tfoot>
<tbody>
{foreach from=$products item=product name=productLoop}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{* Display the product line *}
{include file=$tpl_dir./shopping-cart-product-line.tpl}
{* Then the customized datas ones*}
{if isset($customizedDatas.$productId.$productAttributeId)}
{foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization'}
<tr class="alternate_item cart_item">
<td colspan="5">
{foreach from=$customization.datas key='type' item='datas'}
{if $type == $CUSTOMIZE_FILE}
<div class="customizationUploaded">
<ul class="customizationUploaded">
{foreach from=$datas item='picture'}<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>{/foreach}
</ul>
</div>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">
{foreach from=$datas item='textField' name='typedText'}<li>{l s='Text #'}{$smarty.foreach.typedText.index 1}{l s=':'} {$textField.value}</li>{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td class="cart_quantity">
<a class="cart_quantity_delete" href="{$base_dir_ssl}cart.php?delete&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;token={$token_cart}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" title="{l s='Delete this customization'}" class="icon" /></a>
<p>{$customization.quantity}</p>
<a class="cart_quantity_up" href="{$base_dir_ssl}cart.php?add&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;token={$token_cart}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" /></a><br />
<a class="cart_quantity_down" href="{$base_dir_ssl}cart.php?add&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;op=down&amp;token={$token_cart}" title="{l s='Substract'}"><img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Substract'}" /></a>
</td>
<td class="cart_total"></td>
</tr>
{assign var='quantityDisplayed' value=$quantityDisplayed $customization.quantity}
{/foreach}
{* If it exists also some uncustomized products *}
{if $product.quantity-$quantityDisplayed > 0}{include file=$tpl_dir./shopping-cart-product-line.tpl}{/if}
{/if}
{/foreach}
</tbody>
{if $discounts AND $total_discounts != 0}
<tbody>
{foreach from=$discounts item=discount name=discountLoop}
<tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}">
<td class="cart_discount_name" colspan="2">{$discount.name}</td>
<td class="cart_discount_description" colspan="3">{$discount.description}</td>
<td class="cart_discount_delete"><a href="{$base_dir_ssl}order.php?deleteDiscount={$discount.id_discount}" title="{l s='Delete'}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" class="icon" /></a></td>
<td class="cart_discount_price"><span class="price-discount">
{if $discount.value_real > 0}
{if !$priceDisplay}{convertPrice price=$discount.value_real*-1}{else}{convertPrice price=$discount.value_tax_exc*-1}{/if}
{/if}
</span></td>
</tr>
{/foreach}
</tbody>
{/if}
</table>
<p><sup>{l s='*'}</sup> {l s='When discount quantity applies, the unit price may be rounded up to 2 decimals'}</p>
</div>

{if $voucherAllowed}
<div id="cart_voucher" class="table_block">
{if $errors_discount}
<ul class="error">
{foreach from=$errors_discount key=k item=error}
<li>{$error|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
<form action="{$base_dir_ssl}order.php" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<p>
<label for="discount_name">{l s='Code:'}</label>
<input type="text" id="discount_name" name="discount_name" value="{if $discount_name}{$discount_name}{/if}" />
</p>
<p class="submit"><input type="submit" name="submitDiscount" value="{l s='Add'}" class="button" /></p>
</fieldset>
</form>
</div>
{/if}
{$HOOK_SHOPPING_CART}
{if ($carrier->id AND !$virtualCart) OR $delivery->id OR $invoice->id}
<div class="order_delivery">
{if $delivery->id}
<ul id="delivery_address" class="address item">
<li class="address_title">{l s='Delivery address'}</li>
{if $delivery->company}<li class="address_company">{$delivery->company|escape:'htmlall':'UTF-8'}</li>{/if}
<li class="address_name">{$delivery->lastname|escape:'htmlall':'UTF-8'} {$delivery->firstname|escape:'htmlall':'UTF-8'}</li>
<li class="address_address1">{$delivery->address1|escape:'htmlall':'UTF-8'}</li>
{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'htmlall':'UTF-8'}</li>{/if}
<li class="address_city">{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}</li>
<li class="address_country">{$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if}</li>
</ul>
{/if}
{if $invoice->id}
<ul id="invoice_address" class="address alternate_item">
<li class="address_title">{l s='Invoice address'}</li>
{if $invoice->company}<li class="address_company">{$invoice->company|escape:'htmlall':'UTF-8'}</li>{/if}
<li class="address_name">{$invoice->lastname|escape:'htmlall':'UTF-8'} {$invoice->firstname|escape:'htmlall':'UTF-8'}</li>
<li class="address_address1">{$invoice->address1|escape:'htmlall':'UTF-8'}</li>
{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'htmlall':'UTF-8'}</li>{/if}
<li class="address_city">{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}</li>
<li class="address_country">{$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if}</li>
</ul>
{/if}
{if $carrier->id AND !$virtualCart}
<div id="order_carrier">
<h4>{l s='Carrier:'}</h4>
{if isset($carrierPicture)}<img src="{$img_ship_dir}{$carrier->id}.jpg" alt="{l s='Carrier'}" />{/if}
<span>{$carrier->name|escape:'htmlall':'UTF-8'}</span>
</div>
{/if}
</div>
{/if}
<p class="cart_navigation">
<a href="{$base_dir_ssl}order.php?step=1{if $back}&amp;back={$back}{/if}" class="exclusive" title="{l s='Next'}">{l s='Next'} &raquo;</a>
<a href="{if $smarty.server.HTTP_REFERER && strstr($smarty.server.HTTP_REFERER, 'order.php')}{$base_dir}index.php{else}{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'}{/if}" class="button_large" title="{l s='Continue shopping'}">&laquo; {l s='Continue shopping'}</a>
</p>
<p class="clear"><br /><br /></p>
<p class="cart_navigation_extra">
{$HOOK_SHOPPING_CART_EXTRA}
</p>
{/if}
{include file=$tpl_dir./binding_bottom.tpl}


ที่ไฟล์ themes/theme001/shopping-cart-product-line.tpl ให้นำโค้ดทั้งหมดด้านล่างไปทับเลยนะครับ
<tr class="{if $smarty.foreach.productLoop.last}last_item{elseif $smarty.foreach.productLoop.first}first_item{/if}{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}alternate_item{/if} cart_item">
<td class="cart_product">
<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" /></a>
</td>
<td class="cart_description">
<h5><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5>
{if $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}
</td>
<td class="cart_ref">{if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if}</td>
<td class="cart_availability">
{if $product.active AND ($product.allow_oosp OR $product.stock_quantity > 0)}
<img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" />
{else}
<img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" />
{/if}
</td>
<td class="cart_unit">
<span class="price">
{if !$priceDisplay}{convertPrice price=$product.price_wt}{else}{convertPrice price=$product.price}{/if}
</span>
</td>
<td class="cart_quantity"{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} style="text-align: center;"{/if}>
{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if}
{if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0}
<a class="cart_quantity_delete" href="{$base_dir_ssl}cart.php?delete&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;token={$token_cart}" title="{l s='Delete'}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" class="icon" /></a>
<p>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</p>
<a class="cart_quantity_up" href="{$base_dir_ssl}cart.php?add&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;token={$token_cart}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" /></a><br />
<a class="cart_quantity_down" href="{$base_dir_ssl}cart.php?add&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;op=down&amp;token={$token_cart}" title="{l s='Subtract'}"><img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Subtract'}" /></a>
{/if}
</td>
<td class="cart_total">
<span class="price">
{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}
{if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.total_customization_wt}{if $priceDisplay == 2} {l s=' Tx'}{/if}{/if}{if $priceDisplay == 2}<br />{/if}
{if $priceDisplay}{convertPrice price=$product.total_customization}{if $priceDisplay == 2} {l s='-Tx'}{/if}{/if}
{else}
{if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.total_wt}{if $priceDisplay == 2} {l s=' Tx'}{/if}{/if}{if $priceDisplay == 2}<br />{/if}
{if $priceDisplay}{convertPrice price=$product.total}{if $priceDisplay == 2} {l s='-Tx'}{/if}{/if}
{/if}
</span>
</td>
</tr>



และกรณีที่รูปภาพในส่วน Featured Products ไม่แสดงให้แก้ไขดังนี้ครับ ไปที่ modules/homefeatured/homefeatured.php พอเปิดไฟล์ขึ้นมาให้เลื่อนไปด้านล่างสุด หาบรรทัดนี้ครับ
อ้างถึง'products' => $products,

จากนั้นเพิ่มโค้ดเข้าไปจะได้ดังนี้ครับ
อ้างถึง'products' => $products,
'homeSize' => Image::getSize('home'),


ต่อมาแก้ไขเพิ่มเติมอีกนิดนึงที่ไฟล์ themes/theme001/header.tpl หาบรรทัดนี้ครับ
อ้างถึงvar roundMode = {$roundMode};
แก้ไขเป็น
อ้างถึง//var roundMode = {$roundMode};

คือปิดการใช้งานมันครับ มันทำให้เกิด Script error ครับ

[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

ss_soda

prestashop มีระบบ แนะนำลูกค้าไหมครับ
เช่นใครแนะนำลูกค้าใหม่มาจะได้ผลตอบแทน 1% ของยอดสั่ง ตลอดไป ประมาณนี้อ่ะครับ

kennn

อ้างถึงจาก: ss_soda ใน 09 มิถุนายน 2011, 23:31:17
prestashop มีระบบ แนะนำลูกค้าไหมครับ
เช่นใครแนะนำลูกค้าใหม่มาจะได้ผลตอบแทน 1% ของยอดสั่ง ตลอดไป ประมาณนี้อ่ะครับ

มีครับ แต่ไม่เป็น % นะครับ เป็น Point ครับ และแต่ละ Point ใช้สั่งซื้อสินค้าเท่านั้นครับ แต่อยู่ที่เราประยุกต์ใช้นะครับ แต่ถ้าจะทำเป็นระบบ Aff หรือระบบเครือข่ายยังไม่โอเคนะครับ เพราะระบบแนะนำลูกค้าได้จำกัดครับ
[direct=https://www.strikeprofx.com/th/]StrikeProFx โบรกเกอร์ Forex ฝาก-ถอนรวดเร็ว[/direct]
[direct=https://www.strikeprofx.com/]StrikeProFx Best Forex Broker Fast Deposit&Withdraw[/direct]

Piscess

ใครใส่ไฟล์ .gif  ที่เฮดของ PRESTASHOP ได้บ้างคะ
ทำไมเราใส่มิได้เลย พยามมานานแล้วค่ะ แฟลชก็ใส่แล้ว ได้แล้ว มึนๆกะไฟล์ .gif
   :-X

~SolariS~

อ้างถึงจาก: Piscess ใน 10 มิถุนายน 2011, 01:20:09
ใครใส่ไฟล์ .gif  ที่เฮดของ PRESTASHOP ได้บ้างคะ
ทำไมเราใส่มิได้เลย พยามมานานแล้วค่ะ แฟลชก็ใส่แล้ว ได้แล้ว มึนๆกะไฟล์ .gif
   :-X
ไปกำหนดชื่อไฟล์ใน header.tpl เลยครับ ถ้าอัพทางหลังร้านมันจะแปลงเป็น jpg ครับ
[direct=http://www.amuaylek.com]เสื้อผ้าแฟชั่น พร้อมส่ง[/direct]
[direct=http://www.makeupintrend.com]ขายเครื่องสำอางค์[/direct]
[direct=http://www.facebook.com/amuaylekshop]เสื้อผ้าแฟชั่น พร้อมส่ง[/direct]
[direct=http://littledogcm.blogspot.com]ปอมเมอเรเนียน[/direct]

Piscess