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?
Display shipping costs under all price displays
-
- Phoca Enthusiast
- Posts: 85
- Joined: 13 Feb 2020, 17:49
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display shipping costs under all price displays
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
- 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
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 85
- Joined: 13 Feb 2020, 17:49
Re: Display shipping costs under all price displays
Hi Jan! Thanks for your reply. This is too complicated for me. Any idea how to sove this? Anyone to pay for this change?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display shipping costs under all price displays
Hi, if you change in file: modules/mod_phocacart_cart/mod_phocacart_cart.php on line cca 26
from:
to:
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
from:
Code: Select all
$cart = new PhocacartCartRendercart();
Code: Select all
$cart = new PhocacartCartRendercheckout();
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
If you find Phoca extensions useful, please support the project