Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: [SOLVED] Cart and Search modules

[SOLVED] Cart and Search modules 11 years 6 months ago #562

Hi again,

The updated template is fine so far.. no breaks at all.
I want to ask something else..
When I am in a page outside the virtuemart (lets say in the contact page of my site) the search and the cart module dont seem to be the ones that I see in the demo page. When I am in the vm then everything is OK.

Do you know why does this happen?

Sofoklis
Attachments:
Last Edit: 11 years 6 months ago by Support.
The topic has been locked.

Cart and Search modules 11 years 6 months ago #571

Hi,

It is because the flexbileVM2Global.CSS don't get loaded when you are out of Virtuemart component.
You can manually add the flexibleVM2Global.css to other pages as well. Do this to your joomla template index.php file which should be right here:
templates/<yourjoomlatemplatefolder>/index.php
(make sure you add the line inside anywhere between <head>...</head>

<link rel="stylesheet" href="templates/<yourjoomlatemplatefolder>/html/com_virtuemart/assets/css/flexibleVM2Global.css" type="text/css" />

(don't forget to change the "yourjoomlatemplatefolder" with yours.
And since you manually force to load the flexibleVM2Global.css in ALL pages. Then it would better idea to disable it from our VM Template. Otherwise, the flexibleVM2Global.css will be loaded twice in Virtuemart related pages. It might increase the page loading time little bit (something like couple milliseconds more though)

For this purpose, open this PHP file:
templates/<yourjoomlatemplatefolder>/html/com_virtuemart/assets/includes/flexibleMartGlobal.php

Find this line:

$document->addStyleSheet($flexibleGlobalCSSpath.$flexibleGlobalCSSfilename);

and change it with this:

// $document->addStyleSheet($flexibleGlobalCSSpath.$flexibleGlobalCSSfilename);

You will be good to go.

Cheers.
The topic has been locked.

Cart and Search modules 11 years 6 months ago #606

I followed your instructions and both module are shown everywhere within my page. The only problem is that when I am outside the vm the ajax cart module is loading and loading without showing the products in the basket.
If the solution is something simple OK but if there is something complicated then I will fowwol another way (showing the baskwt only within the vm)

Thank in advance
The topic has been locked.

Cart and Search modules 11 years 6 months ago #613

Hi,

Can you provide me a live URL of your website where the module can't GRAD the products from the cart?
I have to take a look at the source codes to see the designation URL. Probably something is wrong with the designated URL.

I can't say anything without see it.
The topic has been locked.

Cart and Search modules 11 years 6 months ago #638

I provide you some links because the site is in greek and probably it will be difficult for you to understand it.

contact page
home page
virtuemart
The topic has been locked.

Cart and Search modules 11 years 6 months ago #655

Hi,

okay, i understand the problem, The AJAX loading targetting wrong URL like this:
(/trazeras-test/index.php?view=cart&Itemid=124 #FlexibleCartProducts');

But it was supposed to be like this:
(/trazeras-test/index.php?option=com_virtuemart&view=cart&Itemid=124 #FlexibleCartProducts');

Did you touch this PHP file?:
www.pantikidis.gr/trazeras-test/templates/trazerascb/html/mod_virtuemart_cart/default.php

I have sent you an email, please try this patch.

Cheers.
The topic has been locked.

Cart and Search modules 11 years 6 months ago #679

Thanks for one more time. Now it works.
I dont remember whether I have changed something at the above file. Probab;y no, as my knowledge is limited.
The topic has been locked.

Cart and Search modules 11 years 6 months ago #689

Hi,

Probably it was a SEF url issue, somehow while SEF URL was generating the "&option=com_virtuemart" parameter was gone. It is unusual situation though. Anyway, i am glad it is working now.

Cheers.
Case solved. Topic is closed.
The topic has been locked.
Time to create page: 0.154 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo