News:

Looking for documentation? Take a look on our wiki

Main Menu

Where's basket.php in VirtueMart 2.0

Started by suesbarn, August 22, 2012, 18:41:44 PM

Previous topic - Next topic

suesbarn

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

bytelord

Hello mike,

in VM2 the basket called 'cart'
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

suesbarn


bytelord

hi,
module, layout template, on the core? what exactly you are searching for?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

suesbarn

I want to know where in the FTP is cart.php located? For example, administrator/components/com_virtuemart.

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

suesbarn

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