Poll

how create like us photos ???

1
0 (0%)
2
0 (0%)

Total Members Voted: 0

Author Topic: how custom flypage (like us foto)  (Read 3471 times)

DeCoRe

  • Beginner
  • *
  • Posts: 10
how custom flypage (like us foto)
« on: April 05, 2010, 16:18:06 pm »
Please help me for this questions, see pictures.


[attachment cleanup by admin]

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #1 on: April 06, 2010, 12:21:31 pm »
None ???

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: how custom flypage (like us foto)
« Reply #2 on: April 06, 2010, 18:40:53 pm »
DeCoRe, you can change the formating of the currency in VirtueMart's back-end configuration.

- login to the backend as administrator
- from the "Components" menu, select VirtueMart
- from the left side, choose Store
- under Store, choose Edit Store
- in the "Currency Display Style" box, make the following changes:

Decimal Symbol:
,
Thousands separator:
.
Positive Format:
00 Symb
Negative Format:
whichever one you prefer

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #3 on: April 06, 2010, 19:17:48 pm »
Thank you for your reply

But what I want to do is to make small 2 decimal digits after the price, Suppose that the price is 124,00 € - I want to display 124,oo € and underneath in small letters in (inclunding 21% tax) and not next.

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: how custom flypage (like us foto)
« Reply #4 on: April 07, 2010, 01:12:16 am »
DeCoRe, I misunderstood.  From your image, I thought you wanted to move the Euro symbol after the currency amount.

The following modification will make the 2 decimal digits smaller.  Note that this modification only works if the Euro symbol (€ )is one space after the amount.  Also note that since this change is to the commonly used "price template" it will affect all pages that use this template.

Make a copy of, then edit this file:

     components/com_virtuemart/themes/your_theme/templates/common/price.tpl.php

You'll have to make 3 similar changes.  First, for the undiscounted price, change this line:
Code: [Select]
<?php echo $CURRENCY_DISPLAY->getFullValue($undiscounted_price); ?>to this:
Code: [Select]
<?php echo preg_replace('|(.*)\.(\d\d) €.*|''${1}.<span style="font-size:8px;">${2}</span> €'$CURRENCY_DISPLAY->getFullValue$undiscounted_price ) ) ?>
Second, for the actual price, change this line:
Code: [Select]
<?php echo $CURRENCY_DISPLAY->getFullValue($base_price?>to this:
Code: [Select]
<?php echo preg_replace('|(.*)\.(\d\d) €.*|''${1}.<span style="font-size:8px;">${2}</span> €'$CURRENCY_DISPLAY->getFullValue$base_price ) ) ?>
Third, for the amount saved, change this line:
Code: [Select]
echo $CURRENCY_DISPLAY->getFullValue($discount_info["amount"]);to this:
Code: [Select]
<?php echo preg_replace('|(.*)\.(\d\d) €.*|''${1}.<span style="font-size:8px;">${2}</span> €'$CURRENCY_DISPLAY->getFullValue$discount_info["amount"] ) ) ?>

Note in all 3 that you can change the 8px to whatever value you'd like.

To put the line "(including xx% tax)" in small letters on the next line,  in the same file find this line:
Code: [Select]
<?php echo $text_including_tax ?>and chanage it to this:
Code: [Select]
<br /><span style="font-size:8px; "><?php echo $text_including_tax ?></span>
Save and test.

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #5 on: April 07, 2010, 09:37:50 am »
Thanks for your help.
www.decore.com.gr

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #6 on: April 07, 2010, 10:42:50 am »
i have problem, dont see any change, why?

Please see

http://www.decore.com.gr/DCR/el/eshopdecore.html?page=shop.browse&category=

Pitpan

  • Beginner
  • *
  • Posts: 29
    • κατασκευή ιστοσελίδων
Re: how custom flypage (like us foto)
« Reply #7 on: April 07, 2010, 12:15:31 pm »
Great info rb.
Thanks for sharing but it seems that the 2 decimals trick doesnt work!!!

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: how custom flypage (like us foto)
« Reply #8 on: April 07, 2010, 15:10:50 pm »
Oops, a couple of problems.  I had tested it on a site that had a different currency and a different decimal symbol.  I'm also having a problem with the Forum's editor properly showing the Euro symbol within code blocks.  The 3 changed lines should be these if your symbol is the Euro and if your decimal symbol is the comma (,).  Make sure it's all one long line of code.



<?php echo preg_replace('|(.*),(\d\d) &euro;.*|', '${1}.<span style="font-size:8px;">${2}</span> &euro;', $CURRENCY_DISPLAY->getFullValue( $undiscounted_price ) ) ?>


<?php echo preg_replace('|(.*),(\d\d) &euro;.*|', '${1}.<span style="font-size:8px;">${2}</span> &euro;', $CURRENCY_DISPLAY->getFullValue( $base_price ) ) ?>



<?php echo preg_replace('|(.*),(\d\d) &euro;.*|', '${1}.<span style="font-size:8px;">${2}</span> &euro;', $CURRENCY_DISPLAY->getFullValue( $discount_info["amount"] ) ) ?>

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #9 on: April 08, 2010, 09:56:52 am »
where see this ^^^ ?

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #10 on: April 08, 2010, 10:45:12 am »
o.k. i see - i can change value. it's work !!!

Something else ...

How small <br> between Price and TAX

Please see - http://www.decore.com.gr/DCR/el/eshopdecore.html?page=shop.browse&category_id=9

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: how custom flypage (like us foto)
« Reply #11 on: April 08, 2010, 17:22:23 pm »
The answer to the line break question was given in my second post in this thread.

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #12 on: April 08, 2010, 18:45:13 pm »
I will something else,

Please look picture

link : http://www.decore.com.gr/DCR/el/eshopdecore.html?page=shop.browse&category=

[attachment cleanup by admin]

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: how custom flypage (like us foto)
« Reply #13 on: April 08, 2010, 20:04:21 pm »
If you are dissatisfied with the height of the blank line, you could use CSS to style its font size or line height.

DeCoRe

  • Beginner
  • *
  • Posts: 10
Re: how custom flypage (like us foto)
« Reply #14 on: April 09, 2010, 09:46:18 am »
thanks for your help.