Page 1 of 1
Display shipping costs under all price displays
Posted: 05 May 2020, 18:45
by MAXambient
I would like to have the shipping costs displayed in the product overviews, the individual views and in the shopping cart, but I cannot find a parameter to set this.
They will only be displayed when I go to the checkout to pay.
Since we only have one shipping method, a hint would be enough for us as for example:
"Plus 5,95 EUR shipping costs."
Alternatively a link "Plus shipping costs" would be possible, which then leads to an info page with all shipping costs.
Does that work?
Re: Display shipping costs under all price displays
Posted: 08 May 2020, 21:18
by Jan
Hi, there are two outputs for cart:
- components\com_phocacart\layouts\cart_cart.php (used for cart in module)
- components\com_phocacart\layouts\cart_checkout.php
So the only idea for now which I have, is to change teh cart_cart.php to cart_checkout.php and customize the design output by CSS in module or crate new module based on cart module with including the cart_checkout.php file
Jan
Re: Display shipping costs under all price displays
Posted: 11 May 2020, 08:11
by MAXambient
Hi Jan! Thanks for your reply. This is too complicated for me. Any idea how to sove this? Anyone to pay for this change?
Re: Display shipping costs under all price displays
Posted: 11 May 2020, 17:47
by Jan
Hi, if you change in file: modules/mod_phocacart_cart/mod_phocacart_cart.php on line cca 26
from:
Code: Select all
$cart = new PhocacartCartRendercart();
to:
Code: Select all
$cart = new PhocacartCartRendercheckout();
Then you cart will be changed to checkout, see:
The cart module is displayed at the top, this is screenshot of checkout, so then the only problem is to not display the module on checkout page - so the content is not displayed twice (checkout vs. cart)
The standard output is:
Jan