Hi, I have 2 questions:
1. Is there a way to delete orders? I have made several tests and can't find a way to delete my fake orders, there's just an option to archive an order which still shows it on the orders list.
2. I want to insert a conversion tracking code in the 'Thank you' page after an order is submitted to track conversions for website purchasing. Problem is I need to specify the google_conversion_value to be equal to the total order amount. I found the file I need to insert the code which is /components/com_taxibooking/views/thanks/tmpl/default.php but I can't find a way to get the price value in that page. I've tried adding the following lines of code in the beginning of the file to get the cost
$session = JFactory::getSession();
$sub_total = JRequest::getVar('sub_total', 0);
$price = JRequest::getVar('total_price', 0);
$flat_cost = JRequest::getVar('flat_cost', 0);
$percentage_cost = JRequest::getVar('percentage_cost', 0);
// total cost
$grand_total = $sub_total+$flat_cost+$percentage_cost;
but I get 0 as a result
Is there a way to get the total order price on the 'thank you' page ?
1. Is there a way to delete orders? I have made several tests and can't find a way to delete my fake orders, there's just an option to archive an order which still shows it on the orders list.
2. I want to insert a conversion tracking code in the 'Thank you' page after an order is submitted to track conversions for website purchasing. Problem is I need to specify the google_conversion_value to be equal to the total order amount. I found the file I need to insert the code which is /components/com_taxibooking/views/thanks/tmpl/default.php but I can't find a way to get the price value in that page. I've tried adding the following lines of code in the beginning of the file to get the cost
$session = JFactory::getSession();
$sub_total = JRequest::getVar('sub_total', 0);
$price = JRequest::getVar('total_price', 0);
$flat_cost = JRequest::getVar('flat_cost', 0);
$percentage_cost = JRequest::getVar('percentage_cost', 0);
// total cost
$grand_total = $sub_total+$flat_cost+$percentage_cost;
but I get 0 as a result
Is there a way to get the total order price on the 'thank you' page ?