BAJI26 Posted August 3, 2015 Share Posted August 3, 2015 How can I remove the "$" and the "USD" from the Data feed? <script language="javascript" src="feeds/productsinfo.php?pid=1&get=price&billingcycle=monthly"></script> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 3, 2015 Share Posted August 3, 2015 you could remove the code below from the feeds/productsinfo.php feed... $price = formatCurrency($price); 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 3, 2015 Author Share Posted August 3, 2015 I don't want it globally I only want to use it on some external pages. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 3, 2015 Share Posted August 3, 2015 then make a duplicate of productsinfo.php and call it something else, remove the above line and call it on the external pages where you don't want to see a currency... when you do want to see a currency, use the current productsinfo.php feed. 1 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 4, 2015 Author Share Posted August 4, 2015 (edited) Thanks! WORKS! Got another question for yah! How can I add an input field to pass the info to the configurable options field from an external page? Example: If a customer type a number in an input field in a form for a quantity when they hit the buy button and the whmcs cart page loads the quantity that they enter is already filled in the configurable options field. Edited August 4, 2015 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 4, 2015 Share Posted August 4, 2015 the simplest way would be to get your form to post to the cart with the config details added to the URL - the link below might help... http://docs.whmcs.com/Linking_to_WHMCS#Configurable_Options_.26_Custom_Fields another way would be to use the API to construct your form - but that's not as simple. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 26, 2015 Author Share Posted August 26, 2015 Got a question regarding post #2. Is there anyway to remove "USD" from the price and leave "$" from the Data Feed? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 26, 2015 Share Posted August 26, 2015 Is there anyway to remove "USD" from the price and leave "$" from the Data Feed? couple of ways to do it depending on if you're using other currencies - you could either not format it as a currency e.g., remove code from post #2 and just add a $ before price... or if using other currencies (or even if you're not), format the currency by leaving that line in, but then add the following line after it... $price = str_replace('USD','',$price); that would remove USD from the output, but leave other currencies unaffected. 1 Quote Link to comment Share on other sites More sharing options...
Emiliofox Posted August 5, 2021 Share Posted August 5, 2021 Por favor pido ayuda a todos los expertos Estoy usando el siguiente código de feed whmcs <script language="javascript" src="../clientes/feeds/cartnumitems.php"></script> Esto lo he insertado en un pagina llamada demo.php y al cargar el link no se visualiza el contenido, lo que hago es clic derecho ver código fuente, allí veo el link y al hacer clic en el link ... ../clientes/feeds/cartnumitems.php Se muestra el mensaje de document.write('Tiene 0 elementos en su cesta'); Porque al cargar mi pagina demo.php no me muestra en mensaje? 0 Quote Link to comment Share on other sites More sharing options...
Emiliofox Posted August 9, 2021 Share Posted August 9, 2021 espero su respesta, ya pasaron varios dias y hasta ahora nadie revisa y aprueba mis comentarios 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.