VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: sign-p on January 06, 2015, 12:20:39 PM

Title: Shipping cost by the product detailsite and legal information
Post by: sign-p on January 06, 2015, 12:20:39 PM
Hello at all,

for german shops we need two thing this will a most of european laws.

1) on the product detail site (flypage) it should be a link to the shipping cost shown, directly by the prices of the products.
i have done this in the prices.php at the end with this code

<p> </p>
<a href="mylink">shipping coast</a>
<p> </p>

But i have a multilingual shop and i need this in more languages and the link should go to the rigth content of joomla in the right language
How can i do this, or can some one show me the code for this?


2) on the chart at the end it will shown a link and a option field for "legal information", so we need a second for the "right of withdrawal"
how can i do this and where can i find the file to do this.

Thanks best regards Thomas
Title: Re: Shipping cost by the product detailsite and legal information
Post by: GJC Web Design on January 06, 2015, 13:18:16 PM
1) a lang constant for the label
detect language and have a if statement to show the correct link or a ......&lang=<?php echo $detectedlang; ?>

2) chart at the end???  You mean the cart?

no versions given or link.. but will be \components\com_virtuemart\views\cart\tmpl\default.php - over ride it
Title: Re: Shipping cost by the product detailsite and legal information
Post by: sign-p on January 07, 2015, 13:56:35 PM
Hello, thanks for your answer.

Joomla 3.x the last version
Virtuemart 3.0.2

Can you write me what i must change exactly in the script? Sorry my PHP/HTML is not good enough to do this allone.
I have send you an attachemt for them i neet the two legal informations

Thanks best regards Thomas

[attachment cleanup by admin]
Title: Re: Shipping cost by the product detailsite and legal information
Post by: GJC Web Design on January 07, 2015, 15:51:19 PM
House calls are charged for sorry..
Title: Re: Shipping cost by the product detailsite and legal information
Post by: bluezeyes on January 07, 2015, 19:32:45 PM
For the withdrawal thing...

Create a custom user field type Boolean..  name it iow
Options required,
Copy the sub layout file tos.php to iow.php
Create Lang overrides for the text to show (check the tos field / overrides as reference)
Edit the iow.php to load the correct article ... Use the tips from GJC  for language switching too..