Jump to content

silentRun

Members
  • Posts

    136
  • Joined

  • Last visited

1 Follower

Profile Information

  • Activity
    Freelancer

Recent Profile Visitors

6,623,482 profile views

silentRun's Achievements

Newbie

Newbie (1/14)

41

Reputation

  1. Wow ! very nice module !! But, imagine this scenario: - UK geolocated "guest" visitor, access to the website. Which prices will be shown ? just UK's specific prices ? - Other use case: I define a specific prices for certain type of users. UK user login in the website. Which price will be shown, your module UK's specific price, or prestashop "custom" user specific price. By the way, I certainly recommend you to review your spanish trasnslation... it's kind hard to understand
  2. Hi !, I am planning to open a prestashop website with the following requirements: - prices are modified, depending on visitor's IP / country. - special prices for certain type of users ( already registered ), which will have another price rate. - Website in two languages: Spanish & English. - User can not change country. I have thought about implementing it by multishop, and then create some redirection on the homepage by htaccess. However, I don't know how to disallow user to see other country's product prices. Any suggestion ? Thanks !!!
  3. You can take a look to this module which implements PNG proportional watermark, compatible for prestashop 1.5.x
  4. You can try this module for flushing the cache, works pretty well
  5. Efectivamente. O tambien puedes optar por comprar una plantilla, o usar una plantilla gratuita, que sea "responsive" y de ahí, realizar las modificaciones
  6. Pues a ver, he seguido investigando y he econtrado una solución, me falta muy poco para implementarla en el fichero ReferralProgramModule.php. El tema es que me he creado un fichero php aparte, donde ejecuto este código, el cual funciona perfectamente: $ruleCombin = Db::getInstance()->executeS(' SELECT id_cart_rule FROM `'._DB_PREFIX_.'cart_rule` WHERE (id_cart_rule > 18) AND (id_cart_rule != 31) '); $cartRule=31; foreach ($ruleCombin as $existingCartRule) { $insertData = array( 'id_cart_rule_1' => $cartRule, 'id_cart_rule_2' => (int)$existingCartRule[id_cart_rule] ); //echo "añadida regla para cartrule: ".$existingCartRule[id_cart_rule]."<br/>"; Db::getInstance()->insert("cart_rule_combination", $insertData); } Sin embargo, cuando lo itento ejecutar directamente desde ReferralProgramModule.php, no se porque no se ejecuta ni se actualiza los campos de la base de datos que se deberían de actualizar $ruleCombin = Db::getInstance()->executeS(' SELECT id_cart_rule FROM `'._DB_PREFIX_.'cart_rule` WHERE (id_cart_rule > 18) AND (id_cart_rule != 31) '); $cartRule=31; foreach ($ruleCombin as $existingCartRule) { $insertData = array( 'id_cart_rule_1' => $cartRule, 'id_cart_rule_2' => (int)$existingCartRule[id_cart_rule] ); //echo "añadida regla para cartrule: ".$existingCartRule[id_cart_rule]."<br/>"; Db::getInstance()->insert("cart_rule_combination", $insertData); } Alguien sabe que puede ser el error, o como puedo depurar esto ? gracias de antemano
  7. I did some research and well, there is no method to define cart_rule_combinations I think. What I am doing is execute some query statment function crearReglas(){ $ruleCombin = Db::getInstance()->executeS(' SELECT id_cart_rule FROM `'._DB_PREFIX_.'cart_rule` WHERE (id_cart_rule > 18) AND (id_cart_rule != 31) '); $cartRule=31; foreach ($ruleCombin as $existingCartRule) { $insertData = array( 'id_cart_rule_1' => $cartRule, 'id_cart_rule_2' => (int)$existingCartRule[id_cart_rule] ); //echo "añadida regla para cartRule: ".$existingCartRule[id_cart_rule]."<br/>"; Db::getInstance()->insert("cart_rule_combination", $insertData); } } I I run this code from a external php file on the root on the prestashop, and runs fine. However, If i try to execute this code directly on the "ReferralProgramModule.php": $ruleCombin = Db::getInstance()->executeS(' SELECT id_cart_rule FROM `'._DB_PREFIX_.'cart_rule` WHERE (id_cart_rule > 18)'); $cartRule22=31; foreach ($ruleCombin as $existingCartRule) { $insertData = array( 'id_cart_rule_1' => $cartRule22, 'id_cart_rule_2' => (int)$existingCartRule[id_cart_rule] ); //echo "añadida regla para cartrule: ".$existingCartRule[id_cart_rule]."<br/>"; Db::getInstance()->insert("cart_rule_combination", $insertData); } Don't for why reason, but the code is not executed... is there any way to check what happends ? which is the error? thanks in advance
  8. Hello, I am trying to modify referralprogram to make the "cartRules" created by this module, only compatible with some cartRules... These cartRules are created by PHP, but I don't find the way / method, to tell to the created cartRule, that it is only compatible with certain cartRules.... any help, would be very appreciated.
  9. Hello there, I am looking for information to how set some "cart_rule_restriction" to the cartRules generated by "referralprogram". I know that I have to set "cart_rule_restriction" = 1, but I dont find the way to set the compatibility with the others existing cartRules, by code... any idea ? thanks a lot
  10. This doesnt fix the problem, just set that value to "1", but doesnt allow admin to set cartRule compatibility conditions ...
  11. Realizar una plantilla responsive, o utilizar estilos CSS adaptivos. estilos CSS para adaptar vista según resolución
  12. Muy buenas, A ver si algún experto de prestashop me pudiera echar una mano. Estoy modificando el módulo Referralsystem ( apadrinamiento de clientes ) y Loyalty ( fidelización de los clientes ), para que los códigos de cupón generados, no sean compatibles con otros 3 códigos de cupón que tengo ya creados en Prestashop ( ya que sería demasiada rebaja). Bueno, según veo, tan solo hace falta poner en el objeto cartRule, las otras "cartRule" ( regla de precios ), con las que es incompatible... pero no veo ningún método o contstante en dicha clase para tal cosa... ¿ Alguien tiene alguna idea de como se podría poner esta condición en el momento de la creación del cupón ? Gracias de antemano
  13. Hello, I know that my question is not exactly related with the thread. But I am modifying the prestashop referral module a bit, in order to make the vouchers generated by referral system, "incompatible"with some other defaults voucher code I have... But looking on the cartRule class, I don't see any rule to find out how to do this .... any idea ? Thanks a lot in advance
×
×
  • Create New...