Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var flag = false,
- items_regex = /(1196510|1196529|1196539|1196686|1196694|1196709|1196715|1209022)/;
- if ($('#order_show_cart > table > tbody > tr > td.col1 > a').attr('href').match(items_regex)) {
- flag = true;
- $('label#cart_shipping_option').before('<div>בחרת מוצר בסל שלא ניתן לבצע עבורו משלוח, לכן ניתן לבצע איסוף עצמי בלבד</div>');
- }
- /* $('.layout_order #selectsHook label select option').each(function(index, el) {
- if($(this).text().indexOf('איסוף עצמי') > -1){
- flag = true;
- $('label#cart_shipping_option').before('<div>בחרת מוצר בסל שלא ניתן לבצע עבורו משלוח, לכן ניתן לבצע איסוף עצמי בלבד</div>');
- }
- }); */
- var _removeShipping = function() {
- if (flag) {
- $('.layout_order #selectsHook label select#order_shipping_option_id option').each(function(index, el) {
- if ($(this).text().indexOf('איסוף עצמי') < 0) {
- $(this).remove();
- }
- });
- }
- }
- $(function() {
- _removeShipping()
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement