- Posts: 98
- Thank you received: 1
need know a product name, category name, unit pric
-- HikaShop version -- : x2.2.3
-- Joomla version -- : Joomla! 2.5.11
-- PHP version -- : 5.4.5
I need know a product name, category name, unit price and quantity in an order :
In last step of transaction (in my end page (checkout/end.php)
I would write :
transaction Id = 1234
Site name = Toto Inc Web Site
bill total = 25.00
bill tax = 2.50
shipping = 5
Items :
product id = 123456789
product name = tostos
product category name = computer
product price = 10.00
product quantity = 1
Items :
product id = 323456789
product name = toptop
product category name = computer
product price = 7.50
product quantity = 1
I find the transaction Id, site name , bill total, bill tax and shipping but I can not find
information of each items : product id, product name, product category name, product price, product quantity
I put this code in my end.php :
But I added also information of Items transaction.
How can I have it ?
I tried it with this code but I have anything : :oops:
but these variables are null :oops:
How can I get its values ?
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It works and I find :
product id = 123456789
product name = tostos
product price without tax = 10.00
product quantity = 1
I tried for' product category name" ( = computer)product category name = computer
product price without tax = 12.50
But I have anything
How can I find its values for 'product category name' and 'product price with tax' ? :ohmy:
thanks
Please Log in or Create an account to join the conversation.
When I have many items, for example 2, I see only last item : :blush:
In my cart :
1 Items :
product id = 123456789
product name = tostos
product price without tax = 10.00
product quantity = 1
2nd Items :
product id = 323456789
product name = toptop
product price without tax = 7.50
product quantity = 1
bill total = 25.00
bill tax = 2.50
shipping = 5.00
but on my screen, on last step of transaction (in my end page (checkout/end.php), I see only last item :
transaction Id = 1234
Site name = Toto Inc Web Site
bill total = 25.00
bill tax = 2.50
shipping = 5
product id = 323456789
product name = toptop
product category name = [missing value]
product price without tax = 7.50
product price with tax = [missing value]
product quantity = 1
I can not see any information on 1st item : missing 1st item
Can you help me
thanks
Please Log in or Create an account to join the conversation.
will indeed display the full unit price.
For the category, it's more complex....You'll have to use the product_id attribute to load the category_id from the hikashop_product_category table and then do another query to load the category name from the hikashop_category table based on the category_id from the first query result.
Please Log in or Create an account to join the conversation.
It works
Please Log in or Create an account to join the conversation.