Another aspect of mobile commerce
Written by Thomas Kahl   
Sunday, 21 November 2010 20:46

... with Virtuemart. No, i don't want to talk about iSomething or Android or similar devices. I was travelling with Sören from Virtuemart and we discussed of course some Virtuemart topics. I wanted to show him some things we have recently created in Virtuemart shops. I booted my notebook and connected to the web via UMTS - great new world.

As we opened the first shop and looked at some pages, i saw that the "Addtocart-Button" was missing! Not such a good thing for a shop. Of course i first thought that there was an error on the website. I checked another shop and a third one - guess what, the Addtocart-Button was missing everywhere.

We checked in firebug and saw that everything was alright. Even the link to add a product to the cart was there. It was just the button-image that was missing.

What we found out was, that the UMTS-provider (like most of them) is "optimizing" the HTML / CSS to reduce the traffic. Virtuemart (by default) uses the fetchscript.php to load javascripts and css files. Obviously, the "optimizing-technique" of the provider didn't recognize background images defined in the CSS loaded by the fetchscript.php.

I copied the addtocart-stuff from the theme.css into the template-css, which is loaded the normal way. Hooray, the button was back online and visible.

What do we learn? You can never test enough on different environments. We suggest to put all background-image-definitions from the theme.css to another css-file that is loaded the normal way because unfortunately it is not so easy to disable the fetchscript-feature in Virtuemart. You can also try the URL-parameter "usefetchscript=0" to disable this feature. If this works for you, you can define this parameter as default on your site.

Trackback(0)
Comments (2)Add Comment

Write comment
smaller | bigger

security code
Write the displayed characters


busy
 

Blog Newsletter

Blog RSS-Feed Click here

Subscribe to our Blog Newsletter

Enter your email address:

Delivered by FeedBurner