VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: hayleyv on August 22, 2012, 12:35:48 PM

Title: Category to show in shopping cart AND displayed on order
Post by: hayleyv on August 22, 2012, 12:35:48 PM
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.
Title: Re: Category to show in shopping cart AND displayed on order
Post by: bytelord on August 22, 2012, 12:54:26 PM
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 ...




Title: Re: Category to show in shopping cart AND displayed on order
Post by: hayleyv on August 22, 2012, 16:13:12 PM
Thank you for the reply.  I have just discovered custom fields which have sorted me out ;-)