- Details
- Written by: Eliot Rayner
- Category: Uncategorised
{source}<?php
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$images = false;
if ($images) {
$doc->addStyleSheet(JUri::base(true) . '/modules/mod_ersd_typeahead_search/assets/css/module.css?ver=1.2');
} else {
$doc->addStyleSheet(JUri::base(true) . '/modules/mod_ersd_typeahead_search/assets/css/modulecss.css?ver=1.2');
}
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();
vmLanguage::loadJLang('mod_virtuemart_cart', true);
vmLanguage::loadJLang('com_virtuemart', true);
vmJsApi::jQuery();
$numberincrease = 1;
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
function initTypeAhead(control, optsHash) {
$(control).typeahead(optsHash);
}
var taOptsHash = {
input: '.js-typeahead-product_name',
minLength: 3,
maxItem: false,
dynamic: true,
highlight: true,
hint: true,
group: true,
cache: false,
compression: true,
cancelButton: true,
debug: true,
emptyTemplate: "No results found for <b>{{query}}</b>",
template: function () {
return '<span class="ui blue small label">{{display}}</span>';
},
source: {
product: {
template: function (query, item) {
var color = "green";
var stock_status = "checkmark"; 
if (item.available_stock <= 0) {

color = "red";

stock_status = "warning";
}
return '<span class="title" style="color: ' + color + ';">{{display}} </span><i class="icon-' + stock_status + '" style="color: ' + color + ';"></i>';
},
ajax: {
type: "GET",
path: "product",
url: "<?php echo JUri::base(true);?>/autocomplete_typeahead.php?",
data: {
q: "{{query}}",
i: true,
u: true,
c: true
},
dataType: "json",
}
}
},
callback: {
onShowLayout: function (node, query) {
node.attr('placeholder', 'search product name ...');
node.closest('form').find('.typeahead__list').css('max-height', $(window).height() - 200 + "px");
},
onHideLayout: function (node, query) {
node.attr('placeholder', 'Search');
},
onResult: function (node, query, result, resultCount) {
if (query === "") return;
var text = "";
if (result.length > 0 && result.length < resultCount) {
text = "Showing <strong>" + result.length + "</strong> of <strong>" + resultCount + '</strong> elements matching "' + query + '"';
} else if (result.length > 0) {
text = 'Showing <strong>' + result.length + '</strong> elements matching "' + query + '"';
} else {
text = 'No results matching "' + query + '"';
}
$('#result-container').html(text);
},
onLayoutBuiltBefore: function (node, query, result, resultHtmlList) {
resultHtmlList.find('li[data-search-group="product"]').remove();
return resultHtmlList;
},
onClickAfter: function (node, a, item, event) {
node.closest('.row_article').find('.cell_sku .js-typeahead-product_sku').val(item.product_sku).text(item.product_sku);
var replaceImage = '';
if (typeof item.file_url === "undefined"){
replaceImage = '' +
'<img src="/images/70x70.png" alt="" class="product-image" style="min-height: 70px;">' + ' ';
} else {
replaceImage = '<a title="' + item.display + '" rel="catproduct_images_0" href="' + item.product_url + '">' +
'<img src="' + item.file_url + '" alt="' + item.display + '" class="product-image">' + '</a> ';
}
node.closest('.row_article').find('.cell_image').html(replaceImage);
node.closest('.row_article').find('.cell_priceWithoutTax span.PricepriceWithoutTax').text(item.baseprice);
node.closest('.row_article').find('.cell_salesPrice span.PricesalesPrice').text(item.basepricewithtax);
node.closest('.row_article').find('input.catproduct_product_datas').replaceWith(item.product_datas);
if (item.available_stock <= 0) {
node.closest('.row_article').find('.cell_quantity a.notify').replaceWith('<a href="' + item.product_url + '/notify" class="btn btn-notify btn-info btn-md" title="Notify Me" target="_top" rel="no-follow">Notify Me</a>');
node.closest('.row_article').find('.cell_quantity div.quantities').addClass( "hide" );
} else {
node.closest('.row_article').find('.cell_quantity div.quantities').removeClass( "hide" );
node.closest('.row_article').find('.cell_quantity a.btn-notify').addClass( "hide" );
}
},
onCancel: function (node, item, event) {
var replaceImage = '<a title="" rel="catproduct_images_0" href="/">' +
'<img src="/" alt="" class="product-image" style="min-height: 70px;">' + '</a> ';
node.closest('.row_article').find('.cell_image').html(replaceImage);
node.closest('.row_article').find('.cell_sku .js-typeahead-product_sku').val('').text('');
node.closest('.row_article').find('.cell_priceWithoutTax span.PricepriceWithoutTax').text('0.00');
node.closest('.row_article').find('.cell_salesPrice span.PricesalesPrice').text('0.00');
node.closest('.row_article').find('.cell_quantity input').val('0').text('0');
node.closest('.row_article').find('input.catproduct_product_datas').replaceWith('<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">');
//form[name='catproduct_form'] .cell_quantity input")
changeQuantity(node.closest('.row_article').find('.cell_quantity input'));
}
}
};
var taOptsSkuHash = {
input: '.js-typeahead-product_sku',
minLength: 2,
maxItem: false,
dynamic: true,
highlight: true,
hint: true,
group: true,
cache: false,
compression: true,
cancelButton: true,
debug: true,
emptyTemplate: "No results found for <b>{{query}}</b>",
template: function () {
return '<span class="ui blue small label">{{display}}</span>';
},
source: {
product: {
template: function (query, item) {
var color = "green";
var stock_status = "checkmark";
if (item.available_stock <= 0) {
color = "red";
stock_status = "warning";
}
return '<span class="skurow" style="color: ' + color + ';">' +
'<span class="sku">{{display}} </span>' +
'<span class="title">{{product_name}} </span>' +
'<i class="icon-' + stock_status + '" style="color: ' + color + ';"></i>' +
'</span>';
},
ajax: {
type: "GET",
path: "product",
url: "<?php echo JUri::base(true);?>/autocomplete_typeahead.php?",
data: {
q: "{{query}}",
i: true,
u: true,
c: true,
s: "sku"
},
dataType: "json",
}
}
},
callback: {
onShowLayout: function (node, query) {
node.attr('placeholder', 'search product sku ...');
node.closest('form').find('.typeahead__list').css('max-height', $(window).height() - 200 + "px");
},
onHideLayout: function (node, query) {
node.attr('placeholder', 'Search');
},
onResult: function (node, query, result, resultCount) {
if (query === "") return;
var text = "";
if (result.length > 0 && result.length < resultCount) {
text = "Showing <strong>" + result.length + "</strong> of <strong>" + resultCount + '</strong> elements matching "' + query + '"';
} else if (result.length > 0) {
text = 'Showing <strong>' + result.length + '</strong> elements matching "' + query + '"';
} else {
text = 'No results matching "' + query + '"';
}
$('#result-container').html(text);
},
onLayoutBuiltBefore: function (node, query, result, resultHtmlList) {
resultHtmlList.find('li[data-search-group="product"]').remove();
return resultHtmlList;
},
onClickAfter: function (node, a, item, event) {
node.closest('.row_article').find('.cell_name .js-typeahead-product_name').val(item.product_name).text(item.product_name);
var replaceImage = '';
if (typeof item.file_url === "undefined"){
replaceImage = '' +
'<img src="/images/70x70.png" alt="" class="product-image" style="min-height: 70px;">' + ' ';
} else {
replaceImage = '<a title="' + item.display + '" rel="catproduct_images_0" href="' + item.product_url + '">' +
'<img src="' + item.file_url + '" alt="' + item.display + '" class="product-image">' + '</a> ';
}
node.closest('.row_article').find('.cell_image').html(replaceImage);
node.closest('.row_article').find('.cell_priceWithoutTax span.PricepriceWithoutTax').text(item.baseprice);
node.closest('.row_article').find('.cell_salesPrice span.PricesalesPrice').text(item.basepricewithtax);
node.closest('.row_article').find('input.catproduct_product_datas').replaceWith(item.product_datas);
if (item.available_stock <= 0) {
node.closest('.row_article').find('.cell_quantity a.notify').replaceWith('<a href="' + item.product_url + '/notify" class="btn btn-notify btn-info btn-md" title="Notify Me" target="_top" rel="no-follow">Notify Me</a>');
node.closest('.row_article').find('.cell_quantity div.quantities').addClass( "hide" );
} else {
node.closest('.row_article').find('.cell_quantity div.quantities').removeClass( "hide" );
node.closest('.row_article').find('.cell_quantity a.btn-notify').addClass( "hide" );
}
},
onCancel: function (node, item, event) {
var replaceImage = '<a title="" rel="catproduct_images_0" href="/">' +
'<img src="/" alt="" class="product-image" style="min-height: 70px;">' + '</a> ';
node.closest('.row_article').find('.cell_image').html(replaceImage);
node.closest('.row_article').find('.cell_name .js-typeahead-product_name').val('').text('');
node.closest('.row_article').find('.cell_priceWithoutTax span.PricepriceWithoutTax').text('0.00');
node.closest('.row_article').find('.cell_salesPrice span.PricesalesPrice').text('0.00');
node.closest('.row_article').find('.cell_quantity input').val('0').text('0');
node.closest('.row_article').find('input.catproduct_product_datas').replaceWith('<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">');
changeQuantity(node.closest('.row_article').find('.cell_quantity input'));
}
}
};
initTypeAhead('.js-typeahead-product_name', taOptsHash);
initTypeAhead('.js-typeahead-product_sku', taOptsSkuHash);
var counter = 0;
$("#addrow").on("click", function () {
for (var i = 1; i <= 5; i++) {
var newRow = $('<tr class="row_article" id="row_article' + counter + '">');
var cols = '';
cols += '<td class="cell_image"></td>';
cols += '<td class="cell_sku" data-title="Product SKU">' +
'<div class="typeahead__container">' +
' <div class="typeahead__field">' +
' <div class="typeahead__query">' +
' <input class="js-typeahead-product_sku form-control" id="product_sku' + counter + '" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">' +
' </div>' +
' <div class="typeahead__button hide">' +
' <button type="submit">' +
' <i class="typeahead__search-icon fa fa-smart-search"></i>' +
' </button>' +
' </div>' +
' </div>' +
'</div>' +
'</td>';
cols += '<td class="cell_name" data-title="Product Name">' +
'<div class="typeahead__container">' +
' <div class="typeahead__field">' +
' <div class="typeahead__query">' +
' <input class="js-typeahead-product_name form-control" id="product_name' + counter + '" name="keyword" type="search" placeholder="Search product name" autocomplete="off">' +
' </div>' +
' <div class="typeahead__button hide">' +
' <button type="submit">' +
' <i class="typeahead__search-icon fa fa-smart-search"></i>' +
' </button>' +
' </div>' +
' </div>' +
'</div>' +
'</td>';
cols += '<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">' +
' <div class="priceWithoutTax_text">' +
' <div class="PricepriceWithoutTax vm-display vm-price-value">' +
' <span class="vm-price-desc"></span>' +
' <span class="PricepriceWithoutTax">£ 0.00</span>' +
' </div>' +
' </div>' +
'</td>';
cols += '<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">' +
' <div class="salesPrice_text">'+
' <div class="PricesalesPrice vm-display vm-price-value">'+
' <span class="vm-price-desc"></span>'+
' <span class="PricesalesPrice">£ 0.00</span>'+
' </div>'+
' </div>'+
'</td>';
cols += '<td class="cell_quantity clearfix is-list" data-title="Quantity">'+
' <div class="quantities">'+
' <span class="quantity-box-cont quantity-box"><input class="quantity-input" size="2" name="quantity[]" value="0" type="text"></span>'+
' <span class="quantity-controls-cont quantity-controls">'+
' <button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>'+
' <button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>'+
' </span>'+
' </div>'+
' <a class="notify hide"/>'+
'</td>';
cols += '<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency"><span>£ 0.00</span></td>';
cols += '<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency"><span>£ 0.00</span></td>';
cols += '<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency"><span>£ 0.00</span></td>';
cols += '<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">';
// data-toggle="modal" data-target="#confirm-delete"
cols += '<td><input type="button" class="ibtnDel btn btn-md btn-danger " value="Delete"></td>';
newRow.append(cols);
$('table.catproducttable').append(newRow);
//$('#product_name' + counter).val('').trigger('input.typeahead')
//$('#product_name' + counter).typeahead();
initTypeAhead('#product_name' + counter, taOptsHash);
initTypeAhead('#product_sku' + counter, taOptsSkuHash);
// handle users pressing enter key
$("form[name='catproduct_form'] #row_article" + counter + " input").keydown(function (e) {
if (e.keyCode == 13) {
var inputs = $(this).parents("form").eq(0).find(":input");
if (inputs[inputs.index(this) + 1] != null) {
inputs[inputs.index(this) + 1].focus();
}
e.preventDefault();
return false;
}
});
// what about updating the controls
$("form[name='catproduct_form'] #row_article" + counter + " .cell_quantity input").click( function() {
changeQuantity(this);
});
$("form[name='catproduct_form'] #row_article" + counter + " .cell_quantity button").click( function() {
changeQuantity(this);
});
$("form[name='catproduct_form'] #row_article" + counter + " .cell_quantity input").change( function() {
changeQuantity(this);
});
$("form[name='catproduct_form'] #row_article" + counter + " .cell_addToCart .addtocart-button").click( function() {
handleToCart_VM3(this);
return false;
});
$("form[name='catproduct_form'] #row_article" + counter + " .cell_addToCartEach .addtocart-button").click( function() {
handleToCartOne_VM3(this);
return false;
});
$("#row_article" + counter + " .cell_customfields :input").click(function () {
row = $(this).parents(".row_article").find("[name='quantity[]']");
getPrice(row);
});
counter++;
}
});
// delete row waz yer
$('table.catproducttable').on('click', '.ibtnDel', function (event) {
tr = $(this).closest('tr');
p_data = tr.find(".catproduct_product_datas").data();
productname = p_data.product_name;
if (parseInt(p_data.product_name.length) > 0) {
$('#confirm-delete .bootmodal-body p').replaceWith('<p>Are you sure you want to delete ' + productname + ' ?</p>');
} else {
$('#confirm-delete .bootmodal-body p').replaceWith('<p>Are you sure you want to delete this line?</p>');
}
$('#confirm-delete').modal('show').one('click', '.delete-line', function(e) {
tr.remove();
//counter -= 1;
$('#confirm-delete').modal('hide');
});
});
});
</script>
<div class="alert alert-info alert-dismissible">
<a href="#" class="close" data-dismiss="alert">×</a>
<p><i class="fa fa-info-circle info"></i>
Welcome to our Online order form. </p>
<p>
<ul>
<li>Search for products using Product Name or Products SKU. Once you've selected your product change the product quantity to the amount you want to order</li>
<li>In Stock products will be highlighted in <span class="green bold">green</span>, out of stock products will be highlighted in <span class="red bold">red</span></li>
<li>If you want to add more lines to your order click the 'Add row' button.</li>
<li>When you are ready to add all your order lines to the cart, click 'Add to Cart'.</li>
</ul>
</p>
</div>
<form ax:nowrap="1" action="index.php" method="post" name="catproduct_form" class="catproduct_form" onsubmit="event.preventDefault();">
<input type="hidden" class="catproduct_main_data" data-currency_symbol="£" data-currency_decimal_place="2" data-currency_decimal_symbol="." data-currency_thousands="" data-add_parent_from_original="0" data-product_weight_uom_parent="KG">
<table style="width:100%;" class="catproducttable">
<caption>Order form</caption>
<thead>
<tr>
<th class="cell_image col-sm-1" scope="col">Product Image</th>
<th class="cell_sku col-sm-1" scope="col">Product SKU</th>
<th class="cell_name col-sm-3" scope="col">Product Name</th>
<th class="cell_priceWithoutTax col-sm-1" scope="col" data-type="currency">Price</th>
<th class="cell_salesPrice col-sm-1" scope="col" data-type="currency">Price with VAT</th>
<th class="cell_quantity col-sm-1" scope="col">Quantity</th>
<th class="cell_sum_taxAmount col-sm-1" scope="col" data-type="currency">Tax</th>
<th class="cell_sum_priceWithoutTax col-sm-1" scope="col" data-type="currency">Price</th>
<th class="cell_sum_salesPrice col-sm-1" scope="col" data-type="currency">Price with VAT</th>
<th class="cell_action col-sm-1" scope="col"></th>
</tr>
</thead>
<tbody>
<tr class="row_article">
<td class="cell_image">
<a title="" rel="catproduct_images_0">
<img src="/images/70x70.png" alt="" class="product-image">
</a>
</td>
<td class="cell_sku" data-title="Product SKU">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_sku form-control product_sku_<?php echo $numberincrease; ?>" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_name" data-title="Product Name">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_name form-control product_name_<?php echo $numberincrease; ?>" name="keyword" type="search" placeholder="Search product name" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">
<div class="priceWithoutTax_text">
<div class="PricepriceWithoutTax vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricepriceWithoutTax">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">
<div class="salesPrice_text">
<div class="PricesalesPrice vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricesalesPrice">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_quantity clearfix is-list" data-title="Quantity">
<div class="quantities">
<span class="quantity-box-cont quantity-box"><input class="quantity-input product_quantity_<?php echo $numberincrease; ?>" size="2" name="quantity[]" value="0" type="text"></span>
<span class="quantity-controls-cont quantity-controls">
<button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>
</span>
</div>
<a class="notify hide"/>
</td>
<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency">
<span>£ 0.00</span>
</td>
<td></td>
<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">
</tr>
<tr class="row_article">
<td class="cell_image">
<a title="" rel="catproduct_images_1">
<img src="/images/70x70.png" alt="" class="product-image">
</a>
</td>
<td class="cell_sku" data-title="Product SKU">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_sku form-control product_sku_<?php echo $numberincrease++; ?>" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_name" data-title="Product Name">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_name form-control" name="keyword" type="search" placeholder="Search product name" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">
<div class="priceWithoutTax_text">
<div class="PricepriceWithoutTax vm-display vm-price-value">
<span class="vm-price-desc"></span><span class="PricepriceWithoutTax">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">
<div class="salesPrice_text">
<div class="PricesalesPrice vm-display vm-price-value">
<span class="vm-price-desc"></span><span class="PricesalesPrice">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_quantity clearfix is-list" data-title="Quantity">
<div class="quantities">
<span class="quantity-box-cont quantity-box"><input class="quantity-input" size="2" name="quantity[]" value="0" type="text"></span>
<span class="quantity-controls-cont quantity-controls">
<button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>
</span>
</div>
<a class="notify hide"/>
</td>
<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency"><span>£ 0.00</span></td>
<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency"><span>£ 0.00</span></td>
<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency"><span>£ 0.00</span></td>
<td></td>
<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">
</tr>
<tr class="row_article">
<td class="cell_image">
<a title="" rel="catproduct_images_2">
<img src="/images/70x70.png" alt="" class="product-image">
</a>
</td>
<td class="cell_sku" data-title="Product SKU">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_sku form-control" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_name" data-title="Product Name">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_name form-control" name="keyword" type="search" placeholder="Search product name" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">
<div class="priceWithoutTax_text">
<div class="PricepriceWithoutTax vm-display vm-price-value">
<span class="vm-price-desc"></span><span class="PricepriceWithoutTax">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">
<div class="salesPrice_text">
<div class="PricesalesPrice vm-display vm-price-value">
<span class="vm-price-desc"></span><span class="PricesalesPrice">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_quantity clearfix is-list" data-title="Quantity">
<div class="quantities">
<span class="quantity-box-cont quantity-box"><input class="quantity-input" size="2" name="quantity[]" value="0" type="text"></span>
<span class="quantity-controls-cont quantity-controls">
<button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>
</span>
</div>
<a class="notify hide"/>
</td>
<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency"><span>£ 0.00</span></td>
<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency"><span>£ 0.00</span></td>
<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency"><span>£ 0.00</span></td>
<td></td>
<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">
</tr>
<tr class="row_article">
<td class="cell_image">
<a title="" rel="catproduct_images_3">
<img src="/images/70x70.png" alt="" class="product-image">
</a>
</td>
<td class="cell_sku" data-title="Product SKU">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_sku form-control" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_name" data-title="Product Name">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_name form-control" name="keyword" type="search" placeholder="Search product name" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">
<div class="priceWithoutTax_text">
<div class="PricepriceWithoutTax vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricepriceWithoutTax">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">
<div class="salesPrice_text">
<div class="PricesalesPrice vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricesalesPrice">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_quantity clearfix is-list" data-title="Quantity">
<div class="quantities">
<span class="quantity-box-cont quantity-box"><input class="quantity-input" size="2" name="quantity[]" value="0" type="text"></span>
<span class="quantity-controls-cont quantity-controls">
<button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>
</span>
</div>
<a class="notify hide"/>
</td>
<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency">
<span>£ 0.00</span>
</td>
<td></td>
<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">
</tr>
<tr class="row_article">
<td class="cell_image">
<a title="" rel="catproduct_images_4">
<img src="/images/70x70.png" alt="" class="product-image">
</a>
</td>
<td class="cell_sku" data-title="Product SKU">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_sku form-control" name="keyword" type="search" placeholder="Search product sku" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_name" data-title="Product Name">
<div class="typeahead__container">
<div class="typeahead__field">
<div class="typeahead__query">
<input class="js-typeahead-product_name form-control" name="keyword" type="search" placeholder="Search product name" autocomplete="off">
</div>
<div class="typeahead__button hide">
<button type="submit">
<i class="typeahead__search-icon fa fa-smart-search"></i>
</button>
</div>
</div>
</div>
</td>
<td class="cell_priceWithoutTax" data-title="Price" data-type="currency">
<div class="priceWithoutTax_text">
<div class="PricepriceWithoutTax vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricepriceWithoutTax">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_salesPrice" data-title="Price with VAT" data-type="currency">
<div class="salesPrice_text">
<div class="PricesalesPrice vm-display vm-price-value">
<span class="vm-price-desc"></span>
<span class="PricesalesPrice">£ 0.00</span>
</div>
</div>
</td>
<td class="cell_quantity clearfix is-list" data-title="Quantity">
<div class="quantities">
<span class="quantity-box-cont quantity-box"><input class="quantity-input" size="2" name="quantity[]" value="0" type="text"></span>
<span class="quantity-controls-cont quantity-controls">
<button type="button" class="quantity-controls quantity-plus"><i class="icon-arrow-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="icon-arrow-down"></i></button>
</span>
</div>
<a class="notify hide"/>
</td>
<td class="cell_sum_taxAmount" data-title="Tax" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_priceWithoutTax" data-title="Price" data-type="currency">
<span>£ 0.00</span>
</td>
<td class="cell_sum_salesPrice" data-title="Price with VAT" data-type="currency">
<span>£ 0.00</span>
</td>
<td></td>
<input type="hidden" data-product_id="0" data-product_name="" data-product_weight="0.0000" data-product_weight_uom="KG" data-product_length="0.0000" data-product_width="0.0000" data-product_height="0.0000" data-product_lwh_uom="M" data-product_in_stock="0" data-baseprice="0" data-basepricewithtax="0" data-pricewithouttax="0" data-salesprice="0" data-taxamount="0" data-discountamount="0" data-sum_product_weight="0" data-sum_baseprice="0" data-sum_basepricewithtax="0" data-sum_taxamount="0" data-sum_discountamount="0" data-sum_pricewithouttax="0" data-sum_salesprice="0" data-min_order_level="0" data-max_order_level="0" data-product_box="0" data-group_id="1" data-def_group_qty="0" class="catproduct_product_datas">
</tr>
</tbody>
<tfoot>
<tr style="padding:15px;">
<td colspan="10" style="text-align: left;">
<input type="button" class="btn btn-lg btn-block " id="addrow" value="Add Rows" />
</td>
</tr>
<tr class="row_total row_total_taxAmount">
<td colspan="9">VAT</td>
<td class="total_taxAmount" data-title="VAT">
<span>£ 0.00</span>
</td>
</tr>
<tr class="row_total row_total_priceWithoutTax">
<td colspan="9">Total price :</td>
<td class="total_priceWithoutTax" data-title="Total price :">
<span>£ 0.00</span>
</td>
</tr>
<tr class="row_total row_total_salesPrice">
<td colspan="9">Total price with VAT :</td>
<td class="total_salesPrice" data-title="Total price with VAT :">
<span>£ 0.00</span>
</td>
</tr>
<tr class="row_addtocart">
<td colspan="10" class="cell_addToCart" align="right">
<span class="addtocart-button" style="float:right;">
<input type="submit" name="addtocart" class="btn btn-invert btn-addtocart btn-lg addtocart-button" value="Add to Cart" title="Add to Cart">
</span>
</td>
</tr>
<tr class="row_gotocart">
<td colspan="10" class="cell_addToCart" align="right">
<span class="gotocart-button" style="float:right;">
<div class="show_cart">
<a style="float:right;" href="/my-cart" rel="nofollow">Show Cart</a>
</div>
</span>
</td>
</tr>
</tfoot>
</table>
<input name="option" value="com_virtuemart" type="hidden">
<input name="view" value="cart" type="hidden">
<input name="task" value="addJS" type="hidden">
<input name="format" value="json" type="hidden">
</form>
<div class="bootmodal fade" id="quick-add-to-cart" tabindex="-1" role="dialog" aria-labelledby="cartLabel" aria-hidden="true" style="z-index:9000;">
<div class="bootmodal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="bootmodal-dialog-title" id="cartLabel"><span class="product-added-title">Product successfully added</span></div>
</div>
<div class="bootmodal-body">
<p></p>
</div>
<div class="bootmodal-footer">
<button class="btn btn-base" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div class="bootmodal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="z-index:9000;">
<div class="bootmodal-dialog">
<div class="bootmodal-content">
<div class="bootmodal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="bootmodal-dialog-title" id="cartLabel"><span class="product-added-title">Confirm Delete</span></div>
</div>
<div class="bootmodal-body">
<p>Are you sure you want to delete this line?</p>
</div>
<div class="bootmodal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<a class="btn btn-danger btn-ok delete-line">Delete</a>
</div>
</div>
</div>
</div>
<div class="bootmodal fade" id="confirm-submit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="z-index:9000;">
<div class="bootmodal-dialog">
<div class="bootmodal-content">

