Jump to content

efxtr

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by efxtr

  1. I figured out how to do this, it's not that easy though, I modified referencemodule files and hooks.
  2. Arkadaşlar selamlar, Referans (referral) sistemi ile ilgili bir sorunum var, normalde referans olmak istediğiniz kişilerin e posta adresini giriyorsunuz, bu kullanıcılara link gönderiliyor, link aşağıdaki gibi: .....authentication.php?create_account=1&sponsor=Mmp4a0d...... Ben daha basit bir sistem planlıyorum, kullanıcı oluşturduğum linki kopyalayıp forum vs yerlerde kullanabilsin istiyorum. 1. Mağazada ek bir sayfa oluşturup, kullanıcıya özel bir link oluşturmak istiyorum örneğin kullanıcının id'si 155 diyelim ...authentication.php?create_account=1&referrer_id=115 2. bir kullanıcı bu link ile siteye girip kayıt olduğunda, olşturduğum başka bir tabloya bunu kaydetmek istiyorum. Bu işin büyük kısmını halledebilirim, tek sıkıntım, linke tıklandığında referrer_id'yi nasıl -daha doğrusu nerede- çekeceğim ve kodu nereye yerleştirmem gerektiğiyle ilgili. Authcontoller.php 'yi inceledim ancak işin içinden çıkamadım. Bilen varsa bir el atsın lütfen I can manage the first part, I can also manage updating database but I have no clue about where to put the code regarding the second part. I should check if there is a parameter (I mean referrer_id) and if so, update my referral table after successful registration. I'm sure that it's very basic issue for those seasoned PHP coders, so thanks in advance for your replies.
  3. Hi everyone, I've a basic issue to solve. I want to give my customers links so that they can send this link forums etc. In return, I'll give them shop points. Current referral module is working by sending e mails to friends containing a link like: .....authentication.php?create_account=1&sponsor=Mmp4a0d...... What I want to do is, 1. adding a page (ie with CMS) which contains specific link for the user like: ...authentication.php?create_account=1&referrer_id=115 (ie 155 is the user id) 2. when someone else registers with using that link, update the table that I created to keep user id and sponsored id I can manage the first part, I can also manage updating database but I have no clue about where to put the code regarding the second part. I should check if there is a parameter (I mean referrer_id) and if so, update my referral table after successful registration. I'm sure that it's very basic issue for those seasoned PHP coders, so thanks in advance for your replies.
  4. check out: http://www.prestashop.com/forums/topic/158597-solved-ajax-animation-problem-on-adding-chart/page__p__770100#entry770100
  5. Tools > tranlation > import diyerek dil dosyasını siteye yükledin değil mi? yanlış yaptığın bir şey olduğunu sanmıyorum, çeviriler eksik.
  6. Hi there, I finally figured out the problem and now it's solved. Actually, I tried several times to modify ajax-cart.js in modules/blokcart2 but it didn't work. I finally realized that I should modify ajax-cart.js in js\modules\blockcart2. Anyway, what I did is below: I changed line 224 before the modification: after modification: I didn't try lower z values but it's probably going to work with low values. Cheers
  7. I'm experiencing a strange problem. I changed background color of the store at global.css as: .clearfix { background: none repeat scroll 0 0 #F3F3F3; } or .clearfix { background-color: #F3F3F3; } after one of this changes, prestashop is no longer showing add to chart animation. Actually, it only shows last part of the animation when picture is about to fade out and near the cart -at the top part of the store. When I delete #F3F3F3, problem disappears. Any idea?
  8. I made some modifications on prestashop_new and now, when I mouse over the cart (on top of page part) nothing happens. I examined two stores with firebug and I found that there is a "<div id="cart_block" class="block exclusive" style="display: none;">" part under the "<div class="sf-contener clearfix">" in "normal" store while I cant find "<div id="cart_block" class="block exclusive" style="display: none;">". So, somehow that div part disappeared but I couldn't figure out where should I make correction. Any idea? Thanks in advance.
  9. I made some modifications and now, when I mouse over the cart (on top of page part) nothing happens. I examined two stores with firebug and I found that there is a "<div id="cart_block" class="block exclusive" style="display: none;">" part under the "<div class="sf-contener clearfix">" in "normal" store while I cant find "<div id="cart_block" class="block exclusive" style="display: none;">". So, somehow that div part disappeared but I couldn't figure out where should I make correction. Any idea? Thanks in advance.
  10. Is there any internal function that saves duration of each shopping session for each customer in a table- if this kind of table exists- ?
  11. hostingin kapasitesini artırmak
  12. Selamlar, Temel sayılabilecek, aslında olmazsa olmaz bazı modüllerin parayla satılmamasının daha doğru olacağını düşünüyorum. Ticari olarak bakıldığında evet, Presta Team'in iyi para kazanması gerekiyor ancak bunu ufak modülleri satarak değil, hizmet/destek satarak yapmaları daha doğru olacaktır. Orta ve uzun vadede sistemin oraya doğru evrileceğinden eminim. Gerçek hayata dönecek olursak - en azından ücretsiz modül ve tema sayısını artırmaları iyi olurdu.
  13. I solved this issue by re-opening CSV file with notepad and then saving with UTF-8.
  14. Thanks for the solution, now I can import CSV files but there is a problem with special Turkish characters (like İ, ğ etc). I can manually modify Categories names in Admin panel -> Catalog section, but there should be an easier way to solve this issue?
  15. Arkadaşlar, Kimseden cevap gelmedi ancak kör topal kendim hallettim Henüz optimizasyon yapmadım, belki birileriin ihtiyacı olabilir diyerek kodu paylaşıyorum. Planladığımdan farklı bir yol izledim, kısıtlamayı farklı iki tarih arasında değil aynı gün içinde ayarladım. Limit olarak, alışveriş tutarını 100, alışveriş miktarını 1 olarak ayarladım. Sürekli değiştireceğim değerler olmayacağı için veritabanında yeni bir tablo oluşturup oradan çekme ihtiyacı duymadım. One page checkout kullandığım için, \controllers\OrderOpcController.php dosyası üzerinde çalıştım. Herkese iyi çalışmalar dilerim. protected function _getPaymentMethods() fonksiyonu içinde /* Check minimal amount */ $currency = Currency::getCurrency((int)self::$cart->id_currency); kodunun altına $MaksimumAlisverisLimiti=100; $Musteri = new Customer((int)self::$cookie->id_customer); $MusteriID=(int)self::$cookie->id_customer; $MusteriAdSoyad= $Musteri->firstname.' '.$Musteri->lastname; $Sepet=self::$cart->getOrderTotal(); $AlisverisLimiti=1; $IlkGun= date("Y-m-d").' 00:00:00'; $SonGun= date("Y-m-d").' 23:59:59'; $VeritabaniSonuc = mysql_query("SELECT SUM(`ps_orders`.`total_products_wt`) as Toplam ,`ps_orders`.`id_customer` FROM `ps_orders` WHERE ((`ps_orders`.`id_customer` =".$MusteriID.") and (`ps_orders`.`date_add` BETWEEN `".$IlkGun."` AND `".$SonGun."`) ) )"); $row = mysql_fetch_array($VeritabaniSonuc); $ToplamHarcama= $row['Toplam']; $VeritabaniSonuc2 = mysql_query("SELECT COUNT(`ps_orders`.`id_order`) as Sayi FROM `ps_orders` WHERE ((`ps_orders`.`id_customer` =".$MusteriID.") and (`ps_orders`.`date_add` BETWEEN \"".$IlkGun."\" AND \"".$SonGun."\") )"); $row2 = mysql_fetch_array($VeritabaniSonuc2); $ToplamAlisveris= $row2['Sayi']; if ($ToplamAlisveris >= $AlisverisLimiti) { echo "<p class=\"warning\">".Tools::displayError("Sayın ".$MusteriAdSoyad.", bir gün içerisinde maksimum ".$AlisverisLimiti." defa alışveriş yapılabilmektedir. <br>Yarın yine bekleriz.")."</p>" ; } if ($ToplamAlisveris >= $AlisverisLimiti) return ' '; if ( (self::$cart->getOrderTotal() ) >= $MaksimumAlisverisLimiti) echo "<p class=\"warning\">".Tools::displayError("Sayın ".$MusteriAdSoyad.", günlük maksimum alışveriş sayısı ".$AlisverisLimiti.", alışveriş sepeti limiti ".$MaksimumAlisverisLimiti." TL\'dir.". " Toplam harcamanız: ".number_format ( $Sepet , 0 , '.' , '.' )." TL\'dir.")."</p>". "<p class=\"warning\">".Tools::displayError(" "."Lütfen sepetinizden ".number_format ( (-$MaksimumAlisverisLimiti+$Sepet), 0 , '.' , '.' )." TL miktarında ürün çıkartınız.")."</p>" ; if ( (self::$cart->getOrderTotal() +$ToplamHarcama) >= $MaksimumAlisverisLimiti) return ' ';
  16. Değerli arkadaşlar, Müşteri alışverişi bitirmeden önce, o ay içinde yaptığı alışverişin toplam miktarını öğrenip, mevcut alışveriş sepeti + toplam harcaması belirli bir miktarın üzerindeyse uyarı mesajı vererek alışverişi bitirmesini engellemek istiyorum. Çalıştırmak istediğim örnek SQL kodu aşağıdaki şekilde (değişkenlerin altı çizili): SELECT sum(`ps_orders`.`total_products_wt`) FROM ps_orders WHERE ((`ps_orders`.`id_customer` =MUSTERI_NO) and (`ps_orders`.`date_add` BETWEEN ICINDE_BULUNDUGUMUZ_AYIN_ILK_GUNU AND AYIN_SON_GUNU) ) Modül içerisinde, yukarıdaki query'den gelen değer+ mevcut alışveriş sepeti değerini toplayıp, örneğin 5000'in altındaysa alışverişin bitmesine izin vereceğim, üstündeyse hata mesajı ürettirmeye çalışıyorum. PHP ile kod yazmayalı çok zaman olduğu için modül içerisinde değişkenleri tam olarak nasıl çekeceğimden emin değilim. Belirli bir noktaya geldim ancak tecrübeli birisi kodları toparlayabilirse ya da en azından yönlendirme yapabilirse çok memnun olurum. 1- MUSTERI_NO yerine $customer_id'i kullanabilirim sanırım, 2- İlk gün için (AYIN_ILK_GUNU) date("m/d/Y", strtotime(date('m').'/01/'.date('Y').' 00:00:00')); Son gün için (AYIN_SON_GUNU) date("m/d/Y", strtotime('-1 second',strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00')))); 3- Alışveriş sepetinin mevcut tutarına $total_products_wt ile ulaşabilirim sanırım? Şimdiden teşekkürler
  17. Dear all, I want to check total number and amount of previous purchases between beginning of the current month and current day (for example: between january 1st 2012 to january 4th 2012) of customers before let them check out. It shouldn't be too tricky hovewer I'm new in prestashop and it's been long time since I wrote my last PHP code : / Thanks in advance
  18. Hello all, It's possible to set minimum purchase amount to valide an order, is it possible to set a maximum amount for that? For example, user can purchase up to 5.000$, if he exceeds it (ie 6.000$) I want system to warn him and doesn't allow to proceed.
×
×
  • Create New...