Recode a string in a PHP file
€8-30 EUR
Pago na entrega
I like help to remove one comma in the end of a string.
In attached file on row 91 I have which starts on $item_clerkio... which is enbedded in a while loop.
91: $item_clerkio .= '{\'id\': ' . tep_db_output($items['products_id']) . ', \'quantity\': ' . $items['products_quantity'] . ', \'price\': ' . number_format($items['final_price'], 2, '.', '') . '},';
The result if you have one items in the basket on checkout is:
{'id': 140, 'quantity': 1, 'price': 714.95},
If you have two items:
{'id': 140, 'quantity': 1, 'price': 714.95}, {'id': 120, 'quantity': 2, 'price': 29.90},
I which to get some help to know what to write to be able to remove the last comma in the string $item_clerkio I guess it's easy to add a regex and remove the last comma in the $item_clerkio before writing it out.
ID do Projeto: #9557580
Sobre o projeto
Concedido a:
Hello! That'd be a single line of code to add there, I can send it to you right away once project awarded. Regards, Dragos
4 freelancers estão ofertando em média €26 nesse trabalho
Hello I have 5 years experience i am Web Developer . As a developed websites for many companies and individuals from small to large business. professional skills below:- Programming Languages/Technologies Mais