Modify Layout on product page
I am testing the version 2.1.0 on my labs environment.
I was using an old version (1.6.0) and for this reason i am recreating all the custom views.
I have some problem to use in the correct way the tabber plugin.
I was trying to replicate the old modifications but i have some problems with the comments block.
www.labs.madeinvino.it/la-nostra-cantina...ti.html#degustazione
As you can see the comments is outside the tabber.
The reason is that now the comment block is no more inside the view product show_default.php
Could you give me an advise?
Please Log in or Create an account to join the conversation.
Yes the comments have been moved in the view "product / show" to be present only in one place instead of in each views.
So you have to add the tabber tags in the view "product / show" to have the comments in tabber.
Or use the show "tabular" view of HikaShop
Please Log in or Create an account to join the conversation.
I tested the "tabular" view but it is a little bit different from what i want.
I tried to add the tabbae tags into the product / show view but unfortunately I was not able to do it
My custom views are:
You can identify the customizations between the tag "Stefano Start" and "Stefano End".
Please log in or register to see it.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
before: <form action="<?php echo hikashop_currentURL() ?>" method="post" name="hikashop_comment_form">
And remove: {/tabs} from "show_default" to put it in show after the first </form>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can re-use your old views.
Please Log in or Create an account to join the conversation.
I found out how to move this part from show to show_default:
is there a way to move also these parts:
Probably I also found out a bug, when you leave a comment, hika stores it into the database with the apex (quote):
I also enabled the Jcomments, do you think is possible easely insert it inside the tabber?
Please Log in or Create an account to join the conversation.
$vElement->vote_comment = $db->quote($safeHtmlFilter->clean($element->comment, 'string'));
to:
$vElement->vote_comment = $safeHtmlFilter->clean($element->comment, 'string');
You can move
Please Log in or Create an account to join the conversation.
thank you now the bug is fixed.
Where do i excatly have to move the indicated codes?
I moved all this code from show to show_default and it seems fine
Is what you mean?
I also tried to move the Jcomments part from show to show_default
But unfortunately in this case it doen't work perfectly.
I can see the Jcommnets in the right tab, but i lose CSS styles and I can not post any new comment.
Could you give me any suggestion?
Thank you very much
Please Log in or Create an account to join the conversation.
JComments could not be inserted into the "form" of the HikaShop product page.
At this moment, the form of jcomments would be into the form of HikaShop and it generates the post problems.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
I found a problem on Internet Explorer (I hate IE....
www.madeinvino.com/la-nostra-cantina/pro...0-vie-di-romans.html
Everything looks fine with Chrome and Safari
On Internet Explorer 9 there is an unexpected tab and there is no tab active (is the same problem on IE8).
I think it is not a problem of TABBER because I use it to on an article and I have no problem
www.madeinvino.com/abbonati.html
I also upgraded the tabber extension to the last available version (3.0.6) but the error is the same.
Do you have any idea or suggestion? :dry:
09-03-2013 15:00
I found the reason, this is the customized view product/show_default.php
The problem seems due to this part of code I moved from product/show to product/show_default
To solve the problem I had to move back to product/show.php these lines:
<form action="<?php echo hikashop_currentURL() ?>" method="post" name="hikashop_comment_form">
<input type="hidden" name="add" value="1"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="show"/>
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
</form>
Do you know how solve the problem?
Please Log in or Create an account to join the conversation.
Can you try to put the code "{/tabs}" just after the "</form>" of the vote part in the show_default view ?
Please Log in or Create an account to join the conversation.
I did it but the problem is the same.
Please Log in or Create an account to join the conversation.
I checked on my end with IE 9 but the tabs work fine on the page www.madeinvino.com/la-nostra-cantina/pro...l#le-vostre-opinioni and I don't see the "unexpected tab".
Please Log in or Create an account to join the conversation.
On the live environment to solve the problem I used the modification I wrote in the previous post
***********************
<form action="<?php echo hikashop_currentURL() ?>" method="post" name="hikashop_comment_form">
<input type="hidden" name="add" value="1"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="show"/>
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
</form>
***********************
You can check the TEST env here: www.labs.madeinvino.it/la-nostra-cantina...10-ca-dei-frati.html
I will send you a PM with the information to access the test env.
Thanks
Please Log in or Create an account to join the conversation.
Then if it is already solved, I don't see what you want ?
I actually don't know why that happens on IE9. It's probably coming from your modifications as you said.
Please Log in or Create an account to join the conversation.
******************************
You can move
<input type="hidden" name="add" value="1"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="show"/>
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
</form>
juste before the display of the tabs in the show_default and that should be fine.
******************************
Anyway if you think the current solution is fine for me the case is closed.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.