News:

Support the VirtueMart project and become a member

Main Menu

Category to show in shopping cart AND displayed on order

Started by hayleyv, August 22, 2012, 12:35:48 PM

Previous topic - Next topic

hayleyv

Hi all, I wish to have the product category displayed in:

- Shopping cart module
- Checkout shopping cart
- Order email sent to client
- Order in the backend

I would also be happy with a hack to tack the category on the end of the product so it's there throughout the session from start to finish.

bytelord

Hi,

I think what you want will not work, don't forget that you can return the the product master category, if the product belongs in more categories.
You should make a custom field may be to "point" out the information you want. Any way your could use $product->category_name to extract the category that the product belongs to and use some template overrides to accomplish that (some php skills).
You can find more information regarding templates layout here:
http://forum.virtuemart.net/index.php?topic=100696.0
http://forum.virtuemart.net/index.php?topic=97744.0
http://forum.virtuemart.net/index.php?topic=92756.0

for your second question i didn't catch your point ...




Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

hayleyv

Thank you for the reply.  I have just discovered custom fields which have sorted me out ;-)