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.

 

Question about

Question about

Hello all! Hello Mr Stephen!

I have technical question.

I have some template (lets call it site template). I bought shop template (lets call it shop template smile  ).
What i would like to do:
I would like to assign shop template to the shop component. I want to show all sites like categories, cart, compare ... using shop template. That is simple. But i like to assign product site (site where client can see full product name, short description, full description ....) to site template.
Is that possible in MetaMod or Metamod PRO ?
Of course if i add new product, i would like to keep this "view".

I hope i explained it as should be smile

Sorry also for my English, it is not my native language.

Best Regards!
Wojtek

Edited By: Wojciech
16-May-13 20:17:22

Wojciech
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Question about

Hi,

if you want to change templates, I assume you are talking about Joomla templates, and not the internal templates which may be used by your shopping cart software. In this case, you would need to use Chameleon rather than MetaMod. MetaMod can't really deal with site templates, only modules.

Also, what shopping cart software are you using, and what version of Joomla?

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: Question about

Hello,
Yes, i am talking about Joomla templates (both).
My shopping cart is redShop (redcomponent.com) 1.2, and Joomla! 2.5.11

I am sorry if i wrote in wrong forum.
Edited: Yes, i am sorry for writing in wrong section.
I am wondering about Chameleon.

Regards
Wojciech

Wojciech
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Question about

Hi Wojciech,

thanks for the additional information.
Chameleon does not have direct support for RedShop, but with the PHP section in the Chameleon rules you should be able to identify most types of pages in any component. It just takes a little more trying and testing.

What I would suggest, actually, is to install MetaMod and create a MetaMod module on all pages. In the MetaMod, activate Advanced Debug mode. Then you can view the different shopping cart pages on your site and see the PHP output that it produces. This is very useful to help you identify the different page types (especially if you know some PHP).

So, can you do that, then post back to this forum the results from the different page types on your site? WIth each set of output, place a description of what type of page it was.

Then I or someone else can use that info to make some PHP code for you to use in Chameleon.

Then main difference between a MetaMod PHP rule and a Chameleon PHP rule is that in MetaMod you need to return a module id, and in Chameleon you either return a true or false, or a template/style ID. In Chameleon, the true or false makes the rule succeed or fail.

So, over to you...

By the way in a few hours I am going to be getting on a plane to Europe that takes about 35 hours, so won't be able to answer forum requests during that time, sorry.

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: Question about

Thank you for so big help.
I will try to improve your solution, and of course will write here about results.

Have a safe trip!
Best regards
Wojciech

Wojciech
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Question about

Thanks Wojciech, now safely "installed" in Belgium for a couple of weeks, so I'm probably in your time zone now!

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: Question about

Hello Stephen!

I have installed Metamod, setup It with advanced debug mode in one of possitions.
That what i get:

Product page:

Code:

Page Identification

if (
$option == 'com_redshop'
and $view == 'product'
and $Itemid == '1407'
and $jinput->get('pid') == '804'
and $jinput->get('cid') == '85'
) return XXX; /* replace XXX with the module ID or position to display */

Code:

MetaMod debug info:

Module ID: 374
$option: com_redshop
$view: product
$id:
$Itemid: 1407
$timezone: Europe/Warsaw
$language: pl
$language_code: pl
$language_region:
Including modules: Brak (no)

And Category view:

Code:

Page Identification

if (
$option == 'com_redshop'
and $view == 'category'
and $Itemid == '1404'
and $jinput->get('layout') == 'detail'
and $jinput->get('cid') == '85'
) return XXX; /* replace XXX with the module ID or position to display */

Code:

MetaMod debug info:

Module ID: 374
$option: com_redshop
$view: category
$id:
$Itemid: 1404
$timezone: Europe/Warsaw
$language: pl
$language_code: pl
$language_region:
Including modules: Brak

Now i am sitting on my localhost and trying to improve your solution smile
Will write if finish with luck.

edit: is there a free J! 2.5 Chameleon Lite available? or i need to buy PRO?

edit:
I decided for this moment to implement other solution.
I do not give up with MetaMod and Chameleon, because i have a lot of ideas all the time, so i will stay in touch smile

Best Regards
Wojciech

Wojciech
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Question about

Ok, looking back at your original request, you ask:

"product site (site where client can see full product name, short description, full description ....) to site template."

So can I assume that that's the product view you're talking about?

In that case, the debug output you provided above helps a lot.

In Chameleon, you would put the following into the PHP section of the "condition" (i.e. not in the actions). If this part returns true then the rule will succeed, and the succeed action will run. So in the succeed action you use the dropdown to select the desired template for the product pages. On with the PHP:

if ($option == "com_redshop" and $view == "product") return true;


That's all there is to it, providing it's only the product page that you want to display using a particular template.

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:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
168

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