<div class="bootmodal-header">

<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

<div class="bootmodal-dialog-title" id="cartLabel"><span class="product-added-title">Confirm Add to Cart</span></div>

</div>

<div class="bootmodal-body">

<p>Are you sure you want to add to cart?</p>

</div>

<div class="bootmodal-footer">

<button type="button" class="btn btn-default" data-dismiss="modal">No</button>

<a id="submit-confirmed" class="btn btn-success btn-ok add-to-cart">Yes</a>

</div>
</div>
</div>{/source}
- Details
- Written by: Gaynor Humphrey
- Category: Uncategorised
Dinosaur toys are always popular and we are very pleased to have a wide range of Dinosaur toys for you to choose from. Available in a range of different dinosaur toys and a variety of sizes and colours.
- Details
- Written by: Eliot Rayner
- Category: Uncategorised
Handmade organic cotton puffin rattle, a soft friend handmade with care. Shaped with a smooth, rounded body that’s easy for tiny hands to grasp, this cheerful puffin with its colourful beak detail brings a touch of magic to early playtime. Made from 100% organic cotton, every stitch is free from harsh dyes and synthetic materials, offering a safe, natural choice for curious little explorers. Inside, a delicate rattle creates a calming sound that encourages sensory development without overwhelming sensitive ears.
Lightweight, cuddly, and beautifully crafted, this dolphin is perfect for snuggles, gentle play, and eco‑conscious gifting. A sweet companion ready to win your baby’s heart.
Our gorgeous red chilli pepper baby rattle is handmade by a fair trade organisation using crochet organic cotton. Babies will love its sweet smiley face and tactile yet soft finish which is stimulating for baby's senses. An ideal new baby gift
Our pink flower baby rattle is sure to delight little ones with its sweet colours and gentle rattle. Suitable from birth and machine washable, this flower baby toy is handmade by a fair trade organisation in organic crochet cotton.
An ideal new baby or baby shower gift.
This sweet crochet flower baby rattle is handmade in red organic cotton by a fair trade organisation. An ideal new baby gift or baby shower gift. Babies will love the gentle rattle sound and bright colours.
Our sulphur-crested Cockatoo Rattle is handmade by a fair trade organisation using crochet organic cotton. Babies are sure to love this sweet bird with its yellow crest and gentle rattle sound. Part of a range of crochet bird baby rattles.
Our crochet snail baby rattle with its contrasting colours and gentle rattle sound is stimulating for baby's developing senses. Handmade by a fair trade organisation using organic cotton, this snail baby toy would make and ideal new baby gift.
A pack of 75 assorted knitted Christmas decorations for a reduced price for trade customers. This pack of 75 of our popular knitted decorations are ideal for secret Santa gifts or Santa Grotto gifts. The decorations in the photograph are for illustrative purposes only, are not to scale and we will not guarantee to send decorations in the photograph though the pack may contain some of these. We will send a selection of 75 of our popular knitted dinosaur and / or animal Christmas tree decorations that are listed on our website at a reduced price compared to buying individually.
Please note that these are decorations and NOT toys so are not suitable for very young children.
This cute corduroy donkey soft toy will make a perfect gift for a young child. With its tactile yet soft grey corduroy finish and sweet face, this toy is robust enough for toddler play yet soft enough for snuggles. An ideal kid's gift.
Our cute corduroy polar bear soft toy with vivid multi-coloured scarf makes an ideal gift for children and adult's alike. The tactile but soft nature of this polar bear toy means it is both ideal for cuddles and imaginative play.
Puffins have become one of our most popular toys in the range, so we are delighted to introduce you to this corduroy puffin soft toy. With its tactile yet soft finish, this puffin toy is ideal for both imaginative play and cuddles alike. An ideal gift for kids or adults alike.
This crochet octopus baby rattle is handmade from organic cotton by a fair trade organisation. The high contrast black and white helps to stimulate a baby's cortex, enhancing their ability to focus and track objects with their eyes. Babies will love the stimulating gentle rattle sound and the eight legs are ideal for grasping.
Part of a range of crochet weather baby rattles, this crescent shaped moon with smiley face and legs is sure to delight babies. Handmade by fair trade artisans in organic cotton and filled with recycled polyester. An ideal new baby gift or baby shower present.
This crochet rainbow baby rattle will delight babies with its smiley face, bright colours and dangly legs and not to forget the rattle sound. These crochet baby rattles are handmade from organic cotton by a fair trade organisation.
This stormy cloud baby rattle is part of a weather range of rattles. Handmade crochet organic cotton baby rattle by fair trade artisans. This makes an idea baby gift and is suitable from birth and machine washable.
This egg with smiley face baby rattle is part of a range of food rattles designed for babies. Handmade from organic cotton and stuffed with recycled fill by a fair trade organisation, this egg baby rattle makes an ideal new baby gift.
Handmade sun with smiley face baby rattle. This sweet baby toy is handmade by fair trade artisans from 100% organic cotton yarn with recycled polyester fill. An ideal new baby toy - an eco baby toy.
Babies will love this vivid red hot chocolate rattle with its bright colouring, gentle stimulating sound and handle that makes it easy for your baby to grasp. Handmade by a fair trade organisation using organic cotton yarn. An ideal gift for baby's first Xmas.
This cute penguin Christmas bauble is handmade from organic cotton crochet by a fair trade organisation. Penguins make fun Christmas decorations and with its colourful scarf, this penguin is sure to brighten up any Christmas tree. Part of a range of fair trade crochet Xmas toys and Xmas decorations from Best Years.
Please note that this is a decoration and NOT a toy
This Santa Christmas tree decoration is part of a range of crochet Xmas baubles that are handmade using organic cotton by fair trade artisans. These fair trade decorations make wonderful gifts and families will look forward to hanging them on their tree year after year.
Please note that this is a decoration and NOT a toy
Crochet mouse Christmas tree decoration in red stripe outfit and stripe hat. This cute mouse Xmas bauble is handmade in organic cotton by fair trade artisans. An ethical, fair trade Xmas bauble that will brighten up any Christmas decor.
Christmas is not Christmas without a mince pie for many people! Now you can not only eat mince pies, but you can also hang them on your Xmas tree. Our cute mince pie Christmas decoration is handmade from organic cotton crochet by a fair trade organisation. Why not pair it with a hot chocolate Christmas decoration and really go to town!
Who can resist a hot chocolate on a cold winter's evening? Well now you can hang a hot chocolate decoration on your tree and you could even get a mince pie decoration to hang alongside it! This sweet red hot chocolate Christmas decoration will brighten up any Christmas tree. Handmade crochet fair trade Christmas decoration in organic cotton.
This is a decoration and NOT a toy
This mince pie baby rattle with its sweet smiley face is part of a range of Christmas baby rattles. Handmade in organic cotton crochet by fair trade artisans, this mince pie rattle will be a big hit with babies with its happy face and gentle rattle sound. Suitable from birth and machine washable, this makes an ideal gift for baby's first Christmas.
Christmas baby toys do not get much cuter than this mouse with striped clothing and stripey hat. Babies will love the vivid colour, sweet smiley face and gentle rattle sound. And adults will love that this baby toy is machine washable, made using organic cotton and safety tested as suitable from birth. An ideal gift for baby's first Christmas.
This cute white mouse in a red jumper with snow flake emblem would make a perfect gift for baby's first Christmas. Suitable from birth and machine washable, this cute mouse is handmade from organic cotton crochet by a fair trade organisation.
This gorgeous blue Angel baby rattle is handmade from organic cotton crochet by fair trade artisans. Part of a range of Christmas rattles from Best Years that make ideal gifts for baby's first Christmas.
Our crochet Santa Christmas baby rattle makes an ideal gift for baby's first Christmas. Handmade in organic cotton crochet by fair trade artisans. Part of a range of Christmas baby toys - suitable from birth and machine washable.
A pack of 50 assorted knitted Christmas decorations for a reduced price for trade customers. This pack of 50 of our popular knitted decorations are ideal for secret Santa gifts or Santa Grotto gifts. The decorations in the photograph are for illustrative purposes only, are not to scale and we will not guarantee to send decorations in the photograph though the pack may contain some of these. We will send a selection of 50 of our popular knitted dinosaur and / or animal Christmas tree decorations that are listed on our website at a reduced price compared to buying individually.
Please note that these are decorations and NOT toys so are not suitable for very young children.
A pack of 10 assorted knitted Christmas decorations for a reduced price for trade customers. This pack of 10 of our popular knitted decorations are ideal for secret Santa gifts or Santa Grotto gifts. The decorations in the photograph are for illustrative purposes only, are not to scale and we will not guarantee to send decorations in the photograph though the pack may contain some of these but we will send a selection of 10 of our popular knitted dinosaur and animal Christmas tree decorations that are listed on our website at a reduced price compared to buying individually.
Please note that these are decorations and NOT toys so are not suitable for very young children.
- Details
- Written by: Eliot Rayner
- Category: Uncategorised
- Details
- Written by: Eliot Rayner
- Category: Uncategorised



