-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Firefox 34.0.5
For my client it is important to show the category from which the items were ordered (during the making of the wishlist or shopping cart). My client wants to retrace the path of the ordering process. That's why I want to add a field for every order item in which that category is listed.
Therefore I thought to add a custom field 'item' via your custom fields menu, or add a table column myself in table 'order_product' or 'cart_product. I think ordering in this case only may be possible from the category list (not from product details, because the category is lost over there) called from the menu list / div.
Maybe I should make an override for <listing_div.php>, but at least for <add_to_cart_listing.php>, I think.
But how to do this? How to transfer the (sub)category which is shown, to the new database field, at the moment of ordering. And what is the best information to transfer? Perhaps the title (page title) and may be the url, but otherwise the category ID (but than i hav to translate this later on to a category name in the order).
For the URL I need in <add_to_cart_listing.php> something like:
<?php echo hikashop_currentURL(); ?>
TIA for any help,
Joris