05.11.2011 18:30
|
|
GaryWilliams2011
Name: Gary Williams
31.07.2011
Posts: 4
|
Creating New Templates
Hi All (Again),
I can see that individual templates may be assigned to product pages and category pages, but how do you create these? I have copied (and renamed) the default template but it does not show up in the template selection dropdown.
All I actually want is to have individual colours for the background of each category.
How may I achieve this?
Regards
Gary
|
|
06.11.2011 09:59
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
administrator/index.php?option=com_jshopping&controller=config&task=adminfunction
Use individual template for each category and product
|
|
06.11.2011 17:23
|
|
Dr.Rivera
Name: Jürgen
13.09.2010
Posts: 2276
|
Aw: Creating New Templates
Hello,
I tried in the past......without success.
What must we do?
Can I copy the css/default files under a new name? I do not think so....
A short instruction?
Thanks and greetings
Last change: 06.11.2011 17:23
Nicht ganz aktuell, aber vielleicht doch noch für einige hilfreich, das E-Book Joomshopping.
Bei Amazon (kindl) und xinxii (ePub):
http://www.amazon.de/JoomShopping-Joomla-Shop-Online-Shop-ebook/dp/B005L9D8MC
http://www.xinxii.com/joomshopping-der-joomla-shop-p-339561.html
|
|
06.11.2011 19:24
|
|
Onofrei
Name: Mihai-Codrut
06.03.2011
Posts: 55
|
Aw: Creating New Templates
That's what I discovered:
Let's say you want a new layout to show the product view. For that you have components\com_jshopping\templates\default\product\product_default.php. All you have to do is to create a new file here, named "product_yourcustomname.php" and edit it to suit your needs ("yourcustomname" would be anything you want but you must respect the naming format "product_XXX.php").
Same for category -> you have category_default.php and you may create another category_custom.php.
Now you will be able to select it in the product/category/whatever you edit.
Regards
|
|
06.11.2011 19:48
|
|
Dr.Rivera
Name: Jürgen
13.09.2010
Posts: 2276
|
Aw: Creating New Templates
Hello,
great, it works!
Could I also make a additional default.css file?
Greetings
Nicht ganz aktuell, aber vielleicht doch noch für einige hilfreich, das E-Book Joomshopping.
Bei Amazon (kindl) und xinxii (ePub):
http://www.amazon.de/JoomShopping-Joomla-Shop-Online-Shop-ebook/dp/B005L9D8MC
http://www.xinxii.com/joomshopping-der-joomla-shop-p-339561.html
|
|
06.11.2011 21:26
|
|
Onofrei
Name: Mihai-Codrut
06.03.2011
Posts: 55
|
Aw: Creating New Templates
I never went so far. You could try. Or maybe webdesigner will clear this for us...
Regards
|
|
07.11.2011 16:12
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
@webdesigner - Actually, a custom template placed in 'root/components/com_jshopping/templates/mytemplate' should do this job, by delivering the 'root/components/com_jshopping/templates/mytemplate/category/category_default.php' file.
This seems to be in a conflict, somehow - because the settings described above will call the 'default.css' file, not the appropriate 'mytemplate.css'.
Considering that 'a custom template placed in 'root/components/com_jshopping/templates/mytemplate' should do this job' ... what can we do to choose 'one of a couple' custom template for certain categories (or products) ??
Thanks for helping out!
@Dr.Rivera - make a additional default.css file? - Not Yet!
Joomla: 1.7.2 JoomShopping: 3.2.7 PHP: 5.2 MySQL: 5.1 Website Url: http://nu.jacob-boehme.de/
|
|
08.11.2011 09:22
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
create
root/components/com_jshopping/templates/mytemplate/category/category_n1.php
root/components/com_jshopping/templates/mytemplate/category/category_n2.php
...
|
|
12.11.2011 11:56
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
@webdesigner I've tried that, but it only works if this template is used global. To be more precise: Using my own templates and css, including the ability to customize ALL files (... manufacturers.php as well), only works for the global settings.
My Scenario:
* "administrator/index.php?option=com_jshopping&controller=config&task=adminfunction" is set to "Use individual template for each category and product"
* ".../com_jshopping/css/" contains default.css AND mytmpl1.css AND mytmpl2.css
* ".../com_jshopping/templates/mytmpl1/category/ contains category_mytmpl1.php AND category_default.php
* ".../com_jshopping/templates/mytmpl2/category/ contains category_mytmpl2.php AND category_default.php
* ".../com_jshopping/templates/default/category/ contains ONLY category_default.php
Globally set the template to "default", now I can't choose my custom template in Categories settings (controller=categories&task=edit&category_id) - only "default" is present.
The only way to do this, is the way @Onofrei described above - but then only "category_mytmpl1.php" is used, anything else is still "default".
I tried other Scenarios by deleting "category_default.php" in ".../com_jshopping/templates/mytmpl1/category/" directories, AND/OR putting "category_mytmpl1.php" and "category_mytmpl2.php" in ".../com_jshopping/templates/default/category/" additionally, but it's all the same: Because global settings are parent, I can't choose my custom template in the "Categories settings", only "default" is available.
Please help me to find a solution for this disfunction, as we run One Joomla/JShopping for Two Domains/Joomla Templates, one is supposed to be used as a catalogue only until Oct. 2012, the other one should work with Shop-functionality, payment systems and all. So I need to customize two seperated "Main category" templates.
Joomla: 1.7.2 JoomShopping: 3.2.7 PHP: 5.2 MySQL: 5.1 Website Url: http://nu.jacob-boehme.de/
Last change: 12.11.2011 13:33
|
|
17.11.2011 18:00
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
@webdesigner
Shouldn't it be
root/components/com_jshopping/templates/mytemplate1/category/category_n1.php
root/components/com_jshopping/templates/mytemplate2/category/category_n2.php
in this case?
And should category_default.php also be present in these directories, or should those be deleted? It didn't work the one or the way for me, sorry to say that.
Any other advice? Thanks!
|
|
18.11.2011 08:38
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
|
|
18.11.2011 16:36
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
Thanks for answering @webdesigner, UPDATE
Now I have:
components/com_jshopping/templates/n1/category/category_default.php
components/com_jshopping/templates/n2/category/category_default.php
and deleted:
components/com_jshopping/templates/default/category/category_n1.php
components/com_jshopping/templates/default/category/category_n2.php
..and this works, also:
components/com_jshopping/css/n1.css
components/com_jshopping/css/n1.css
..is loaded instead of default.css,
but only for Category and Product pages.
Anything else (Manufacturers, Wishlist etc.) is still from
components/com_jshopping/templates/default/* and default.css
Last change: 22.11.2011 13:06
|
|
21.11.2011 08:02
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
URL?
Admin login?
FTP?
support@webdesigner-profi.de
|
|
22.11.2011 13:05
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
Thanks for taking care! Some things work now - see UPDATE above
What did You do ??
Last change: 22.11.2011 21:40
|
|
23.11.2011 09:25
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
Store does not work for 2 domains
|
|
23.11.2011 11:36
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
It has to! The job is done by "Virtual Domains".
Just need Manufacturers, Wishlist etc. also use Custom Template and CSS, and to limit <select id="category_id" in 'index.php?option=com_jshopping&controller=search' to Sub-categories ... then I'm fine.
Last change: 23.11.2011 11:51
|
|
23.11.2011 15:20
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
Page search. example
www.site/index.php?option=com_jshopping&controller=search
Always use a template set in config shop (not category!).
We offer you
use a template depending on the domain
Change file
\components\com_jshopping\lib\factory.php
if ($_SERVER['HTTP_HOST']=="site1.com"){
$config->template = "tmp1";
}else{
$config->template = "tmp2";
}
|
|
23.11.2011 16:12
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
For Search Page I create a custom Category
<select>
<option>
<option>
Last change: 10.12.2011 15:31
|
|
24.11.2011 08:22
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25913
|
Aw: Creating New Templates
Change file
components\com_jshopping\controllers\search.php
function display(){
.....
after
$categories = buildTreeCategory(1);
add filter category
if ($_SERVER['HTTP_HOST']=="site1.com"){
$filter_start = 0;
$filter_stop = 10;
}else{
$filter_start = 11;
$filter_stop = 20;
}
$categories_c = $categories;
$categories = array();
foreach($categories_c as $k=>$v){
if ($k>=$filter_start && $k<=$filter_stop){
$categories[]=$v;
}
}
Last change: 24.11.2011 08:23
|
|
06.12.2011 20:58
|
|
Jazzvox
Name: Mathias Roth
17.12.2010
Posts: 23
|
Aw: Creating New Templates
@webdesigner
#17 if-Condition in factory.php
A) You've changed in controllers/category.php and product.php
$view_config = array("template_path"=>JPATH_COMPONENT."/templates/".$jshopConfig->template."/".$view_name); to
$view_config = array("template_path"=>JPATH_COMPONENT."/templates/".$category->category_template."/".$view_name);
B) I had to set template to "default" in main settings, choose my custom templates for categories as wanted, and all other pages (manufacturers, search ...) are set by domain! =Resolved ;-) Simple as that, благодарю́!
#19 This didn't work, so I've used my custom 'templates/mytemplate/search/form.php' - as described above.
Last change: 10.12.2011 15:35
|
|