Adding equivalent item on logo option selection

If customer selects personalization color in the company information section and a no logo, or black & white logo, add $90.


			selectcolor: function selectcolor(e) {
				var internalid = this.$(e.target).data('id');
				var cartoptionid = this.$(e.target).parents('div').parents('div').attr('id');
				var currentitemid = this.$(e.target).data('id');
				var value = $('#' + currentitemid + '-inputid').val();
				if (internalid) {
					this.pdp.setOption('custcol_tag_logo_option', value);
					if (internalid !== 1) {
						this.pdp.setOption('custcol_tag_logo_option_item', '13974');
					}
					this.pdp.setOption(cartoptionid, JSON.stringify(internalid));
				}
				var label = this.$(e.target).data('available');
				$("#" + cartoptionid + "-inputid").val(internalid);
				$("." + cartoptionid).html(label);
			},

Leave a comment

Your email address will not be published. Required fields are marked *