This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PLACE THIS HTML where you want the star rating and "Read x Reviews" to show up | |
// <div id="bvReview" data-productid="3898"></div> | |
// ..................... Javascript for bazaarvoice reviews and ratings for a single product ................................. | |
$(document).ready(function() { | |
// This part just readies the bvReview DIV to be filled with the star rating and a "Read reviews" link | |
var bvrrDiv = $('#bvReview'); | |
var productId = bvrrDiv.attr("data-productid"); | |
bvrrDiv.append("<div id='BVRRInlineRating-" + productId + "'>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is how you would use it. Pass in your collection | |
// along with an individual callback as well as a batch callback | |
Mage::getSingleton('stcore/resource_iterator_batched')->walk( | |
$collection, | |
array($this, 'batchIndividual'), | |
array($this, 'batchAfter'), | |
self::BATCH_SIZE | |
); | |
public function batchIndividual($model) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
* then use this script to apply updates and refresh the config cache without | |
* causing a stampede on the config cache. | |
* | |
* @author Colin Mollenhour | |
*/ | |
umask(0); | |
ini_set('memory_limit','512M'); |
NewerOlder