|
|
| |||||||
| PHP R10.net Php sevenler klubü. Kodlama soru(n)ları & acil php yardım hattı. |
| |
|
| | | LinkBack | Seçenekler |
| |||
| Arkadaşlar merhaba, wordpress de jigoshop diye bir eklenti kullanıyorum fakat bir özelliği ciddi sıkıntı yarattı, manuel olarak elle ekleme yapmam gerekiyor. Aşağıdaki kodla ; Kod: /** Lists a table of attributes for the product page */
function list_attributes() {
$attributes = $this->get_attributes();
if ($attributes && count($attributes)>0) {
echo '<table cellspacing="0" class="shop_attributes">';
$alt = 1;
foreach ($attributes as $attribute) {
if ($attribute['visible'] == 'no') {
continue;
}
$alt = $alt*-1;
echo '<tr class="';
if ($alt==1) echo 'alt';
echo '"><th>'.wptexturize($attribute['name']).'</th><td>';
$value = $attribute['value']; Anlayan arkadaşlar cevap verirse sevinirim, anlamayan olursa soru sorabilir daha açıklayıcı olmaya çalışırım. Teşekkürler şimdiden... |
| |||
| Alıntı:
Kod: /** Lists a table of attributes for the product page */
function list_attributes() {
$attributes = $this->get_attributes();
if ($attributes && count($attributes)>0) {
echo '<table cellspacing="0" class="shop_attributes">';
$alt = 1;
foreach ($attributes as $attribute) {
if ($attribute['visible'] == 'no') {
continue;
}
$alt = $alt*-1;
echo '<tr class="';
if ($alt==1) echo 'alt';
echo '">'.$attribute['name'].'<td>';
$value = $attribute['value']; Kod: /** Lists a table of attributes for the product page */
function list_attributes() {
$attributes = $this->get_attributes();
if ($attributes && count($attributes)>0) {
echo '<table cellspacing="0" class="shop_attributes">';
$alt = 1;
foreach ($attributes as $attribute) {
if ($attribute['visible'] == 'no') {
continue;
}
$alt = $alt*-1;
echo '<tr class="';
if ($alt==1) echo 'alt';
echo '">Resim ve Beden<td>';
$value = $attribute['value']; |
| |||
| Alıntı:
Ben ekrana ayrı ayrı resim ve beden yazdırırım ama bir işe yaramaz kayıt altına almaz beden ve resmi. Sistemi bilmiyorum. Admin panelde özellik ekleme ayarlama yeri olması lazım oradan eklemeniz lazım. |
| |||
| Eklenecek ölçüleri databaseden ekliyorum. Şuan ekranda şöyle bir görüntü var. Renk : Siyah/beyaz/kırmızı Beden: S/M/L/XL ben bu sistemi ingilizce yapıyorum ama siteyi yapan şahıs türkçe yapmış ve databaseden değiştirince hatalar oluşuyor. Bunun içinde manuel olarak elle eklemem gerekiyor, renk yerine color, beden yerine size yazıcam elle. Admin panelde özellik ekleme ayarlama yeri var, fakat bir kere isim girdiğinde bir daha onu değiştiremiyorsun yazıyor. Yani sabit. Bende bunun için otomatik ismi (yukardaki kodda belirtiğim yeri yani) manuelleştirmek istiyorum. Yani Kod: /** Lists a table of attributes for the product page */
function list_attributes() {
$attributes = $this->get_attributes();
if ($attributes && count($attributes)>0) {
echo '<table cellspacing="0" class="shop_attributes">';
$alt = 1;
foreach ($attributes as $attribute) {
if ($attribute['visible'] == 'no') {
continue;
}
$alt = $alt*-1;
echo '<tr class="';
if ($alt==1) echo 'alt';
echo '"><th>'.wptexturize($attribute['name']).'</th><td>';
$value = $attribute['value']; Konu mgbyazilim tarafından (03-02-2012 Saat 00:15:07 ) değiştirilmiştir.. |
| |||
| PHP- Kodu: Konu digiklan tarafından (03-02-2012 Saat 00:44:51 ) değiştirilmiştir.. |
![]() |
| Bookmarks |
| Seçenekler | |
| |