News:

Support the VirtueMart project and become a member

Main Menu

Images and logo in the shopping cart

Started by diegosartori, September 10, 2013, 22:42:33 PM

Previous topic - Next topic

diegosartori

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.

Maxim Pishnyak

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.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

diegosartori

I don't think. I don't now how modify the CSS code. I hope you can teach me the right way.
Thanks.

Maxim Pishnyak

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).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart