Jump to content

darshan soni

Members
  • Posts

    11
  • Joined

  • Last visited

1 Follower

Profile Information

  • Activity
    Developer

darshan soni's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I have multishop configured in my prestashop..The voucher code for selected shop is not workin..Please help me...My code is as below... public static function getCustomerCartRules($id_lang, $id_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null) { if (!CartRule::isFeatureActive()) return array(); $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT * FROM `'._DB_PREFIX_.'cart_rule` cr LEFT JOIN `'._DB_PREFIX_.'cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = '.(int)$id_lang.') WHERE ( cr.`id_customer` = '.(int)$id_customer.' OR cr.group_restriction = 1 '.($includeGeneric ? 'OR cr.`id_customer` = 0' : '').' ) AND cr.date_from < "'.date('Y-m-d H:i:s').'" AND cr.date_to > "'.date('Y-m-d H:i:s').'" '.($active ? 'AND cr.`active` = 1' : '').' '.($inStock ? 'AND cr.`quantity` > 0' : '')); //echo "<pre>"; //print_r($result); //echo "</pre>"; //die; /** Added for Shop restriction *********/ foreach ($result as $key => $cart_rule){ $result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT * FROM `'._DB_PREFIX_.'cart_rule_shop` crs WHERE crs.id_cart_rule = '.$cart_rule['id_cart_rule']); echo "<pre>"; print_r($result2); echo "</pre>"; //die; if(count($result2)) { //echo "<br>----------------"; //echo "<br>SHOP".Context::getContext()->shop->id; //echo "<br>".$value2['id_shop']; //echo "<br>--------------------"; foreach($result2 as $key2 =>$value2){ if(Context::getContext()->shop->id != $value2['id_shop']) //echo ($result[$key]); unset($result[$key]); } } }
  2. <section id="block_contact_infos" class="footer-block col-xs-12 col-sm-4"> <div> <h4>{l s='Store Information' mod='blockcontactinfos'}</h4> <ul class="toggle-footer"> {if $blockcontactinfos_company != ''} <li> <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, {$blockcontactinfos_address|escape:'html':'UTF-8'}{/if} </li> {/if} <li><img src="{$imgs_dir}visa.png" alt="Visa" title="Visa"/></li> <li><img src="{$imgs_dir}mastercard.png" alt="Mastercard" title="Mastercard"/></li> {if $blockcontactinfos_phone != ''} <li> <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontactinfos'} <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span> </li> {/if} Before putting this code you must have two images i.e."visa.png" & "mastercard.png" in your theme's image directory..
  3. look in these 2 files if there is a "kontakta oss"...
  4. check in theme's blocklanguage module or blocksearch module...
  5. have you look at "themes->your theme->modules->blockuserinfo->blockuserinfo.tpl " this path for sure???because blockuserinfo module is installed on your store..
  6. it's look like it is come from blockuserinfo module...go to themes->your theme->modules->blockuserinfo->blockuserinfo.tpl...& find for a "Kontakta oss" in file...& then add anything you want....!!!! If it works than don't get forget to inform..!!!
  7. hello,i am new to prestashop..please help me!!! i have created a new module..in module's core file in displayForm() method there is a form action method likr this:: <form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&controller=AdminWordpressPrestashopSynchronization" method="post"> where controller=AdminWordpressPrestashopSynchronization is in the controller folder i.e::module->controller->admin->AdminWordpressPrestashopSynchronization.php... but it is giving a error The controller adminnotfound is missing or invalid.& Controller not found
×
×
  • Create New...