Display shipping costs under all price displays

Phoca Cart - complex e-commerce extension
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Display shipping costs under all price displays

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display shipping costs under all price displays

Post 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 :idea:

Jan
If you find Phoca extensions useful, please support the project
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: Display shipping costs under all price displays

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display shipping costs under all price displays

Post 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:

Image
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:

Image

Jan
If you find Phoca extensions useful, please support the project
Post Reply