News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

SOLVED: Add "delivery fee will be calculated on checkout" to description page.

Started by bratamic, November 07, 2020, 13:20:18 PM

Previous topic - Next topic

bratamic

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

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'; ?>



GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

bratamic

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

GJC Web Design

in a std template would be before

echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$this->product,'currency'=>$this->currency));
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bratamic

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 ;)