VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: suesbarn on August 22, 2012, 18:41:44 PM

Title: Where's basket.php in VirtueMart 2.0
Post by: suesbarn on August 22, 2012, 18:41:44 PM
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
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: bytelord on August 22, 2012, 18:48:27 PM
Hello mike,

in VM2 the basket called 'cart'
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: suesbarn on August 22, 2012, 21:52:09 PM
Thank you. Where is it located?
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: bytelord on August 22, 2012, 21:54:37 PM
hi,
module, layout template, on the core? what exactly you are searching for?
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: suesbarn on August 23, 2012, 15:50:58 PM
I want to know where in the FTP is cart.php located? For example, administrator/components/com_virtuemart.
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: 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
Title: Re: Where's basket.php in VirtueMart 2.0
Post by: suesbarn on August 24, 2012, 19:08:12 PM
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