VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: prdador2 on March 23, 2018, 12:59:29 PM

Title: How show the Price and AddToCart to related poducts
Post by: prdador2 on March 23, 2018, 12:59:29 PM
Hello everyone i have a problem with this ... I need show the price and button addtocart to my related products but i can't :(

My version of VM 3.2.12 Joomla 3.8.5

My file is customfields_related.php located in my folder of Sublayouts on Virtuemart.

Please help me  :'(
Title: Re: How show the Price and AddToCart to related poducts
Post by: Jörgen on March 23, 2018, 14:12:21 PM
Go to custom fields (Related Products) and tick the things You want to be displayed.

regards

Jörgen @ Kreativ Fotografi
Title: Re: How show the Price and AddToCart to related poducts
Post by: prdador2 on March 23, 2018, 14:42:04 PM
Hello Jörgen Thanks for u reply

I see that option many time... But cannot show the price and addtocart on my related products :(
Title: Re: How show the Price and AddToCart to related poducts
Post by: Jörgen on March 23, 2018, 16:38:13 PM
It works for me with protostar. Check Your template override.

regards

Jörgen @ Kreativ Fotografi
Title: Re: How show the Price and AddToCart to related poducts
Post by: Studio 42 on March 23, 2018, 23:40:38 PM
Many related product use override in template, because it not render well, in general, with bootstrap, so you have to check if the template have an option or you need to modify the PHP file.
Title: Re: How show the Price and AddToCart to related poducts
Post by: prdador2 on March 24, 2018, 03:54:34 AM
Thanks for u reply Studio 42.

Yeah i'll changed my PHP file but i can't see the correct price of my products and the button addtocart...

I don't know how continued this, Need help for this case cuz it is a seriously problem for my site  :-\
Title: Re: How show the Price and AddToCart to related poducts
Post by: Jörgen on March 24, 2018, 11:35:00 AM
What php file did you change?
You should change your template file.

Or have you perhaps changed the core file ?
Have You tried to with protostar ?

Check how Joomla overrides work, start to try and  understand this:
https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager (https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager)

regards

Jörgen @ Kreativ Fotografi

Title: Re: How show the Price and AddToCart to related poducts
Post by: Studio 42 on March 24, 2018, 17:56:58 PM
Original file is JOOMLAROOT/components/com_virtuemart/sublayouts/related.php
But if JOOMLAROOT/components/com_virtuemart/sublayouts/customfield.php has override, then this can be the cause too.
You can copy to overrride this 2 files in folder JOOMLAROOT/templates/YOURTEMPLATE/html/com_virtuemart/sublayouts/ so you dont loose the changes on Virtuemart update