• Resolved dougdavis22

    (@dougdavis22)


    Hi all. We are giving people the option of having their tickets posted to them, and so there is the checkbox at checkout which they can select. We aren’t charging for postage as we are charging a blanket booking fee.

    Problem we have is that, whether a person selects to have the posted to them or not, the confirmation email & email to the Admin shows Postage: 0.00 regardless, so there is no way for the Admin to know which tickets need posting!

    Any idea how to adjust the email template to show whether or not someone has ticket the postage box? I tried inspecting the booking page and found [salePostTickets] but that tag doesn’t seem to do anything in the email. Thanks, Doug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Chris

    (@weazel91)

    Hi Doug,

    In my Javascript file within stageshow settings I have the following:

    function stageshow_AddCustomHTMLValues()
    {
        document.getElementById("saleCustomValues").value = "";
    	saleCustomValuesObj = document.getElementById('saleCustomValues');	
    	var member = document.getElementById('stageshow_shine_member');
    	var mailinglist = document.getElementById('stageshow_shine_mailinglist');
    	var howtocollect = document.getElementById('stageshow_shine_howtocollect');
    
    	if ( (saleCustomValuesObj === null) || (member === null) || (mailinglist === null) || (howtocollect === null) )
    	{
    		return;
    	}
    	
    	var saleCustomValue = saleCustomValuesObj.value;
    	if (saleCustomValue.length > 0)
    	{
    		/* Add a line separator for each custom HTML Element */
    		saleCustomValue += "#";
    	}
    	else
    	{
    		var saleNoteToSellerObj = document.getElementById('saleNoteToSeller');
    		if (saleNoteToSellerObj !== null)
    		{
    			/* "Note to Seller" Element is present */
    			if (saleNoteToSellerObj.length > 0)
    			{
    				/* User has entered a value for the "Note to Seller" add a line separator after it! */
    				saleCustomValue += "#";
    			}
    		}		
    	}
    	
    	saleCustomValue += member.value;
    	saleCustomValue += "#";
    	saleCustomValue += howtocollect.value;
    	saleCustomValue += "#";
    	saleCustomValue += mailinglist.checked;
    	
    	
    	/* Store this as the value of the hidden form element */
    	saleCustomValuesObj.value = saleCustomValue;
    
    }

    and under function stageshowCustom_OnClickCheckout I have the following:

    
    function stageshowCustom_OnClickCheckout(obj, inst)
    {
    	stageshow_AddCustomHTMLValues();
            return true;
    }

    You could play with these to say: If the postage option is checked put the word POST in the note to seller field. This may help?

    The page this is on is shineboxoffice.co.uk/box-office if you want to see what and where these fields are. A lot of the above code you will not require.

    Chris

    Thread Starter dougdavis22

    (@dougdavis22)

    Hi Chris,

    Thanks for the reply. Unfortunately having pretty much zero experience with JS I don’t quite know where to start! I know it’s a big ask, but any chance you could rustle up the code I would need please? Happy for a simple ‘PUT TICKETS IN POST’ to be added to the note to seller field if the option is checked.

    Thanks so much.
    Doug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email template – postage’ is closed to new replies.