VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: diegosartori on September 10, 2013, 22:42:33 PM

Title: Images and logo in the shopping cart
Post by: diegosartori on September 10, 2013, 22:42:33 PM
Hello,
I need to modify the shopping cart page.

The configuration I use is this:

Joomla! 2.5.14
Virtuemart 2.0.22b

The site (currently off-line):
www.sonicdevice.it
user: assistenza
pw: assistenza

From the configuration menu I can choose whether to display or not display the images of the products in the basket. So everything is right.
For the method of shipment and the payment I put icons (Paypal, etc..). They will appear properly at the time of selection, during the chekout (and that's okay), but I would not appeared on the page of the cart, nor even in the notices that are sent to the customer (including invoice).
Even in the official manual Virtuemart I have not found anything about it.
The documents with these images become a bit too picturesque.

Thank you.

Diego
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 12, 2013, 22:25:37 PM
Give url to a test product pls.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 12, 2013, 23:27:49 PM
Try with this:

http://diegosartori.altervista.org/index.php/i-miei-ordini/number/46a405.html

Thank you.
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 13, 2013, 09:15:46 AM
Could you post here direct url to the paypal icon?

Could you test your issue on standard Joomla template?
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 13, 2013, 15:12:42 PM
With a standard Joomla template, like Atomic, the issue is exactly the same.
I'm sorry, but I don't now the way to give you a direct URL to Paypal icon.
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 14, 2013, 10:08:18 AM
Ok.
Quote from: diegosartori on September 12, 2013, 23:27:49 PM
Try with this:

http://diegosartori.altervista.org/index.php/i-miei-ordini/number/46a405.html
I need a new working URL.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 14, 2013, 21:31:52 PM
I have made an update ...  :-[

This is a new URL:

http://diegosartori.altervista.org/index.php/i-miei-ordini/number/c05c05.html

Thanks.

Diego
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 16, 2013, 05:14:13 AM
I need a screen shot with your issue.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 16, 2013, 07:32:32 AM
Three screenshot in attachments.

[attachment cleanup by admin]
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 18, 2013, 16:32:16 PM
Quote from: diegosartori on September 10, 2013, 22:42:33 PM
They will appear properly at the time of selection, during the chekout (and that's okay), but I would not appeared on the page of the cart, nor even in the notices that are sent to the customer (including invoice).
I need a little more instructions. What from above and where is not perfect on your screenshots #1, #2 or #3?
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 18, 2013, 17:54:01 PM
If it is possible I want delete the payment and shipping logo in all screen-shot.
Thanks.
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 18, 2013, 20:21:56 PM
Sure it's possible in your template overrides. Report here if you would have some troubles with this.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 19, 2013, 00:39:06 AM
Ok, the best solution is an override, but I don't now what I have to modify.
Do you have an idea?
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 20, 2013, 13:11:11 PM
Sorry, I gave you a wrong tip. Displaying of logos is hard coded here
administrator\components\com_virtuemart\plugins\vmpsplugin.php
foreach ($logo_list as $logo) {
$alt_text = substr ($logo, 0, strpos ($logo, '.'));
$img .= '<span class="vmCartPaymentLogo" ><img align="middle" src="' . $url . $logo . '"  alt="' . $alt_text . '" /></span> ';

So in your case you need to hide logos with the help of css.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 20, 2013, 14:35:34 PM
Ok, I try to delete logo in this file. Thank you.
I have made an update.
This is a new URL:
http://www.diegosartori.altervista.org/index.php/i-miei-ordini/number/853506.html
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 20, 2013, 15:00:10 PM
If I delete the code:

         foreach ($logo_list as $logo) {
            $alt_text = substr ($logo, 0, strpos ($logo, '.'));
            $img .= '<span class="vmCartPaymentLogo" ><img align="middle" src="' . $url . $logo . '"  alt="' . $alt_text . '" /></span> ';

I see a withe page when I try to go on the home page of the shop.

If I delete the code:

   protected function displayLogos ($logo_list) {

      $img = "";

      if (!(empty($logo_list))) {
         $url = JURI::root () . 'images/stories/virtuemart/' . $this->_psType . '/';
         if (!is_array ($logo_list)) {
            $logo_list = (array)$logo_list;
         }
         foreach ($logo_list as $logo) {
            $alt_text = substr ($logo, 0, strpos ($logo, '.'));
            $img .= '<span class="vmCartPaymentLogo" ><img align="middle" src="' . $url . $logo . '"  alt="' . $alt_text . '" /></span> ';
         }
      }
      return $img;
   }

I see a withe page when I try to select the payment.

I'm sorry, but i dont now what is the correct way.
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 21, 2013, 13:21:10 PM
If you will use this
$img .= '<span class="vmCartPaymentLogo" ></span> ';
it will be enough.

Can you try to delete logos with the help of CSS? Cos by deleting in php file you will deleted logos in another VM views.
Title: Re: Images and logo in the shopping cart
Post by: diegosartori on September 21, 2013, 14:30:56 PM
I don't think. I don't now how modify the CSS code. I hope you can teach me the right way.
Thanks.
Title: Re: Images and logo in the shopping cart
Post by: Maxim Pishnyak on September 21, 2013, 18:59:54 PM
Quote from: diegosartori on September 21, 2013, 14:30:56 PM
I don't now how modify the CSS code. I hope you can teach me the right way.
Thanks.
Google "css display none". You could test your css changes with the help of Firebug (FAQs in this forum section).