 
	
		Tagged: woocommerce
- 
		AuthorPosts
- 
		
			
				
November 5, 2015 at 2:56 pm #530809Hi, how do I add text between the quantity elements (i.e. just after the ‘+’ sign) and the ‘Add to cart’ button? I need to specify the unit for the item that is sold. 
 ThanksNovember 5, 2015 at 3:09 pm #530815Hey koszachos! Please edit your product and go to “Inventory” tab and check “manage stock” and it should look like this – http://i.imgur.com/IAf9ucV.png Regards, 
 YigitNovember 5, 2015 at 7:26 pm #531135Thanks Yigit, but what I meant is a bit different – between the plus sign and the ‘Add to Cart’ button i need to squeeze in some text such as ‘meter’. Does this make sense? November 7, 2015 at 7:14 am #531740Hi, Could you provide us with a link to the site in question so that we can take a closer look please? Regards, 
 RikardNovember 7, 2015 at 3:17 pm #531863see private message. Thanks November 9, 2015 at 5:47 am #532335Hi, Thanks for the login, do you mean that you would like a selector of some kind there? The quantity is already meters though? Regards, 
 RikardNovember 9, 2015 at 9:21 am #532429Hi Rikard, the ‘m’ in the quantity text box is currently not functioning properly because when the user deletes the content and enters a number, the ‘m’ disappears. So, I will probably get rid of the ‘m’ and rather have a label called ‘Meter’ in between to simplify matters, similar to how it is shown here https://www.dropbox.com/s/v5lcm5eunglyvrm/Screenshot%202015-11-09%2009.20.23.png?dl=0 
 Thats what I am trying to figure out
 ThanksNovember 9, 2015 at 4:08 pm #532693Hi! Please add following code to functions.php file in Appearance > Editor function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('.single .quantity').append('<span class="custom-attr"> Meter</span>'); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');Regards, 
 YigitNovember 9, 2015 at 4:21 pm #532712Thanks Yigit, but the text appears below the quantity area – see here https://www.dropbox.com/s/y2ke0s15acvpnqu/Screenshot%202015-11-09%2016.19.34.png?dl=0 
 It is possible to have it exactly between the quantity area and the cart button?
 Thanks againNovember 9, 2015 at 4:45 pm #532725Hey! Please add following code to Quick CSS in Enfold theme options under General Styling tab .custom-attr { position: relative; top: -122px; left: 140px; } .single form.cart .button { margin-left: 40px; }Regards, 
 YigitNovember 9, 2015 at 4:55 pm #532739Perfect! thats works great 
 Much appreciated!
- 
		AuthorPosts
- The topic ‘add text between quantity and add to cart button – product page’ is closed to new replies.
