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

How show the Price and AddToCart to related poducts

Started by prdador2, March 23, 2018, 12:59:29 PM

Previous topic - Next topic

prdador2

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  :'(

Jörgen

Go to custom fields (Related Products) and tick the things You want to be displayed.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

prdador2

Hello Jörgen Thanks for u reply

I see that option many time... But cannot show the price and addtocart on my related products :(

Jörgen

It works for me with protostar. Check Your template override.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

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.

prdador2

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  :-\

Jörgen

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

regards

Jörgen @ Kreativ Fotografi

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

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