oscommerceuser5 Posted October 3, 2008 Share Posted October 3, 2008 Where / what is the variable that shows total order value, so say I went $total_order += 20.00; where is the variable that I can do that too where it would change the price like that? thanks for any help. Link to comment Share on other sites More sharing options...
sLaV- Posted October 3, 2008 Share Posted October 3, 2008 Not at home so couldnt test this out for you ... just make sure you have a backup just in case this doesnt work Open file: /catalog/includes/modules/order_total/ot_total.php find this bit of code function process() { global $order, $currencies; $this->output[] = array('title' => $this->title . ':', 'text' => '<b>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</b>', 'value' => $order->info['total']); } change 'value' => $order->info['total']); to include your added rate As i said i havn't tried it so keep a backup just in case it don't work Link to comment Share on other sites More sharing options...
oscommerceuser5 Posted October 3, 2008 Author Share Posted October 3, 2008 hi thanks for the reply I want the total to be its value + 20.00 so should i just add that amount inside the array ? thanks again Link to comment Share on other sites More sharing options...
Gauravs Posted October 3, 2008 Share Posted October 3, 2008 What is 20.00 for, is it for shipping or tax? Do you just want to inflate the total - or there is a reason to add this value? Best Regards,Gaurav Link to comment Share on other sites More sharing options...
oscommerceuser5 Posted October 3, 2008 Author Share Posted October 3, 2008 Hi gary, well the tax module/feature isn't working so I must inflate so this is more of a hackish way of doing it. thanks and any help would be great. Link to comment Share on other sites More sharing options...
Gauravs Posted October 3, 2008 Share Posted October 3, 2008 Okies, I saw your post about tax not working in other category .. so now i know the reason. Loggin on to my sandbox - to view the code, would update you in a short while. Best Regards,Gaurav Link to comment Share on other sites More sharing options...
oscommerceuser5 Posted October 3, 2008 Author Share Posted October 3, 2008 hey thanks man that would be great! Link to comment Share on other sites More sharing options...
Gauravs Posted October 3, 2008 Share Posted October 3, 2008 Please check your PM Thx Best Regards,Gaurav Link to comment Share on other sites More sharing options...
burt Posted October 3, 2008 Share Posted October 3, 2008 You can't kludge tax, the taxman will shaft you. Get it fixed! Link to comment Share on other sites More sharing options...
Gauravs Posted October 6, 2008 Share Posted October 6, 2008 Hi, Apologies for the delay - got caught up with me regular job and couldn't test this out. I have tried out couple of things - only issue is if you add +/- $ anywhere, you have to make a whole lot of changes to reflect the amount all over the cart since price is displayed at multiple places - so a lot of work for you :( The easiest place to modify the values is to review class in folder /includes/classes/ -> order.php Over here (order.php) - all calculation is done (including tax, shipping etc) - so add the values either in Tax or shipping etc as per your store requirements, or better way would be to actually fix the Tax issue (instead of modifying the code in order.php) What exactly is the issue with Tax on your site? if you could give a URL and dummy account to test, perhaps i could review the issue for you. thanks Best Regards,Gaurav Link to comment Share on other sites More sharing options...
oscommerceuser5 Posted October 13, 2008 Author Share Posted October 13, 2008 Hi, Sorry forgot all about this post, the tax thing is broken, dont know why its a heavily modified OSC. I just thought this would be a easier / better way of doing it then hunting down years of changes. Thanks I will try this out for sure. Link to comment Share on other sites More sharing options...
oscommerceuser5 Posted October 13, 2008 Author Share Posted October 13, 2008 whats the best way to get the state of the person ordering ? within that class ? I have found like 3 ways, haven't tried it within the class. thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.