
Serveur d'impression 'D-Link' (DPR-1061) USB (2) + parallèle (1) – Bien choisir son serveur d impression
จะใบ กับ สินค้าท่าน สั่ง ซื้อเท่านั้น 1
**: ไม่ ใน ภายหลัง
";
$ ('script[script-type="Criteo-Category"]').retirer();
$ ('body'). append (script);
fonction addCriteoSales (data_order, data_order_dtl)
var products = "http://www.advice.co.th/";
$ .each (data_order_dtl, function (key, val)
if (produits! = "http://www.advice.co.th/")
produits + = ',';
products + = 'id: "http://www.advice.co.th/"+val.code+"http://www.advice.co.th/"price:" http: //www.advice .co.th / "+ val.unit_price +" http://www.advice.co.th/ ", quantité:" http://www.advice.co.th/"+val.qty+"http:// www.advice.co.th/ " ';
);
var numToPad = data_order.order_num.toString ();
var order_num = ('00000000' + numToPad) .slice (numToPad.length);
var script = '';
$ ('script[script-type="Criteo-Sales"]').retirer();
$ ('body'). append (script);
fonction focusTo (élément)
$ ('html, body'). animate (scrollTop: $ (element) .offset (). top, 1000);
fonction add_byorder (btn)
/ * $ ('# text-alert-all'). html ('
นี้ เป็น สินค้า Par commande
ติดต่อ ฝ่าย ขาย ค่ะ
โทร. 02-547-0000
$ ('# alert-all'). modal ('show'); * /
$ ('# modal_byorder'). modal ('show');
fonction get_cart ()
var cart = JSON.parse ('[]');
quantité de var = 0;
$ .each (panier, fonction (index, valeur)
quantité + = valeur.num;
);
if (qty> 0) $ ('. cart-pd-quantit'). html (qty) .show ();
else $ ('. cart-pd-quantit'). html ("http://www.advice.co.th/") .hide ();
si (quantité> 0)
showCartPopup ('modal-new');
chariot de retour;
fonction check_cancel_bill ()
$ ("# form-cancel-bill"). validationEngine ();
if ($ (". cancel_chk: vérifié"). length> 0)
show_loading ();
$ ("# form-cancel-bill"). submit ();
autre
fonction show_net_rept (data)
show_loading ();
var ordernum = "http://www.advice.co.th/";
$ .each (données, fonction (index, valeur)
ordernum + = '
var class_cehck = "http://www.advice.co.th/";
si (index == 0)
class_cehck = "cancel_chk_first";
ordernum + = '
';
ordernum + = '
';
ordernum + = '
';
ordernum + = '
'
);
$ ('# tta'). html (ordernum);
$ ('. cart-modal'). modal ('masquer');
$ ('# net_rept'). modal ('show');
hide_loading ();
fonction show_num_cart ()
/ * var cart_data = [];
$ .ajax (
type: "POST",
dataType: "json",
async: false,
url: "https://www.advice.co.th/cart/cart-new?get=num",
données: "cart = cart-new",
succès: fonction (données)
cart_data = data;
, erreur: fonction (xhr, ajaxOptions, thrownError)
hide_loading ();
checkErrorAjax (xhr);
);
return cart_data; * /
$ (document) .on ('cliquez sur', '. set-language', function ()
show_loading ();
$ .ajax (
dataType: 'json',
type: "POST",
url: "https://www.advice.co.th/language",
data: "lang =" + $ (this) .data ('lang') + "& page =" + encodeURIComponent ('https://www.advice.co.th/product/print-server/print-server/print -server-d-link-dpr-1061-parallel '),
succès: fonction (données)
//console.log(data);
show_loading ();
window.location.href = data.page;
, erreur: fonction (xhr, ajaxOptions, thrownError)
checkErrorAjax (xhr);
hide_loading ();
);
);
fonction modal_byorder ()
$ ("# modal_byorder"). modal (backdrop: "static");
fonction goto_address ()
if ($ ("# checked_byorder"). est (": vérifié"))
window.location.href = 'https://www.advice.co.th/byorder/address';
function save_byorder ()
var valid = $ ("# formulaire-adresse-autre"). validationEngine ('validate');
var q_mobile = $ ("# q_mobile"). val ();
if (q_mobile.substring (0, 2) == '02')
$ ('# q_mobile'). validationEngine ('showPrompt', 'เบอร์ มือ', 'error', 'bottomLeft');
else if (q_mobile.length! = 10)
$ ('# q_mobile'). validationEngine ('showPrompt', 'Erreur 10,', 'bottomLeft')
sinon si (valide)
show_loading ();
$ ("# show_modal_num"). modal ("masquer");
$ ("# formulaire-adresse-autre"). submit ();
autre
$ ("# q_mobile"). focus ();
/////////////////////////// script emarsys ///////////////////////// /////
///// vue /////
ScarabQueue.push (['view', 'A0049856'])
///// Catégorie /////
ScarabQueue.push (['category', ' > > '])
///// Chariot /////
var item_cart = [];
var cart = get_cart ();
if (cart)
$ .each (panier, fonction (index, valeur)
item_cart.push (item: valeur.code, prix: valeur.unité_prix, quantité: valeur.num);
);
ScarabQueue.push (['cart', item_cart])
ScarabQueue.push (['go'])
var loading_img = 'https://img.advice.co.th/images_nas/advice/oneweb/assets/images/loading_blue.gif';
$ ('. home-promotion-online-menu'). click (function ()
var menu = $ (this) .attr ('category');
var item = $ ('. home-promotion-online-category[category="http://www.advice.co.th/"+menu+"http://www.advice.co.th/"]') .find ('. item ');
if (item.length <= 0)
$ ('. home-promotion-online-category[category="http://www.advice.co.th/"+menu+"http://www.advice.co.th/"]') .html ('
');
home_content ('online', menu);
);
fonction clear_private ()
$ .ajax (
type: "POST",
url: "https://www.advice.co.th/clear_private",
succès: fonction (données)
$ ('. discount'). prop ('readonly', false);
$ ('. discount'). val ("http://www.advice.co.th/") .blur ();
$ ('# note_cart'). hide ();
, erreur: fonction (xhr, ajaxOptions, thrownError)
hide_loading ();
checkErrorAjax (xhr);
);
fonction home_content (type, val) {
$ .ajax ({
type: "POST",
dataType: "json",
async: false,
url: "https://www.advice.co.th/home-loading",
data: type: type, data: val,
succès: fonction (données)
if (tapez == 'online')
$ ('. home-promotion-online-category[category="http://www.advice.co.th/"+val+"http://www.advice.co.th/"]') .html (data.text);
sinon si (type == 'catégorie')
$ ('. home-show-product[category="home_diy"]') .html (data.text);
$ ('. home-show-product[category="home_notebook"]') .html (data.text2);
if (data.flashsale! = "http://www.advice.co.th/")
//$('#owl-one').trigger('add.owl.carousel ', data.flashsale);
$ .each (data.flashsale, function (key, val)
$ ('# owl-one'). owlCarousel ('add', val) .owlCarousel ('update');
);
img_loading ();
resize_product_blocks ();
, erreur: fonction (xhr, ajaxOptions, thrownError)
hide_loading ();
checkErrorAjax (xhr);
});
}
fonction searchKeyword ()
var mot-clé = $ ("# mot-clé"). val ();
mot-clé = $ .trim (mot-clé);
if (mot-clé == "http://www.advice.co.th/") $ ("#keyword") .val ("http://www.advice.co.th/"); alert (' คำ ค้น '); $ ("# mot clé"). Focus ();
autre
$ ("body"). addClass ('loading');
mot-clé = mot-clé.replace (/ s + / g, '+');
window.location.href = "https://www.advice.co.th/search?keyword="+keykeyword;
$ ("# mot clé"). keydown (fonction (e) if (e.which == 13) searchKeyword (););
$ ('.btn-cart-popup'). pas ('bouton'). click (fonction ()
// showCartPopup ('modal-new');
). children (). on ('click', fonction (événement)
// show_loading ();
event.stopPropagation ();
);
fonction fb_share (data)
u = $ (data) .attr ('data-url');
t = $ (data) .attr ('data-title');
window.open ('https://www.facebook.com/sharer.php?u='+encodeURIComponent (u) +' & t = '+ encodeURIComponent (t),' partageur ',' barre d'outils = 0, status = 0 , largeur = 626, hauteur = 436 '); retourne faux;
fonction twitter_share (data)
u = $ (data) .attr ('data-url');
t = $ (data) .attr ('data-title');
window.open ("https://twitter.com/share?url=" + encodeURIComponent (u) + "& text =" + encodeURIComponent (t), "http://www.advice.co.th/", ' barre de menus = non, barre d'outils = non, redimensionnable = oui, barres de défilement = oui, hauteur = 300, largeur = 600 '); return false;
fonction google_share (data)
u = $ (data) .attr ('data-url');
window.open ("https://plus.google.com/share?url=" + encodeURIComponent (u), "http://www.advice.co.th/", 'menubar = no, toolbar = no, redimensionnable = oui, barres de défilement = oui, hauteur = 300, largeur = 600 '); return false;
fonction find_near_me ()
si (navigator.geolocation)
var successHandler = fonction (position)
$ ("# lat"). val (position.coords.latitude);
$ ("# long"). val (position.coords.longitude);
$ ("# form_nearme"). submit ();
;
var errorHandler = function (errorObj)
;
navigator.geolocation.getCurrentPosition (successHandler, errorHandler, enableHighAccuracy: true, maximumAge: 10000);
//navigator.geolocation.getCurrentPosition(showPosition);
autre
//x.innerHTML = "La géolocalisation n'est pas prise en charge par ce navigateur.";
fonction go_where_to_buy ()
window.location.href = "https://www.advice.co.th/wheretobuy";
fonction get_product_replace (code)
$ .ajax (
type: "POST",
dataType: "json",
url: "https://www.advice.co.th/get-replace",
données: code: code,
succès: fonction (données)
$ ('. replacement-modal'). html (data.modal_alert);
$ ('. replace-modal'). html (data.modal_replace);
$ ('. view_replacement_modal'). html ("http://www.advice.co.th/");
$ ('. view_replace_modal'). html ("http://www.advice.co.th/");
$ ("# modal_alert -" + code) .modal ('show');
, erreur: fonction (xhr, ajaxOptions, thrownError)
hide_loading ();
checkErrorAjax (xhr);
);
fonction get_stock_branch (code) {
$ ('# data_stock_branch'). html ("http://www.advice.co.th/");
$ .ajax (
type: "POST",
dataType: "json",
url: "https://www.advice.co.th/get-stock-branch",
données: code: code,
succès: fonction (données)
var txt = "http://www.advice.co.th/";
if (data.txt)
$ .each (data.res, fonction (clé, val)
txt + = '
txt + = '
';
txt + = '
';
);
$ ('# modal_stock_branch .modal-title'). html (data.Product);
$ ('# data_stock_branch'). html (txt);
$ ('# modal_stock_branch'). modal ();
autre
alerte ('ไม่ พบ');
, erreur: fonction (xhr, ajaxOptions, thrownError)
hide_loading ();
checkErrorAjax (xhr);
);
}
function update_stock_branch (code, base de données, boutique)
$ .ajax (
type: "POST",
dataType: "json",
url: "https://www.advice.co.th/update-stock-branch",
données: code: code, base de données: base de données, boutique: boutique,
succès: fonction (données)
, erreur: fonction (xhr, ajaxOptions, thrownError)
checkErrorAjax (xhr);
);
fonction resize_product_blocks ()
var item_4 = $ (". product-column-4 .item"). height ();
$ ('. product-column-4 .item .product-blocks'). css (
hauteur: item_4,
);
var item_flash = $ (". owl-item .item"). height ();
$ ('. owl-item .item .product-blocks'). css (
hauteur: item_flash,
);
var item_7 = $ (". product-column-7 .item"). height ();
$ ('. product-column-7 .item .product-blocks'). css (
hauteur: item_7,
);
Commentaires
Laisser un commentaire