Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Displaying the Cart inside Virtuemart's browse pages.

Displaying the Cart inside Virtuemart's browse pages.

Hi, just want to say that i think Metamod is a great module and has solved alot of problems for me in the past!

I have just got Pro and I need it to display the Virtuemart cart on the browse and product id pages inside my shop. I have looked at the recipes page and I understand the principles of how the code tells the system what to display but i cannot get it to work!?

I have 19 catergories, some with sub catergories and these catergories contain the products. Is there a way i can tell meta mod to display the wrapped cart (i can get this to work fine) inside all the pages and their subsequent products?

As you can probably tell, i'm not really a programmer and PHP scares me!smile

Can yaou help at all... maybe some example code (i realise the recipes are this but i dont know if i have to include the entire recipe or just the parts specific to me??). Anything!

Thanks in advance!!! The shop is available at http;//www.data.org.uk
Swain

Swain0
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Looking at your site, I guess you are referring to selling the memberships?

Could you perhaps give some example URLs for pages where you would want the cart module to display, and pages where you wouldn't? Is this just based on the particular categories of items, or more on the different types of pages?

The more specific you can be, the better :-)

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Hi Stephen

Thanks for replying, the membership sales are one aspect of the shop. We also sell educational publications at http://www.data.org.uk/index.php?option … Itemid=684

This is a standard Joomla article listing the various catergories of sale, Primary, Secondary etc. I would like the cart to be visible in each of these catergories so while the user is browsing inside e.g. Secondary, they can see what they already have in their cart. Some example URLs are

http://www.data.org.uk/index.php?option … Itemid=683

and

http://www.data.org.uk/index.php?option … Itemid=683

The various non-member areas are available through the ONLINE SHOP link on the right of the page. I wonder if i could ask you also about another issue relating to this ONLINE SHOP tab?

This originally was a standard Meta Mod tab, it would disapear once logged in and replaced by a identicle tab to take the user to the members shop (identicle in layout only with discounted prices). When i installed MMPro the styling disapeared? The CSS code and MetaMod suffix are the same, I dont suppose you have any ideas about why this may be?

Sorry to bombard you with another query, i do really appreciate you replying though!

Cheers
Paul


disappears

Swain0
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Swain0 wrote:

I wonder if i could ask you also about another issue relating to this ONLINE SHOP tab?

This originally was a standard Meta Mod tab, it would disapear once logged in and replaced by a identicle tab to take the user to the members shop (identicle in layout only with discounted prices). When i installed MMPro the styling disapeared? The CSS code and MetaMod suffix are the same, I dont suppose you have any ideas about why this may be?

Sorry to bombard you with another query, i do really appreciate you replying though!

Cheers
Paul

Ok, about this latter point, the reason for losing the styling is this:

- before you installed MetaMod Pro, the ONLINE SHOP module was wrapped inside of the MetaMod. Thus when you applied a module class suffix to the MetaMod, this affected the ONLINE SHOP module inside it.

- Now that you have installed MetaMod Pro, the ONLINE SHOP module is no longer wrapped inside the MetaMod - it just stands by itself on the page.

- Therefore, what you need to do is to put the Module Class Suffix onto the ONLINE SHOP module instead of the MetaMod. I assume that the ONLINE SHOP module gives you the ability to do that?

This is one of the few cases where installing MetaMod Pro means having to make some changes to your setup, but it's pretty straight forward stuff once you know what's going on.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Swain0 wrote:

Thanks for replying, the membership sales are one aspect of the shop. We also sell educational publications at http://www.data.org.uk/index.php?option … Itemid=684

This is a standard Joomla article listing the various catergories of sale, Primary, Secondary etc. I would like the cart to be visible in each of these catergories so while the user is browsing inside e.g. Secondary, they can see what they already have in their cart. Some example URLs are

http://www.data.org.uk/index.php?option … Itemid=683

and

http://www.data.org.uk/index.php?option … Itemid=683

The various non-member areas are available through the ONLINE SHOP link on the right of the page.

I'm still struggling a bit to know what you're asking for, so if my assumptions are wrong please let me know.

You're saying:

