-
AuthorPosts
-
yannick2407 Friend
yannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 20, 2013 at 10:19 am #190764Hi
situation
I use two templates: ‘home’ for just the home-page. And ‘default’ for all shop related pages. The main difference between the two templates is the sidebar module position in which the shopping cart and product categories are displayed. So, really just the standard Hawkstore installation for this topic.problem
when I go into the product details of a certain product VIA the main menu , the ‘default’ template is selected correctly , as I have assigned this template to these menu paths.
however, on my home page, I use the “JA VM Products” module as well as the ” Custom HTML” module with the product tabs. When I select a product from there, it jumps to the product details page but a layout is selected without the side-bar.
How can I invoke that the ‘default’ template is also selected from these two modules?
Suprisingly , when I check the Hawkstore demo page, this problem does not occur (the sidebar is visible on the product details page). So I must have selected / deselected some feature but I have no clue what.
Could you please assist ?
Cheers
Ronphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 23, 2013 at 4:41 am #506680Hi Ron,
In this case, you can assign the product in Custom HTML modules to a menu item (existing or new created). Then to go Template Manager >> Assign the JA_Hawkstore_Default to that menu item.
Note: You can use the Category Layout or Product Details Layout menu item type for above menu item.
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 24, 2013 at 12:27 pm #506876Hi Leo.
Thanks for the reply. I think I did not fully clarify the issue .
Your proposal would work for a single product, but as described in the initial post , this situation occurs with ALL products which I select with the modules as provided by the Hawkstore template , being “JA VM Products” and ” Custom HTML.”
When I go to the product details from one of these two modules on the home page, I would expect to see the same layout (with sidebar that is) as when I go to the product details on the product details / flypage via the main menu. It is basically the product details / flypage I enter, but from a diiferent approach.
Please feel free to see the problem in ‘real life’ with the login credentials I provided.
From the home page you could select a product from the first set of products you see below the slideshow. You will arrive at the product details page without sidebar. When you select a product from the main menupath (e.g.) Winkelen – Proefsets , you will see that the sidebar is selected . The latter makes sense as it is a menu path to which I assigned the Default layout incl. sidebar.
Please assist !
Cheers
Ronphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 25, 2013 at 12:41 am #506917Hi Ron,
Well, can you backup your files before i help you to assign the Default template style to all product detail pages on that 2 modules ? I will explain in details what i did then.
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 25, 2013 at 9:59 am #507017Hi Leo
Backup completed…
Really curious to see what you will do !
Cheers
Ronphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 26, 2013 at 12:34 am #507092Hi Ron,
Did you receive my recent PM ? Can you send me the front-end access info of yourdomain.com/administrator ?
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 26, 2013 at 7:28 am #507125Hi Leo
Just received the message and replied . You should have login credentials now.
Good luck !
Ronphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 27, 2013 at 4:57 am #507253Hi Ron,
Actually, I needed to customize the JA VMProducts module on your website to display the sidebar on the product page of products on that module. At this time, i assigned that products to Alle Productgroepen menu item. I know, it looks not attractive as usual. But it is a potential solution to show the sidebar.
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 27, 2013 at 10:47 am #507306Hi Leo
Many thanks for the change you made , it looks already quite a bit better !
Still one question left though :
Can you indicate what you exactly did ? As mentioned in in the first post , I face this issue with TWO modules on the home page, being the JA VM products module but also the virtuemart products module just above the footer. I would like to have it working on the latter as well . Or if you want to apply the change youself, be my guest : )
I had to disable the Masshead function for the product pages now (because all items in various categories would have the ‘All productgroups’ label ) but that is no problem to me.
Please let me know and thanks for now !
Cheers
Ronphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 27, 2013 at 1:31 pm #507319Hi Ron,
Lets me explain in details before telling you what i did. You know, the difference is that the product page of VM Category layout menu item will load the JA Hawkstore Default layout of that menu item (i.e Default) that contains the sidebar on the left, one symbol you can see that there will be a &Itemid=512 (i.e) at the end of each product page url.
>> 512 is the item ID of that menu item.
On contrast, the product page comes from our JA VMProducts module are assigned to the default Joomla template layout which their urls don’t contain the &Itemid at the end. That is why the page doesn’t have the sidebar on the left.
So that, the simple solution is adding a fixed &Itemid=512 (All Categories menu item) into the overridden layout of our JA VM Products module at templates/ja_hawkstore/html/mod_javmproducts/default.php. i.e:
echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id .'&Itemid=512'), $image, array('title' => htmlspecialchars($product->product_name)));?>
Actually, this is not the best and stable solution. But, i will discuss with our developers to update this setting in next update of JA VM Products module if possible. So that, you and other users will get perfect product details page without editing the module layout.Hope my explanation be helpful !
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
September 28, 2013 at 9:18 pm #507395Hi Leo
Many thanks for the explanation, it makes perfect sense to me !
I also tried to change it for the second module I mentioned. being the ‘regular’ VM products module and tried to insert the item ID in the corresponding PHP file.
I adapted the file /modules/mod_virtuemart_product/tmpl/default.php file
and looked for the string :
echo JHTML::_ (‘link’, JRoute::_ (‘index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=’ . $product->virtuemart_product_id . ‘&virtuemart_category_id=’ . $product->virtuemart_category_id .
added the text in red , but nothing happens (cleared cache )
Am I looking in the wrong direction for this module ?
Ron
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 29, 2013 at 4:34 am #507400Hi Ron,
Firstly, i suggest you not to edit the core module files since the modification will be overwritten when you update module. It will be better when you edit the module layout at templates/ja_hawkstore/html/mod_virtuemart_product/default.php.
Secondly, as you see that the product details page is linked to both product image and title so that there are at least 2 lines where you need to add the &Itemid. Anyways, you can try to find line:
– 209th, and add &Itemid
echo JHTML::_ (‘link’, JRoute::_ (‘index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=’ . $product->virtuemart_product_id . ‘&virtuemart_category_id=’ . $product->virtuemart_category_id .’&Itemid= ‘), $image, array(‘title’ => $product->product_name));
– 214th, do the same
$url = JRoute::_ (‘index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=’ . $product->virtuemart_product_id . ‘&virtuemart_category_id=’ .$product->virtuemart_category_id .’&Itemid= ‘); ?>
You can find other similar lines in that default.php file, make sure that you did backup file before editing.
1 user says Thank You to phong nam for this useful post
yannick2407 Friendyannick2407
- Join date:
- August 2013
- Posts:
- 11
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
October 2, 2013 at 8:26 am #507772Hi Leo
Sorry for the late reply. Your proposal did the trick.
I was it a bit reluctant to deploy this change , because the negative side-effect of your proposed change is that one masshead (for one specfic product category with a specific background image) is applied to all product categories. It would look like having a ‘decks’ text and image above e.g. the ‘wheels’ category.
But I just use a workaround where I use the ‘special products’ as restricted to products of just one category (like “special decks”) in the sense that the masshead which is applied is the right masshead in all cases when someone enters the product details from this angle .
So, in short : MANY THANKS for the quick, clear and correct response !! This topic can be closed . Cheers !!
1 user says Thank You to yannick2407 for this useful post
-
AuthorPosts
This topic contains 13 replies, has 2 voices, and was last updated by yannick2407 11 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum