- Posts: 23
- Thank you received: 0
Product Details after checkout!
please guide where to edit the cost so that in biiling cost that extra cost can be displayed. and
$order_product_total_price
$product->order_product_price+$product->order_product_support)*$product->order_product_quantity;please ang guide properly as i m new to MVC structure.
thnks
Please Log in or Create an account to join the conversation.
www.hikashop.com/support/documentation/6...tation.html#override
Please Log in or Create an account to join the conversation.
..(screen shot attched)... where to create custom field in product n cart table...according to suggestion u gave....
but the way i m moving is with out layout override manually have created filed in db product , cart, order table n have changed insert,Update queries accordingly at every step. just stuck in last ..which function of authorize.php is taking values from order table to payement url defined in plugin. sending u next screenshot of the detail page where i want to add extra cost and display it with an extra coloumn there also so that customer knows how much is bieng added to final total. plz help project is on dead line.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So you have the latest version of the Starter edition which doesn't enable you to do that. That's normal. You can get the Business edition on that page: www.hikashop.com/en/hikashop/business.html
HikaShop gets the information from the order and sends it to authorize.net in the function onAfterOrderConfirm, so that's the one you're looking for.
Please Log in or Create an account to join the conversation.
Sorry but order table has my value i somehow found that, and onAfterOrderConfirm function too ...but where only five values are printed...on payement page...
thnks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Screen shot for authorize.net in previous post has the product information like description,product name,qty..etc. i want to know that from where this data is going? which is the file....data coming from order table i know but it has lot more fields...how it is sending only these 5 fields...i will add my extra cost there ...as i have it in order table....
Please Log in or Create an account to join the conversation.
on the line:
$vars["x_line_item"][]=substr($product->order_product_code,0,30).'<|>'.substr($product->order_product_name,0,30).'<|><|>'.$product->order_product_quantity.'<|>'.round($product->order_product_price,(int)$currency->currency_locale).'<|>'.$has_tax;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can't just add new info at the end... You need to add your data in the existing fields. Authorize.net does not allow you to add new columns to that table. We can't do nothing about that.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
"x_amount" => round($order->cart->full_total->prices[0]->price_value_with_tax,(int)$currency->currency_locale),
Please Log in or Create an account to join the conversation.
tried adding static value here...
"x_amount" => round($order->cart->full_total->prices[0]->price_value_with_tax+'10',(int)$currency->currency_locale)
no resluts...my value is here $product->cart_product_support ;
guide how to add it so that is shows in total....have used same to add extra cost in items total..
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
have added in classes/order.php like this
$order->products[$k]->order_product_total_price_no_vat = ($product->order_product_price+$product->order_product_support)*$product->order_product_quantity;
i cn see in cart.php & currenct.php total is calcualting don't know where to add exactly...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$support = 0;
foreach($order->cart->products as $product){
$support+=$product->order_product_support;
}
at the beginning of the function _loadStandardVars
Then you could simply have:
"x_amount" => round($order->cart->full_total->prices[0]->price_value_with_tax+$support,(int)$currency->currency_locale),
There is no insert query for data in HikaShop. It's done automatically with the hikashopClass class functions in administrator/components/com_hikashop/helpers/helper.php. The data of the order is given to it in components/com_hikashop/controllers/checkout.php in the function after_confirm.
Please Log in or Create an account to join the conversation.
this field is in order_product
not in order table
will the code u gave will work fine
Please Log in or Create an account to join the conversation.