Loaded menu module inside virtuemart templates using no number but now problem ?

Started by rupesh, June 11, 2012, 15:22:09 PM

Previous topic - Next topic

rupesh

hello,

I have loaded menu modules using no number extension {module 129} in virtuemart templates like orders,edit_adrress ! But now i dont want to load this modules inside templates at checkout stage ?  so what condition needs to entered so that this menu module loaded inside virtuemart template will not show during checkout process!

Thank you
rupesh


[attachment cleanup by admin]


rupesh

Quote from: BanquetTables.pro on June 11, 2012, 15:37:58 PM
I use a different way to do modules on vmart pages
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

You can also use metamod
http://www.metamodpro.com/

Thanks for your reply sir but ,

how to analyse that the  template is getting loaded by click on checkout button or some other button?

you have given a tutorial that is loading modules based on views
if (JRequest::getVar('view')=='category')


but in my case if you see images ! I dont want to load module inside add /edit shipping address template at time of CHECKOUT ONLY

thanks for listening
Rupesh



PRO


rupesh

Quote from: BanquetTables.pro on June 11, 2012, 16:56:58 PM
if (JRequest::getVar('view')!='category')

!=    means, NOT equal

Hello  sir, My question is little different for this situation
so on clicking on checkout button it will call add/edit shipping address and on that template i dont want to load menu module  then how to write condition?

like
<?php if (JRequest::getVar('view')!='checkout'){?>
{module 129}
<?php
} ?>
at the begining of edit_address.php  so that it will not call module on that template after clicking on checkout button under cart?
see this "http://www.elifeshopping.com/index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=ST"

i dont want to call left menu after checkout?

Thanks for listening
Rupesh

rupesh

But yes i want that menu to be displayed when user clicked on my account tab at home page ! thats why i have loaded menu inside all the templates in virtuemart!

PRO

<?php if (JRequest::getVar('task')!='editaddresscart'){?>
{module 129}
<?php
} ?>


rupesh

Thanks for your code!

But if i use Your code then the menu is disabled from menu tab also ! actually i want to load menu inside edit_address template only when user clicked on top Myaccount Tab!

Thanks for your help,
Rupesh

[attachment cleanup by admin]

techmodule

Quote from: PRO on June 11, 2012, 15:37:58 PM
I use a different way to do modules on vmart pages
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

You can also use metamod
http://www.metamodpro.com/
dear
i read http://www.kaizenmediaworks.com/virtuemart-template-and-module-control
But i dont know where is templates?
The VM template or Joomla Template
I have a ideal:
In joomla templates
I make new possition name "show-images"
If i open ABC product, the module position "show-images" will so this product images of ABC product
Thank you

PRO

Quote from: techmodule on August 20, 2012, 14:35:26 PM
Quote from: PRO on June 11, 2012, 15:37:58 PM
I use a different way to do modules on vmart pages
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

You can also use metamod
http://www.metamodpro.com/
dear
i read http://www.kaizenmediaworks.com/virtuemart-template-and-module-control
But i dont know where is templates?
The VM template or Joomla Template
I have a ideal:
In joomla templates
I make new possition name "show-images"
If i open ABC product, the module position "show-images" will so this product images of ABC product
Thank you

techmodule, Those codes only work in your joomla template.

BUT: You have to assign MODULES to them. You cannot load regular virtuemart product infos inside of them

techmodule

Quote from: PRO on August 20, 2012, 17:47:47 PM
Quote from: techmodule on August 20, 2012, 14:35:26 PM
Quote from: PRO on June 11, 2012, 15:37:58 PM
I use a different way to do modules on vmart pages
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control

You can also use metamod
http://www.metamodpro.com/
dear
i read http://www.kaizenmediaworks.com/virtuemart-template-and-module-control
But i dont know where is templates?
The VM template or Joomla Template
I have a ideal:
In joomla templates
I make new possition name "show-images"
If i open ABC product, the module position "show-images" will so this product images of ABC product
Thank you

techmodule, Those codes only work in your joomla template.
BUT: You have to assign MODULES to them. You cannot load regular virtuemart product infos inside of them

QuoteBUT: You have to assign MODULES to them. You cannot load regular virtuemart product infos inside of them
i code in teamplatedetails.xml
<possition>productdetails</possition>
in the template.css i make new class
.productmod{
marign: 15px;
font: Arial;
font-height: 20px }


and then, in the index.php i code
<?php if (JRequest::getVar('view')=='productdetails') { ?>
<div id="productmod"><jdoc:include type="modules" name="productdetails<?php echo JRequest::getInt('virtuemart_product_id',0); ?>" /></div>
<?php ?>

But nothing run?
So in excactly, how can i do it right?
Thank you

PRO


techmodule

Quote from: PRO on August 21, 2012, 13:23:32 PM
you have to assign a module to

productdetails#####
Dear, you mean that i have to open com_virtumart/views/productdetails/tmpl/default php????
Plz guild me step by step
Thank you

PRO

No, I mean in the module manager you have to assign a single module to EACH product.

This is probably not the solution you are looking for

See attached image of how I do a category feature module

[attachment cleanup by admin]