I would like to add a simple comment to all products that states that the delivery fee will be calculated at checkout without having to place this comment in every single description of every product. I was hoping that there would be some sort of area in VM config that would allow for a generic comment but I cant seem to find it and nor do I know of an easy way of doing it other than hard coding it. Problem is I don't know where and how. Does any body have any solutions for me or are able to point me to a thread that has solved this issue before?
Joomla 3.9.22
VM 3.6.10
Make a hidden parent product with a custom field that contains the text.
Ad as many children as you like they inherit the fields from the parent, if not overridden by the child.
Jörgen
add a custom field - type string
position - probably normal - see screen shot
the drawback is u need to add this custom field to each product.
Personally I would simply add it in a logical position in the templates\xxx\html\com_virtuemart\productdetails\default.php over ride
perhaps after <?php echo $this->product->product_desc; ?>
<?php echo '<br />delivery fee will be calculated at checkout'; ?>
You have basically three options
- Add ONE custom field in a hidden parent product. Add this parent id to each new product or old that You want to inherit the parents options.
- Add this custom field to all of the product
- Make an override and use the override with this product, one setting for each product is needed
Jörgen
Thank you GJC for your advice its exactly the thing I was thinking would work but I don't know how to code. I don't suppose you know where the position would be to place that code just above the pricing instead?
I just also want to also thank both you guys that have replied, You guys don't know it but you have helped me out countless times in other threads along with Jenkin and Max and for this I'm truly grateful !!! ;D
in a std template would be before
echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$this->product,'currency'=>$this->currency));
This solution worked for me. Thank you very very much for all your help, This time and all the other times you were not even aware about. ;D ;D ;D ;)