http://forum.virtuemart.net/index.php?topic=87948.0
I want to be able to do this mod in the link above with VirtueMart, but the location of basket.php is different in VirtueMart 2.0. Can anyone help me out with this?
Thank you,
~ Mike
Hello mike,
in VM2 the basket called 'cart'
Thank you. Where is it located?
hi,
module, layout template, on the core? what exactly you are searching for?
I want to know where in the FTP is cart.php located? For example, administrator/components/com_virtuemart.
We do not recommend core hacks in VM2 - almost everthing can be done by the use of template overrides or the use of modules. I think you are wanting to add related products at checkout?
This could be done with one or more modules (hint in http://forum.virtuemart.net/index.php?topic=106411) or maybe you could take the related products view template, default_relatedproducts.php (in joomla_root/components/com_virtuemart/views/productdetails/tmpl/) and after editing that code add it to the relevant cart templates (in joomla_root/components/com_virtuemart/views/cart/tmpl/) to provide a template override. In this way it is only the output diplay that is changed, not the core code.
More information on the templates & overrides in http://forum.virtuemart.net/index.php?topic=90935.0 and http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Quote from: jenkinhill on August 23, 2012, 17:32:30 PM
We do not recommend core hacks in VM2 - almost everthing can be done by the use of template overrides or the use of modules. I think you are wanting to add related products at checkout?
This could be done with one or more modules (hint in http://forum.virtuemart.net/index.php?topic=106411) or maybe you could take the related products view template, default_relatedproducts.php (in joomla_root/components/com_virtuemart/views/productdetails/tmpl/) and after editing that code add it to the relevant cart templates (in joomla_root/components/com_virtuemart/views/cart/tmpl/) to provide a template override. In this way it is only the output diplay that is changed, not the core code.
More information on the templates & overrides in http://forum.virtuemart.net/index.php?topic=90935.0 and http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Thank you. I added the code from default_relatedproducts.php to the Default cart page, and now the Related products section is showing up on the cart page. However, no related products are showing up. Can you help me make it so the related products of the product that is added to the shopping cart shows up on the checkout page?
Thank you,
~ Mike