Skip to content

Instantly share code, notes, and snippets.

View ayoub-bousetta's full-sized avatar
💻
They see me coding, they hating...

AYOUB BOUSETTA ayoub-bousetta

💻
They see me coding, they hating...
View GitHub Profile
@ayoub-bousetta
ayoub-bousetta / hash
Last active August 29, 2015 14:07
Encrypt customers magento password after data import
<?php
error_reporting(E_ALL | E_STRICT);
$mageFilename = 'app/Mage.php';
if (!file_exists($mageFilename)) {
echo $mageFilename." was not found";
exit;
}
require_once $mageFilename;
Varien_Profiler::enable();
private function resetAll($datas){
foreach($datas as $key=>$pods){
$datas[$key]='';
}
return $datas;
}
setup(props) {
let products= ref(props.Product)
window.addEventListener('scroll',debounce((e)=>{
array.reduce((objectsByKeyValue, obj) => {
const value = keys.map(key => obj[key]).join(',');//to separate name and id
objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
return objectsByKeyValue;
}, {});
const groupByShopName = groupBy(['name','shop_id']);
AllMyCartElements= JSON.stringify(groupByShopName(existingEntries));
///search_bar
add_action( 'wp_ajax_load_search_res', 'lamacom_search_bar' );
add_action( 'wp_ajax_nopriv_load_search_res', 'lamacom_search_bar' );
function lamacom_search_bar() {