- on the index page of http://www.data.org.uk/index.php?option … Itemid=684 you DON'T want the cart to appear?

- on any of the inner pages like the 2nd and 3rd URLs above, (category browse pages), you DO want the cart module to appear?

If that's the case then I would use the following rule and assign it to the "menu item" (page) that you're using for the detail pages (Itemid/menu #683). You would not need to assign the cart module onto the "index" page (1st URL above) unless you want a cart there:

Code:

if ($option == "com_virtuemart") {

$page = JRequest::getVar("page");
if ($page == "shop.browse") return 101; /* customise this module ID */
}

All this does is to detect whether the page is a VirtueMart "Browse" (i.e. category list) page. And if so, returns a module number. Swap "101" for the module number of your shopping cart.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Hi Stephen

Great help, that clears up my confusions. I feel confident enought that i know what I'm doing! Now to start playing! smile

Thanks also for the CSS solution, you have been very helpful and I love MetaMod (and the support!!!)If i have any other queries I shall say but I should be ok!

Thank you again!Paul

Swain0
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Hi Stephen

Thanks for your help with the Virtuemart Cart display, that snippet of code you gave me helped me understand the process better and I have combined it with some code from the recipies page and it works great, so thank you!!smile

Unfortunately I am still having trouble with the styling issue.

USER wrote:


- before you installed MetaMod Pro, the ONLINE SHOP module was wrapped inside of the MetaMod. Thus when you applied a module class suffix to the MetaMod, this affected the ONLINE SHOP module inside it.

- Now that you have installed MetaMod Pro, the ONLINE SHOP module is no longer wrapped inside the MetaMod - it just stands by itself on the page.

- Therefore, what you need to do is to put the Module Class Suffix onto the ONLINE SHOP module instead of the MetaMod. I assume that the ONLINE SHOP module gives you the ability to do that?

The ONLINE SHOP tab does still appear to be wrapped inside a MetaMod module. I tried adding the original ONLINE SHOP to all menu items and it appeared twice, once as ONLINE SHOP menu and then again as MetaMod.

Maybe i didn't install MetaMod plugin correctly, the file I got from your site was plug_metamod-1-0-3. Is this Pro and does it just replace the previous instance of MetaMod completely?

Thanks again!
Paul

Swain0
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Displaying the Cart inside Virtuemart's browse pages.

Swain0 wrote:


The ONLINE SHOP tab does still appear to be wrapped inside a MetaMod module. I tried adding the original ONLINE SHOP to all menu items and it appeared twice, once as ONLINE SHOP menu and then again as MetaMod.

Maybe i didn't install MetaMod plugin correctly, the file I got from your site was plug_metamod-1-0-3. Is this Pro and does it just replace the previous instance of MetaMod completely?

1 - plug_metamod-1-0-3 is "MetaMod Pro". I think you have it installed properly. You just add this to your existing MetaMod installation and use MetaMod as normal.

2 - you tried adding the normal ONLINE SHOP to all menu items and it appeared twice -- that's expected behaviour. You still need to set your "included" modules to "Menu Assignment: None" so that they don't show up outside the control of MetaMod. It's just that with MetaMod Pro added to the mix, (a) they don't get extra HTML added around them, and (b) if the MetaMod decides not to include them, then the module will disappear completely.

Looking at your page http://www.data.org.uk/index.php?option … Itemid=684 I'm looking at the modules on the right hand side of the page:

- there does not seem to be any extra HTML around any of the modules, though it's hard to tell for sure. Around the modules I can see 3 sets of divs (standard "rounded" style) which is almost certainly mandated by the template. Inside that the "ONLINE SHOP" looks like a menu module of some sort and doesn't have extra divs or table around it.

You should be able to see if the MetaMod is affecting the styling of the modules it includes. If changing the styling inside the MetaMod (e.g. with the css class suffix, or stlye for included modules) changes the styling of the modules it is including, then MetaMod Pro is *not* installed right. If changing these things DOES NOT affect the styling of the modules, then MetaMod Pro is installed correctly and doing its job.

I hope that clears things up - if not please PM me and I'll help you directly.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5172
Newest User:
nycpp96
Members Online:
0
Guests Online:
142

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked